Package io.adtrace.sdk.scheduler
Class SingleThreadFutureScheduler
- java.lang.Object
-
- io.adtrace.sdk.scheduler.SingleThreadFutureScheduler
-
- All Implemented Interfaces:
FutureScheduler
public class SingleThreadFutureScheduler extends java.lang.Object implements FutureScheduler
AdTrace android SDK (https://adtrace.io) Created by Nasser Amini (github.com/namini40) on April 2022. Notice: See LICENSE.txt for modification and distribution information Copyright © 2022.
-
-
Constructor Summary
Constructors Constructor Description SingleThreadFutureScheduler(java.lang.String source, boolean doKeepAlive)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.concurrent.ScheduledFuture<?>scheduleFuture(java.lang.Runnable command, long millisecondDelay)java.util.concurrent.ScheduledFuture<?>scheduleFutureWithFixedDelay(java.lang.Runnable command, long initialMillisecondDelay, long millisecondDelay)<V> java.util.concurrent.ScheduledFuture<V>scheduleFutureWithReturn(java.util.concurrent.Callable<V> callable, long millisecondDelay)voidteardown()
-
-
-
Method Detail
-
scheduleFuture
public java.util.concurrent.ScheduledFuture<?> scheduleFuture(java.lang.Runnable command, long millisecondDelay)- Specified by:
scheduleFuturein interfaceFutureScheduler
-
scheduleFutureWithReturn
public <V> java.util.concurrent.ScheduledFuture<V> scheduleFutureWithReturn(java.util.concurrent.Callable<V> callable, long millisecondDelay)- Specified by:
scheduleFutureWithReturnin interfaceFutureScheduler
-
scheduleFutureWithFixedDelay
public java.util.concurrent.ScheduledFuture<?> scheduleFutureWithFixedDelay(java.lang.Runnable command, long initialMillisecondDelay, long millisecondDelay)- Specified by:
scheduleFutureWithFixedDelayin interfaceFutureScheduler
-
teardown
public void teardown()
- Specified by:
teardownin interfaceFutureScheduler
-
-