Daemon.State| Modifier and Type | Field and Description |
|---|---|
protected java.lang.Object |
state |
protected static com.github.akurilov.coroutines.CoroutinesProcessor |
SVC_EXECUTOR |
| Modifier | Constructor and Description |
|---|---|
protected |
DaemonBase() |
| Modifier and Type | Method and Description |
|---|---|
void |
await() |
void |
close() |
static void |
closeAll() |
protected abstract void |
doClose() |
protected abstract void |
doInterrupt() |
protected abstract void |
doShutdown() |
protected abstract void |
doStart() |
Daemon.State |
getState() |
void |
interrupt() |
boolean |
isClosed() |
boolean |
isInterrupted() |
boolean |
isShutdown() |
boolean |
isStarted() |
static void |
setThreadCount(int threadCount) |
void |
shutdown() |
void |
start() |
protected static final com.github.akurilov.coroutines.CoroutinesProcessor SVC_EXECUTOR
protected final java.lang.Object state
public static void setThreadCount(int threadCount)
public final Daemon.State getState()
protected abstract void doStart()
throws java.lang.IllegalStateException
java.lang.IllegalStateExceptionprotected abstract void doShutdown()
throws java.lang.IllegalStateException
java.lang.IllegalStateExceptionprotected abstract void doInterrupt()
throws java.lang.IllegalStateException
java.lang.IllegalStateExceptionprotected abstract void doClose()
throws java.lang.IllegalStateException,
java.io.IOException
java.lang.IllegalStateExceptionjava.io.IOExceptionpublic final void start()
throws java.lang.IllegalStateException
public final void shutdown()
throws java.lang.IllegalStateException
public final boolean isShutdown()
isShutdown in interface Daemonpublic final void await()
throws java.lang.InterruptedException,
java.rmi.RemoteException
public final void interrupt()
throws java.lang.IllegalStateException
public final boolean isInterrupted()
isInterrupted in interface Daemonpublic final void close()
throws java.io.IOException,
java.lang.IllegalStateException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOExceptionjava.lang.IllegalStateExceptionpublic static void closeAll()