Enum Class CoreConfigurationType
- All Implemented Interfaces:
com.tenio.common.configuration.ConfigurationType
,Serializable
,Comparable<CoreConfigurationType>
,Constable
public enum CoreConfigurationType
extends Enum<CoreConfigurationType>
implements com.tenio.common.configuration.ConfigurationType
This server needs some basic configuration to start running. The
configuration file can be defined as an XML file. See an example in
configuration.example.xml. You can also extend this file to create your own
configuration values.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe list of HTTP configuration in configuration.The server id (module name).The server name.This current version code of your server in integer type (can be compared).This current version name of your server in string type.The list of socket configuration in configuration. -
Method Summary
Modifier and TypeMethodDescriptionstatic CoreConfigurationType
getByValue
(String value) final String
getValue()
final String
toString()
static CoreConfigurationType
Returns the enum constant of this class with the specified name.static CoreConfigurationType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SERVER_NAME
The server name. -
SERVER_ID
The server id (module name). -
SERVER_VERSION_CODE
This current version code of your server in integer type (can be compared). -
SERVER_VERSION_NAME
This current version name of your server in string type. -
CLASS_PACKET_ENCRYPTER
-
CLASS_PACKET_COMPRESSOR
-
CLASS_PACKET_ENCODER
-
CLASS_PACKET_DECODER
-
CLASS_CONNECTION_FILTER
-
CLASS_PACKET_QUEUE_POLICY
-
THREADS_SOCKET_ACCEPTOR
-
THREADS_SOCKET_READER
-
THREADS_SOCKET_WRITER
-
THREADS_WEBSOCKET_PRODUCER
-
THREADS_WEBSOCKET_CONSUMER
-
THREADS_INTERNAL_PROCESSOR
-
INTERVAL_REMOVED_ROOM_SCAN
-
INTERVAL_DISCONNECTED_PLAYER_SCAN
-
INTERVAL_CCU_SCAN
-
INTERVAL_DEADLOCK_SCAN
-
INTERVAL_TRAFFIC_COUNTER
-
INTERVAL_SYSTEM_MONITORING
-
PROP_MAX_PACKET_QUEUE_SIZE
-
PROP_MAX_REQUEST_QUEUE_SIZE
-
PROP_KEEP_PLAYER_ON_DISCONNECTION
-
PROP_MAX_NUMBER_PLAYERS
-
PROP_MAX_NUMBER_ROOMS
-
PROP_MAX_PLAYER_IDLE_TIME
-
NETWORK_PROP_WEBSOCKET_USING_SSL
-
NETWORK_PROP_WEBSOCKET_SENDER_BUFFER_SIZE
-
NETWORK_PROP_WEBSOCKET_RECEIVER_BUFFER_SIZE
-
NETWORK_PROP_SOCKET_ACCEPTOR_BUFFER_SIZE
-
NETWORK_PROP_SOCKET_READER_BUFFER_SIZE
-
NETWORK_PROP_SOCKET_WRITER_BUFFER_SIZE
-
NETWORK_PROP_PACKET_COMPRESSION_THRESHOLD_BYTES
-
NETWORK_PROP_MAX_CONNECTIONS_PER_IP
-
NETWORK_PROP_ALLOW_CHANGE_SESSION
-
SOCKET_CONFIGS
The list of socket configuration in configuration. -
HTTP_CONFIGS
The list of HTTP configuration in configuration.
-
-
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
-
getByValue
-
getValue
-
toString
- Overrides:
toString
in classEnum<CoreConfigurationType>
-