Package cloud.spawnery.agent.api
Enum Class Group.Kind
- All Implemented Interfaces:
Serializable,Comparable<Group.Kind>,Constable
- Enclosing class:
Group
Which sizing rule this group answers to.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSized by free player slots; servers are interchangeable.Servers asked for by name, one key each; seeSpawneryApi.startServer(java.lang.String, java.lang.String).Sized by a number a person wrote down; servers own their worlds.A group of proxies.A kind this jar predates. -
Method Summary
Modifier and TypeMethodDescriptionstatic Group.KindReturns the enum constant of this class with the specified name.static Group.Kind[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
EPHEMERAL
Sized by free player slots; servers are interchangeable. -
PERSISTENT
Sized by a number a person wrote down; servers own their worlds. -
PROXY
A group of proxies. -
ON_DEMAND
Servers asked for by name, one key each; seeSpawneryApi.startServer(java.lang.String, java.lang.String). -
UNKNOWN
A kind this jar predates. SeeServerPhase.UNKNOWN.
-
-
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
-