public interface AsyncRunnable
extends java.io.Closeable
| Modifier and Type | Interface and Description |
|---|---|
static class |
AsyncRunnable.State |
| Modifier and Type | Method and Description |
|---|---|
AsyncRunnable |
await()
Wait while the state is STARTED
|
boolean |
await(long timeout,
java.util.concurrent.TimeUnit timeUnit) |
boolean |
isClosed() |
boolean |
isInitial() |
boolean |
isShutdown() |
boolean |
isStarted() |
boolean |
isStopped() |
AsyncRunnable |
shutdown()
Notify to stop to enqueue incoming requests.
|
AsyncRunnable |
start()
Start/resume the execution
|
AsyncRunnable.State |
state() |
AsyncRunnable |
stop()
Stop (with further resumption capability)
|
AsyncRunnable.State state() throws java.rmi.RemoteException
java.rmi.RemoteExceptionboolean isInitial()
throws java.rmi.RemoteException
java.rmi.RemoteExceptionboolean isStarted()
throws java.rmi.RemoteException
java.rmi.RemoteExceptionboolean isShutdown()
throws java.rmi.RemoteException
java.rmi.RemoteExceptionboolean isStopped()
throws java.rmi.RemoteException
java.rmi.RemoteExceptionboolean isClosed()
throws java.rmi.RemoteException
java.rmi.RemoteExceptionAsyncRunnable start() throws java.rmi.RemoteException
java.rmi.RemoteExceptionAsyncRunnable shutdown() throws java.rmi.RemoteException
java.rmi.RemoteExceptionAsyncRunnable stop() throws java.rmi.RemoteException
java.rmi.RemoteExceptionAsyncRunnable await() throws java.lang.InterruptedException, java.rmi.RemoteException
java.lang.InterruptedExceptionjava.rmi.RemoteExceptionboolean await(long timeout,
java.util.concurrent.TimeUnit timeUnit)
throws java.lang.InterruptedException,
java.rmi.RemoteException
java.lang.InterruptedExceptionjava.rmi.RemoteException