main.com.wisetrack.sdk.scheduler.FutureScheduler.kt Maven / Gradle / Ivy
package com.wisetrack.sdk.scheduler
import java.util.concurrent.Callable
import java.util.concurrent.ScheduledFuture
/**
@author hamed (@hamed-hsb)
* @since 09th October 2021
*/
interface FutureScheduler {
fun scheduleFuture(command: Runnable?, millisecondDelay: Long): ScheduledFuture<*>?
fun scheduleFutureWithFixedDelay(
command: Runnable?,
initialMillisecondDelay: Long,
millisecondDelay: Long
): ScheduledFuture<*>?
fun scheduleFutureWithReturn(
callable: Callable?,
millisecondDelay: Long
): ScheduledFuture?
fun teardown()
}