public interface Startable
Modifier and Type | Interface and Description |
---|---|
static class |
Startable.Status
The status enum provides information into the current state of a
Startable instance. |
Modifier and Type | Method and Description |
---|---|
Startable.Status |
getStatus()
Get the current state of the instance.
|
default boolean |
restart()
Attempt to perform a restart if the status is FAILED, RUNNING or RESTARTING.
|
boolean |
start()
Start the entity, this should allocate any needed resources and will allow the instance to accept further instructions
when completed.
|
void |
stop()
Stop the instance.
|
boolean start()
true
if the start command succeededvoid stop()
getStatus()
call returning
Startable.Status.IDLE
.Startable.Status getStatus()
Startable.Status
default boolean restart()
Copyright © 2019 Jong Soft. All rights reserved.