| Package | Description |
|---|---|
| net.pterodactylus.util.service |
Basic interface and implementation for services that can be started, stopped
and run asynchronously in the background.
|
| Modifier and Type | Field and Description |
|---|---|
static State |
State.offline
Basic State for services that are not running.
|
static State |
State.online
Basic State for services that are running.
|
static State |
State.starting
Basic State for services that are starting.
|
static State |
State.stopping
Basic state for services that are stopping.
|
static State |
State.unknown
Basic static for services in an unknown state.
|
| Modifier and Type | Method and Description |
|---|---|
State |
State.getBasicState()
Returns the basic state of this state.
|
State |
Service.getState()
Returns the current state of this service.
|
State |
AbstractService.getState()
Returns the current state of this service.
|
State |
ServiceMBean.getState()
Returns the state of the service.
|
| Modifier and Type | Method and Description |
|---|---|
int |
State.compareTo(State state)
Compares this state to the given state.
|
void |
ServiceListenerManager.fireServiceStateChanged(State oldState,
State newState)
|
void |
ServiceListener.serviceStateChanged(Service service,
State oldState,
State newState)
|
protected void |
AbstractService.setState(State newState)
Sets the new state of this service without changing the action.
|
protected void |
AbstractService.setState(State newState,
String action)
Sets the new state of this service.
|
| Constructor and Description |
|---|
State(State basicState,
String name)
Constructs a new state that is derived from the given basic state and has
the given name.
|
Copyright © 2026. All rights reserved.