Client and backend. This class is shared: the same code is compiled into your app and into your server, so everything on this page works in both.
public interface ScheduledExecutorService
ExtendsExecutor, ExecutorService
java.util.concurrent.ScheduledExecutorService: an executor that also
runs work after a delay, or again and again.
The work runs on the executor’s threads, never on the UI thread.
Methods
Inherited methods
Method details
schedule
public abstract ScheduledFuture<?> schedule(Runnable command, long delay, TimeUnit unit)schedule
public abstract <V> ScheduledFuture<V> schedule(Callable<V> callable, long delay, TimeUnit unit)scheduleAtFixedRate
public abstract ScheduledFuture<?> scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit)scheduleWithFixedDelay
public abstract ScheduledFuture<?> scheduleWithFixedDelay(Runnable command, long initialDelay, long delay, TimeUnit unit)