Package com.adjust.sdk.scheduler
Class SingleThreadFutureScheduler
- java.lang.Object
-
- com.adjust.sdk.scheduler.SingleThreadFutureScheduler
-
- All Implemented Interfaces:
FutureScheduler
public class SingleThreadFutureScheduler extends java.lang.Object implements FutureScheduler
-
-
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)
void
teardown()
-
-
-
Method Detail
-
scheduleFuture
public java.util.concurrent.ScheduledFuture<?> scheduleFuture(java.lang.Runnable command, long millisecondDelay)
- Specified by:
scheduleFuture
in interfaceFutureScheduler
-
scheduleFutureWithReturn
public <V> java.util.concurrent.ScheduledFuture<V> scheduleFutureWithReturn(java.util.concurrent.Callable<V> callable, long millisecondDelay)
- Specified by:
scheduleFutureWithReturn
in interfaceFutureScheduler
-
scheduleFutureWithFixedDelay
public java.util.concurrent.ScheduledFuture<?> scheduleFutureWithFixedDelay(java.lang.Runnable command, long initialMillisecondDelay, long millisecondDelay)
- Specified by:
scheduleFutureWithFixedDelay
in interfaceFutureScheduler
-
teardown
public void teardown()
- Specified by:
teardown
in interfaceFutureScheduler
-
-