Enum Class BridgeServiceHelper.ServiceInfoState
java.lang.Object
java.lang.Enum<BridgeServiceHelper.ServiceInfoState>
eu.cloudnetservice.modules.bridge.BridgeServiceHelper.ServiceInfoState
- All Implemented Interfaces:
Serializable,Comparable<BridgeServiceHelper.ServiceInfoState>,Constable
- Enclosing class:
BridgeServiceHelper
public static enum BridgeServiceHelper.ServiceInfoState
extends Enum<BridgeServiceHelper.ServiceInfoState>
The service info state allows a better separation of a service state than a service lifecycle.
- Since:
- 4.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThis state represents a service that is started and online but no players are connected to it.This state represents a service that is started, online and full.This state represents a service that is started and online but neither empty nor full.This state represents a service that is currently starting.This state represents a service that is stopped or does not match any other state. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static BridgeServiceHelper.ServiceInfoState[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
STOPPED
This state represents a service that is stopped or does not match any other state. -
STARTING
This state represents a service that is currently starting. -
EMPTY_ONLINE
This state represents a service that is started and online but no players are connected to it. -
FULL_ONLINE
This state represents a service that is started, online and full. -
ONLINE
This state represents a service that is started and online but neither empty nor full.
-
-
Constructor Details
-
ServiceInfoState
private ServiceInfoState()
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-