All Downloads are FREE. Search and download functionalities are using the official Maven repository.

main.com.wisetrack.sdk.scheduler.FutureScheduler.kt Maven / Gradle / Ivy

There is a newer version: 1.5.3
Show newest version
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()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy