Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- AbstractLogger - Class in com.tenio.common.logger
-
The recording logs of a developer is important for every system.
- AbstractLogger() - Constructor for class com.tenio.common.logger.AbstractLogger
- add(String, Object) - Method in class com.tenio.common.data.common.CommonMap
-
Adds new data into the map with its key.
- addBoolean(boolean) - Method in class com.tenio.common.data.msgpack.element.MsgPackArray
-
Appends a new value into the array.
- addBoolean(boolean) - Method in class com.tenio.common.data.zero.implement.ZeroArrayImpl
- addBoolean(boolean) - Method in interface com.tenio.common.data.zero.ZeroArray
-
Appends a
boolean
value into the array. - addBooleanArray(Collection<Boolean>) - Method in class com.tenio.common.data.zero.implement.ZeroArrayImpl
- addBooleanArray(Collection<Boolean>) - Method in interface com.tenio.common.data.zero.ZeroArray
-
Appends a collection of
Boolean
values into the array. - addByte(byte) - Method in class com.tenio.common.data.zero.implement.ZeroArrayImpl
- addByte(byte) - Method in interface com.tenio.common.data.zero.ZeroArray
-
Appends a
byte
value into the array. - addByteArray(byte[]) - Method in class com.tenio.common.data.zero.implement.ZeroArrayImpl
- addByteArray(byte[]) - Method in interface com.tenio.common.data.zero.ZeroArray
-
Appends an array of binaries into the array.
- addDouble(double) - Method in class com.tenio.common.data.zero.implement.ZeroArrayImpl
- addDouble(double) - Method in interface com.tenio.common.data.zero.ZeroArray
-
Appends a
double
value into the array. - addDoubleArray(Collection<Double>) - Method in class com.tenio.common.data.zero.implement.ZeroArrayImpl
- addDoubleArray(Collection<Double>) - Method in interface com.tenio.common.data.zero.ZeroArray
-
Appends a collection of
Double
values into the array. - addFloat(float) - Method in class com.tenio.common.data.msgpack.element.MsgPackArray
-
Appends a new value into the array.
- addFloat(float) - Method in class com.tenio.common.data.zero.implement.ZeroArrayImpl
- addFloat(float) - Method in interface com.tenio.common.data.zero.ZeroArray
-
Appends a
float
value into the array. - addFloatArray(Collection<Float>) - Method in class com.tenio.common.data.zero.implement.ZeroArrayImpl
- addFloatArray(Collection<Float>) - Method in interface com.tenio.common.data.zero.ZeroArray
-
Appends a collection of
Float
values into the array. - addInteger(int) - Method in class com.tenio.common.data.msgpack.element.MsgPackArray
-
Appends a new value into the array.
- addInteger(int) - Method in class com.tenio.common.data.zero.implement.ZeroArrayImpl
- addInteger(int) - Method in interface com.tenio.common.data.zero.ZeroArray
-
Appends a
integer
value into the array. - addIntegerArray(Collection<Integer>) - Method in class com.tenio.common.data.zero.implement.ZeroArrayImpl
- addIntegerArray(Collection<Integer>) - Method in interface com.tenio.common.data.zero.ZeroArray
-
Appends a collection of
Integer
values into the array. - ADDITIONAL_NUMBER_ELEMENTS_POOL - Static variable in class com.tenio.common.constant.CommonConstant
-
When the desired number of elements exceeded the first configuration, the new number of elements will be added.
- addLong(long) - Method in class com.tenio.common.data.zero.implement.ZeroArrayImpl
- addLong(long) - Method in interface com.tenio.common.data.zero.ZeroArray
-
Appends a
long
value into the array. - addLongArray(Collection<Long>) - Method in class com.tenio.common.data.zero.implement.ZeroArrayImpl
- addLongArray(Collection<Long>) - Method in interface com.tenio.common.data.zero.ZeroArray
-
Appends a collection of
Long
values into the array. - addMsgPackArray(MsgPackArray) - Method in class com.tenio.common.data.msgpack.element.MsgPackArray
-
Appends a new value into the array.
- addNull() - Method in class com.tenio.common.data.zero.implement.ZeroArrayImpl
- addNull() - Method in interface com.tenio.common.data.zero.ZeroArray
-
Appends a
null
value into the array. - addShort(short) - Method in class com.tenio.common.data.zero.implement.ZeroArrayImpl
- addShort(short) - Method in interface com.tenio.common.data.zero.ZeroArray
-
Appends a
short
value into the array. - addShortArray(Collection<Short>) - Method in class com.tenio.common.data.zero.implement.ZeroArrayImpl
- addShortArray(Collection<Short>) - Method in interface com.tenio.common.data.zero.ZeroArray
-
Appends a collection of
Short
values into the array. - addString(String) - Method in class com.tenio.common.data.msgpack.element.MsgPackArray
-
Appends a new value into the array.
- addString(String) - Method in class com.tenio.common.data.zero.implement.ZeroArrayImpl
- addString(String) - Method in interface com.tenio.common.data.zero.ZeroArray
-
Appends a
String
value into the array. - addStringArray(Collection<String>) - Method in class com.tenio.common.data.zero.implement.ZeroArrayImpl
- addStringArray(Collection<String>) - Method in interface com.tenio.common.data.zero.ZeroArray
-
Appends a collection of
String
values into the array. - addZeroArray(ZeroArray) - Method in class com.tenio.common.data.zero.implement.ZeroArrayImpl
- addZeroArray(ZeroArray) - Method in interface com.tenio.common.data.zero.ZeroArray
-
Appends a
ZeroArray
value into the array. - addZeroElement(ZeroElement) - Method in class com.tenio.common.data.zero.implement.ZeroArrayImpl
- addZeroElement(ZeroElement) - Method in interface com.tenio.common.data.zero.ZeroArray
-
Appends a
ZeroElement
into the array. - addZeroMap(ZeroMap) - Method in class com.tenio.common.data.zero.implement.ZeroArrayImpl
- addZeroMap(ZeroMap) - Method in interface com.tenio.common.data.zero.ZeroArray
-
Appends a
ZeroMap
value into the array. - arrayToBinary(ZeroArray) - Static method in class com.tenio.common.data.zero.utility.ZeroUtility
-
Serializes an array to a stream of bytes.
- available() - Method in class com.tenio.common.data.msgpack.ByteArrayInputStream
B
- binaryToArray(byte[]) - Static method in class com.tenio.common.data.zero.utility.ZeroUtility
-
Deserializes a stream of bytes to a zero array.
- binaryToCollection(byte[]) - Static method in class com.tenio.common.data.zero.utility.ZeroUtility
-
Deserializes a stream of bytes to a zero collection.
- binaryToCollection(DataType, byte[]) - Static method in class com.tenio.common.data.DataUtility
-
Deserializes a stream of bytes to a zero collection.
- binaryToMap(byte[]) - Static method in class com.tenio.common.data.zero.utility.ZeroUtility
-
Deserializes a stream of bytes to a zero map.
- BOOLEAN - Enum constant in enum class com.tenio.common.data.zero.ZeroType
-
Boolean
Value. - BOOLEAN_ARRAY - Enum constant in enum class com.tenio.common.data.zero.ZeroType
-
Collection of
Boolean
Value. - buildgen(Object...) - Method in class com.tenio.common.logger.AbstractLogger
-
To generate
StringBuilder
for logging information by the corresponding objects. - BYTE - Enum constant in enum class com.tenio.common.data.zero.ZeroType
-
Byte Value.
- BYTE_ARRAY - Enum constant in enum class com.tenio.common.data.zero.ZeroType
-
Byte Array Value.
- ByteArrayInputStream - Class in com.tenio.common.data.msgpack
- bytesToInt(byte[]) - Static method in class com.tenio.common.utility.ByteUtility
-
Converts an array of binaries to an integer value.
- bytesToShort(byte[]) - Static method in class com.tenio.common.utility.ByteUtility
-
Converts an array of binaries to a short value.
- ByteUtility - Class in com.tenio.common.utility
-
This class provides utility methods to work with stream of bytes.
C
- clamp(T, T, T) - Static method in class com.tenio.common.utility.MathUtility
-
Clamp method, have no idea.
- ClassLoaderUtility - Class in com.tenio.common.utility
-
This utility class provides methods to retrieve all classes from a java package.
- cleanup() - Method in class com.tenio.common.logger.pool.StringBuilderPool
- cleanup() - Method in interface com.tenio.common.pool.ElementPool
-
Clean up, after that all array elements will be set to null.
- clear() - Method in class com.tenio.common.configuration.CommonConfiguration
- clear() - Method in interface com.tenio.common.configuration.Configuration
-
Remove all configurations.
- clear() - Method in class com.tenio.common.task.implement.TaskManagerImpl
- clear() - Method in interface com.tenio.common.task.TaskManager
-
Kills or stops all running tasks.
- com.tenio.common.configuration - package com.tenio.common.configuration
- com.tenio.common.constant - package com.tenio.common.constant
- com.tenio.common.data - package com.tenio.common.data
- com.tenio.common.data.common - package com.tenio.common.data.common
- com.tenio.common.data.msgpack - package com.tenio.common.data.msgpack
- com.tenio.common.data.msgpack.element - package com.tenio.common.data.msgpack.element
- com.tenio.common.data.zero - package com.tenio.common.data.zero
- com.tenio.common.data.zero.implement - package com.tenio.common.data.zero.implement
- com.tenio.common.data.zero.utility - package com.tenio.common.data.zero.utility
- com.tenio.common.exception - package com.tenio.common.exception
- com.tenio.common.logger - package com.tenio.common.logger
- com.tenio.common.logger.pool - package com.tenio.common.logger.pool
- com.tenio.common.pool - package com.tenio.common.pool
- com.tenio.common.task - package com.tenio.common.task
- com.tenio.common.task.implement - package com.tenio.common.task.implement
- com.tenio.common.utility - package com.tenio.common.utility
- com.tenio.common.worker - package com.tenio.common.worker
- CommonArray - Class in com.tenio.common.data.common
-
This is an element array class holds data in a map.
- CommonArray() - Constructor for class com.tenio.common.data.common.CommonArray
-
Create a fresh instance.
- CommonConfiguration - Class in com.tenio.common.configuration
-
This server needs some basic configuration to start running.
- CommonConfiguration() - Constructor for class com.tenio.common.configuration.CommonConfiguration
-
Creates a new instance.
- CommonConstant - Class in com.tenio.common.constant
-
All base constants' values for the server are defined here.
- CommonMap - Class in com.tenio.common.data.common
-
This is an element object class holds data in a map.
- CommonMap() - Constructor for class com.tenio.common.data.common.CommonMap
-
Creates a new fresh instance.
- Configuration - Interface in com.tenio.common.configuration
-
This server needs some basic configuration to start running.
- ConfigurationType - Interface in com.tenio.common.configuration
-
This server needs some basic configuration to start running.
- contains(Object) - Method in class com.tenio.common.data.zero.implement.ZeroArrayImpl
- contains(Object) - Method in interface com.tenio.common.data.zero.ReadonlyZeroArray
-
Determines whether a value is available in array.
- contains(String) - Method in class com.tenio.common.data.common.CommonMap
-
Determines whether the data can be fetched by its key in the map.
- contains(String) - Method in class com.tenio.common.data.msgpack.element.MsgPackMap
-
Determines whether the data can be fetched by its key in the map.
- containsKey(String) - Method in class com.tenio.common.data.zero.implement.ZeroMapImpl
- containsKey(String) - Method in interface com.tenio.common.data.zero.ReadonlyZeroMap
-
Determines whether a value is available in map.
- containsValueAt(int) - Method in class com.tenio.common.data.zero.implement.ZeroArrayImpl
- containsValueAt(int) - Method in interface com.tenio.common.data.zero.ReadonlyZeroArray
-
Determines whether a value is present at the index or not.
- create(String, ScheduledFuture<?>) - Method in class com.tenio.common.task.implement.TaskManagerImpl
- create(String, ScheduledFuture<?>) - Method in interface com.tenio.common.task.TaskManager
-
Creates a new task.
- currentTimeMillis() - Static method in class com.tenio.common.utility.TimeUtility
-
Retrieves the current time in milliseconds.
- currentTimeSeconds() - Static method in class com.tenio.common.utility.TimeUtility
-
Retrieves the current time in seconds.
D
- data() - Method in record class com.tenio.common.data.zero.implement.ZeroElementImpl
-
Returns the value of the
data
record component. - DataCollection - Interface in com.tenio.common.data
-
A basic collection interface for the self-definition map and array type.
- DataType - Enum Class in com.tenio.common.data
-
Self-definition data types.
- DataUtility - Class in com.tenio.common.data
-
This class provides all necessary methods to work with the data elements.
- debug(String, Object...) - Method in class com.tenio.common.logger.SystemLogger
-
Prints out debugging logs.
- debugEvent(String, Object...) - Method in class com.tenio.common.logger.SystemLogger
-
Only use for debugging EVENTS in the server system.
- DEFAULT_NUMBER_ELEMENTS_POOL - Static variable in class com.tenio.common.constant.CommonConstant
-
The number of elements in a bulk those created for the first time.
- degreeToRadian(float) - Static method in class com.tenio.common.utility.MathUtility
-
Converts a value from degree to radian unit.
- deserialize(byte[]) - Static method in class com.tenio.common.data.msgpack.MsgPackUtility
-
Deserialize an array of bytes data to a
MsgPackMap
object. - doStop() - Method in class com.tenio.common.worker.WorkerPoolRunnable
-
Stops the current worker pool.
- DOUBLE - Enum constant in enum class com.tenio.common.data.zero.ZeroType
-
Double
Value. - DOUBLE_ARRAY - Enum constant in enum class com.tenio.common.data.zero.ZeroType
-
Collection of
Double
Value.
E
- ElementPool<T> - Interface in com.tenio.common.pool
-
In an application, you can have resources that are limited or time-consuming to create a new one.
- EPSILON_FLOAT - Static variable in class com.tenio.common.utility.MathUtility
-
The epsilon value in float.
- equals(Object) - Method in record class com.tenio.common.data.zero.implement.ZeroElementImpl
-
Indicates whether some other object is "equal to" this one.
- error(Object...) - Method in class com.tenio.common.logger.AbstractLogger
-
Only use for errors/issues detection in the server system.
- error(Throwable, Object...) - Method in class com.tenio.common.logger.AbstractLogger
-
Only use for EXCEPTION detection in the server system.
- error(Throwable, StringBuilder) - Method in class com.tenio.common.logger.AbstractLogger
-
Always use
AbstractLogger.buildgen(Object...)
for creatingStringBuilder
to avoid memory leak. - execute(Runnable, String) - Method in class com.tenio.common.worker.WorkerPool
-
Executes a task.
- extend(Map<String, String>) - Method in class com.tenio.common.configuration.CommonConfiguration
-
Your extension part can be handled here.
F
- FLOAT - Enum constant in enum class com.tenio.common.data.zero.ZeroType
-
Float
Value. - FLOAT_ARRAY - Enum constant in enum class com.tenio.common.data.zero.ZeroType
-
Collection of
Float
Value.
G
- get() - Method in class com.tenio.common.logger.pool.StringBuilderPool
- get() - Method in interface com.tenio.common.pool.ElementPool
-
Retrieves an element in the current pool.
- get(ConfigurationType) - Method in class com.tenio.common.configuration.CommonConfiguration
- get(ConfigurationType) - Method in interface com.tenio.common.configuration.Configuration
-
Retrieves the value by key.
- getArray() - Method in class com.tenio.common.data.msgpack.ByteArrayInputStream
- getAttrVal(Node, String) - Static method in class com.tenio.common.utility.XmlUtility
-
Retrieve node's attribute value.
- getAvailableSlot() - Method in class com.tenio.common.logger.pool.StringBuilderPool
- getAvailableSlot() - Method in interface com.tenio.common.pool.ElementPool
-
Retrieves the current available slots.
- getBoolean(int) - Method in class com.tenio.common.data.common.CommonArray
-
Retrieves value in the array by its index.
- getBoolean(int) - Method in class com.tenio.common.data.msgpack.element.MsgPackArray
-
Retrieves value in the array by its index.
- getBoolean(int) - Method in class com.tenio.common.data.zero.implement.ZeroArrayImpl
- getBoolean(int) - Method in interface com.tenio.common.data.zero.ReadonlyZeroArray
-
Retrieves the data of element at index in the array.
- getBoolean(ConfigurationType) - Method in class com.tenio.common.configuration.CommonConfiguration
- getBoolean(ConfigurationType) - Method in interface com.tenio.common.configuration.Configuration
-
Retrieves the value by key.
- getBoolean(String) - Method in class com.tenio.common.data.common.CommonMap
-
Retrieves value in the map by its key.
- getBoolean(String) - Method in class com.tenio.common.data.msgpack.element.MsgPackMap
-
Retrieves value in the map by its key.
- getBoolean(String) - Method in class com.tenio.common.data.zero.implement.ZeroMapImpl
- getBoolean(String) - Method in interface com.tenio.common.data.zero.ReadonlyZeroMap
-
Retrieves the data of element by its key in the map.
- getBooleanArray(int) - Method in class com.tenio.common.data.zero.implement.ZeroArrayImpl
- getBooleanArray(int) - Method in interface com.tenio.common.data.zero.ReadonlyZeroArray
-
Retrieves the data of element at index in the array.
- getBooleanArray(String) - Method in class com.tenio.common.data.zero.implement.ZeroMapImpl
- getBooleanArray(String) - Method in interface com.tenio.common.data.zero.ReadonlyZeroMap
-
Retrieves the data of element by its key in the map.
- getByte(int) - Method in class com.tenio.common.data.zero.implement.ZeroArrayImpl
- getByte(int) - Method in interface com.tenio.common.data.zero.ReadonlyZeroArray
-
Retrieves the data of element at index in the array.
- getByte(String) - Method in class com.tenio.common.data.zero.implement.ZeroMapImpl
- getByte(String) - Method in interface com.tenio.common.data.zero.ReadonlyZeroMap
-
Retrieves the data of element by its key in the map.
- getByteArray(int) - Method in class com.tenio.common.data.zero.implement.ZeroArrayImpl
- getByteArray(int) - Method in interface com.tenio.common.data.zero.ReadonlyZeroArray
-
Retrieves the data of element at index in the array.
- getByteArray(String) - Method in class com.tenio.common.data.zero.implement.ZeroMapImpl
- getByteArray(String) - Method in interface com.tenio.common.data.zero.ReadonlyZeroMap
-
Retrieves the data of element by its key in the map.
- getByValue(int) - Static method in enum class com.tenio.common.data.zero.ZeroType
-
Retrieves a type by using its value.
- getByValue(String) - Static method in enum class com.tenio.common.data.DataType
-
Retrieves a type by using its value.
- getClasses(String) - Static method in class com.tenio.common.utility.ClassLoaderUtility
-
Attempts to list all the classes in the specified package as determined by the context class loader.
- getCommonObject(String) - Method in class com.tenio.common.data.common.CommonMap
-
Retrieves value in the map by its key.
- getCommonObjectArray(int) - Method in class com.tenio.common.data.common.CommonArray
-
Retrieves value in the array by its index.
- getCommonObjectArray(String) - Method in class com.tenio.common.data.common.CommonMap
-
Retrieves value in the map by its key.
- getData() - Method in record class com.tenio.common.data.zero.implement.ZeroElementImpl
- getData() - Method in interface com.tenio.common.data.zero.ZeroElement
-
Retrieves the data of element.
- getDataCollection(String) - Method in class com.tenio.common.data.zero.implement.ZeroMapImpl
- getDataCollection(String) - Method in interface com.tenio.common.data.zero.ReadonlyZeroMap
-
Retrieves the data of element by its key in the generic data collection type.
- getDataForElementAt(int) - Method in class com.tenio.common.data.zero.implement.ZeroArrayImpl
- getDataForElementAt(int) - Method in interface com.tenio.common.data.zero.ReadonlyZeroArray
-
Retrieves the data of element at index in the array.
- getDouble(int) - Method in class com.tenio.common.data.common.CommonArray
-
Retrieves value in the array by its index.
- getDouble(int) - Method in class com.tenio.common.data.zero.implement.ZeroArrayImpl
- getDouble(int) - Method in interface com.tenio.common.data.zero.ReadonlyZeroArray
-
Retrieves the data of element at index in the array.
- getDouble(String) - Method in class com.tenio.common.data.common.CommonMap
-
Retrieves value in the map by its key.
- getDouble(String) - Method in class com.tenio.common.data.zero.implement.ZeroMapImpl
- getDouble(String) - Method in interface com.tenio.common.data.zero.ReadonlyZeroMap
-
Retrieves the data of element by its key in the map.
- getDoubleArray(int) - Method in class com.tenio.common.data.zero.implement.ZeroArrayImpl
- getDoubleArray(int) - Method in interface com.tenio.common.data.zero.ReadonlyZeroArray
-
Retrieves the data of element at index in the array.
- getDoubleArray(String) - Method in class com.tenio.common.data.zero.implement.ZeroMapImpl
- getDoubleArray(String) - Method in interface com.tenio.common.data.zero.ReadonlyZeroMap
-
Retrieves the data of element by its key in the map.
- getFloat(int) - Method in class com.tenio.common.data.common.CommonArray
-
Retrieves value in the array by its index.
- getFloat(int) - Method in class com.tenio.common.data.msgpack.element.MsgPackArray
-
Retrieves value in the array by its index.
- getFloat(int) - Method in class com.tenio.common.data.zero.implement.ZeroArrayImpl
- getFloat(int) - Method in interface com.tenio.common.data.zero.ReadonlyZeroArray
-
Retrieves the data of element at index in the array.
- getFloat(ConfigurationType) - Method in class com.tenio.common.configuration.CommonConfiguration
- getFloat(ConfigurationType) - Method in interface com.tenio.common.configuration.Configuration
-
Retrieves the value by key.
- getFloat(String) - Method in class com.tenio.common.data.common.CommonMap
-
Retrieves value in the map by its key.
- getFloat(String) - Method in class com.tenio.common.data.msgpack.element.MsgPackMap
-
Retrieves value in the map by its key.
- getFloat(String) - Method in class com.tenio.common.data.zero.implement.ZeroMapImpl
- getFloat(String) - Method in interface com.tenio.common.data.zero.ReadonlyZeroMap
-
Retrieves the data of element by its key in the map.
- getFloatArray(int) - Method in class com.tenio.common.data.zero.implement.ZeroArrayImpl
- getFloatArray(int) - Method in interface com.tenio.common.data.zero.ReadonlyZeroArray
-
Retrieves the data of element at index in the array.
- getFloatArray(String) - Method in class com.tenio.common.data.zero.implement.ZeroMapImpl
- getFloatArray(String) - Method in interface com.tenio.common.data.zero.ReadonlyZeroMap
-
Retrieves the data of element by its key in the map.
- getInstance() - Static method in class com.tenio.common.logger.pool.StringBuilderPool
-
Preventing Singleton object instantiation from outside creates multiple instance if two thread access this method simultaneously.
- getInt(int) - Method in class com.tenio.common.data.common.CommonArray
-
Retrieves value in the array by its index.
- getInt(ConfigurationType) - Method in class com.tenio.common.configuration.CommonConfiguration
- getInt(ConfigurationType) - Method in interface com.tenio.common.configuration.Configuration
-
Retrieves the value by key.
- getInt(String) - Method in class com.tenio.common.data.common.CommonMap
-
Retrieves value in the map by its key.
- getInteger(int) - Method in class com.tenio.common.data.msgpack.element.MsgPackArray
-
Retrieves value in the array by its index.
- getInteger(int) - Method in class com.tenio.common.data.zero.implement.ZeroArrayImpl
- getInteger(int) - Method in interface com.tenio.common.data.zero.ReadonlyZeroArray
-
Retrieves the data of element at index in the array.
- getInteger(String) - Method in class com.tenio.common.data.msgpack.element.MsgPackMap
-
Retrieves value in the map by its key.
- getInteger(String) - Method in class com.tenio.common.data.zero.implement.ZeroMapImpl
- getInteger(String) - Method in interface com.tenio.common.data.zero.ReadonlyZeroMap
-
Retrieves the data of element by its key in the map.
- getIntegerArray(int) - Method in class com.tenio.common.data.zero.implement.ZeroArrayImpl
- getIntegerArray(int) - Method in interface com.tenio.common.data.zero.ReadonlyZeroArray
-
Retrieves the data of element at index in the array.
- getIntegerArray(String) - Method in class com.tenio.common.data.zero.implement.ZeroMapImpl
- getIntegerArray(String) - Method in interface com.tenio.common.data.zero.ReadonlyZeroMap
-
Retrieves the data of element by its key in the map.
- getKeys() - Method in class com.tenio.common.data.zero.implement.ZeroMapImpl
- getKeys() - Method in interface com.tenio.common.data.zero.ReadonlyZeroMap
-
Retrieves a set of keys in map.
- getLength() - Method in class com.tenio.common.data.msgpack.ByteArrayInputStream
- getLong(int) - Method in class com.tenio.common.data.common.CommonArray
-
Retrieves value in the array by its index.
- getLong(int) - Method in class com.tenio.common.data.zero.implement.ZeroArrayImpl
- getLong(int) - Method in interface com.tenio.common.data.zero.ReadonlyZeroArray
-
Retrieves the data of element at index in the array.
- getLong(String) - Method in class com.tenio.common.data.common.CommonMap
-
Retrieves value in the map by its key.
- getLong(String) - Method in class com.tenio.common.data.zero.implement.ZeroMapImpl
- getLong(String) - Method in interface com.tenio.common.data.zero.ReadonlyZeroMap
-
Retrieves the data of element by its key in the map.
- getLongArray(int) - Method in class com.tenio.common.data.zero.implement.ZeroArrayImpl
- getLongArray(int) - Method in interface com.tenio.common.data.zero.ReadonlyZeroArray
-
Retrieves the data of element at index in the array.
- getLongArray(String) - Method in class com.tenio.common.data.zero.implement.ZeroMapImpl
- getLongArray(String) - Method in interface com.tenio.common.data.zero.ReadonlyZeroMap
-
Retrieves the data of element by its key in the map.
- getMsgPackArray(int) - Method in class com.tenio.common.data.msgpack.element.MsgPackArray
-
Retrieves value in the array by its index.
- getMsgPackArray(String) - Method in class com.tenio.common.data.msgpack.element.MsgPackMap
-
Retrieves value in the map by its key.
- getMsgPackMap(String) - Method in class com.tenio.common.data.msgpack.element.MsgPackMap
-
Retrieves value in the map by its key.
- getNode(Node, String) - Static method in class com.tenio.common.utility.XmlUtility
-
Retrieve a node.
- getNodeList(Node, String) - Static method in class com.tenio.common.utility.XmlUtility
-
Get a list of nodes.
- getNodeValue(Node) - Static method in class com.tenio.common.utility.XmlUtility
-
Get the node content.
- getObject(int) - Method in class com.tenio.common.data.common.CommonArray
-
Retrieves value in the array by its index.
- getObject(String) - Method in class com.tenio.common.data.common.CommonMap
-
Retrieves value in the map by its key.
- getOffset() - Method in class com.tenio.common.data.msgpack.ByteArrayInputStream
- getOperatingSystemType() - Static method in class com.tenio.common.utility.OsUtility
-
Detect the operating system from the os.name System property and cache the result.
- getPoolSize() - Method in class com.tenio.common.logger.pool.StringBuilderPool
- getPoolSize() - Method in interface com.tenio.common.pool.ElementPool
-
Retrieves the pool size.
- getRandomTextByLength(int) - Static method in class com.tenio.common.utility.StringUtility
-
To generate a randomized string.
- getRandomUuid() - Static method in class com.tenio.common.utility.StringUtility
-
To generate an unique string in UUID format.
- getReadonlyKeys() - Method in class com.tenio.common.data.zero.implement.ZeroMapImpl
- getReadonlyKeys() - Method in interface com.tenio.common.data.zero.ReadonlyZeroMap
-
Retrieves an unmodifiable set of keys in map.
- getReadonlyList() - Method in class com.tenio.common.data.common.CommonArray
-
Retrieves a new copy of the interior array.
- getReadonlyList() - Method in class com.tenio.common.data.msgpack.element.MsgPackArray
-
Retrieves a new copy of the interior array.
- getReadonlyMap() - Method in class com.tenio.common.data.common.CommonMap
-
Retrieves a new copy of the interior map.
- getReadonlyMap() - Method in class com.tenio.common.data.msgpack.element.MsgPackMap
-
Retrieves a new copy of the interior map.
- getReadonlyZeroArray() - Method in class com.tenio.common.data.zero.implement.ZeroArrayImpl
- getReadonlyZeroArray() - Method in interface com.tenio.common.data.zero.ZeroArray
-
Retrieves a new array in read-only mode.
- getReadonlyZeroMap() - Method in class com.tenio.common.data.zero.implement.ZeroMapImpl
- getReadonlyZeroMap() - Method in interface com.tenio.common.data.zero.ZeroMap
-
Retrieves a new map in read-only mode.
- getRemainTime(String) - Method in class com.tenio.common.task.implement.TaskManagerImpl
- getRemainTime(String) - Method in interface com.tenio.common.task.TaskManager
-
Retrieves the remaining time of one task.
- getShort(int) - Method in class com.tenio.common.data.zero.implement.ZeroArrayImpl
- getShort(int) - Method in interface com.tenio.common.data.zero.ReadonlyZeroArray
-
Retrieves the data of element at index in the array.
- getShort(String) - Method in class com.tenio.common.data.zero.implement.ZeroMapImpl
- getShort(String) - Method in interface com.tenio.common.data.zero.ReadonlyZeroMap
-
Retrieves the data of element by its key in the map.
- getShortArray(int) - Method in class com.tenio.common.data.zero.implement.ZeroArrayImpl
- getShortArray(int) - Method in interface com.tenio.common.data.zero.ReadonlyZeroArray
-
Retrieves the data of element at index in the array.
- getShortArray(String) - Method in class com.tenio.common.data.zero.implement.ZeroMapImpl
- getShortArray(String) - Method in interface com.tenio.common.data.zero.ReadonlyZeroMap
-
Retrieves the data of element by its key in the map.
- getString(int) - Method in class com.tenio.common.data.common.CommonArray
-
Retrieves value in the array by its index.
- getString(int) - Method in class com.tenio.common.data.msgpack.element.MsgPackArray
-
Retrieves value in the array by its index.
- getString(int) - Method in class com.tenio.common.data.zero.implement.ZeroArrayImpl
- getString(int) - Method in interface com.tenio.common.data.zero.ReadonlyZeroArray
-
Retrieves the data of element at index in the array.
- getString(ConfigurationType) - Method in class com.tenio.common.configuration.CommonConfiguration
- getString(ConfigurationType) - Method in interface com.tenio.common.configuration.Configuration
-
Retrieves the value by key.
- getString(String) - Method in class com.tenio.common.data.common.CommonMap
-
Retrieves value in the map by its key.
- getString(String) - Method in class com.tenio.common.data.msgpack.element.MsgPackMap
-
Retrieves value in the map by its key.
- getString(String) - Method in class com.tenio.common.data.zero.implement.ZeroMapImpl
- getString(String) - Method in interface com.tenio.common.data.zero.ReadonlyZeroMap
-
Retrieves the data of element by its key in the map.
- getStringArray(int) - Method in class com.tenio.common.data.zero.implement.ZeroArrayImpl
- getStringArray(int) - Method in interface com.tenio.common.data.zero.ReadonlyZeroArray
-
Retrieves the data of element at index in the array.
- getStringArray(String) - Method in class com.tenio.common.data.zero.implement.ZeroMapImpl
- getStringArray(String) - Method in interface com.tenio.common.data.zero.ReadonlyZeroMap
-
Retrieves the data of element by its key in the map.
- getType() - Method in record class com.tenio.common.data.zero.implement.ZeroElementImpl
- getType() - Method in interface com.tenio.common.data.zero.ZeroElement
-
Retrieves the type of element.
- getValue() - Method in enum class com.tenio.common.data.DataType
-
Fetches the type's value.
- getValue() - Method in enum class com.tenio.common.data.zero.ZeroType
-
Fetches the type's value.
- getZeroArray(int) - Method in class com.tenio.common.data.zero.implement.ZeroArrayImpl
- getZeroArray(int) - Method in interface com.tenio.common.data.zero.ReadonlyZeroArray
-
Retrieves the data of element at index in the array.
- getZeroArray(String) - Method in class com.tenio.common.data.zero.implement.ZeroMapImpl
- getZeroArray(String) - Method in interface com.tenio.common.data.zero.ReadonlyZeroMap
-
Retrieves the data of element by its key in the map.
- getZeroElement(int) - Method in class com.tenio.common.data.zero.implement.ZeroArrayImpl
- getZeroElement(int) - Method in interface com.tenio.common.data.zero.ReadonlyZeroArray
-
Retrieves the data of element at index in the array.
- getZeroElement(String) - Method in class com.tenio.common.data.zero.implement.ZeroMapImpl
- getZeroElement(String) - Method in interface com.tenio.common.data.zero.ReadonlyZeroMap
-
Retrieves the data of element by its key in the map.
- getZeroMap(int) - Method in class com.tenio.common.data.zero.implement.ZeroArrayImpl
- getZeroMap(int) - Method in interface com.tenio.common.data.zero.ReadonlyZeroArray
-
Retrieves the data of element at index in the array.
- getZeroMap(String) - Method in class com.tenio.common.data.zero.implement.ZeroMapImpl
- getZeroMap(String) - Method in interface com.tenio.common.data.zero.ReadonlyZeroMap
-
Retrieves the data of element by its key in the map.
H
- HALF_PI - Static variable in class com.tenio.common.utility.MathUtility
-
The half value of Pi number.
- hashCode() - Method in record class com.tenio.common.data.zero.implement.ZeroElementImpl
-
Returns a hash code value for this object.
I
- info(StringBuilder, StringBuilder) - Method in class com.tenio.common.logger.AbstractLogger
-
Always use
AbstractLogger.buildgen(Object...)
for creatingStringBuilder
to avoid memory leak. - info(StringBuilder, StringBuilder, Object) - Method in class com.tenio.common.logger.AbstractLogger
-
Always use
AbstractLogger.buildgen(Object...)
for creatingStringBuilder
to avoid memory leak. - info(StringBuilder, StringBuilder, StringBuilder) - Method in class com.tenio.common.logger.AbstractLogger
-
Always use
AbstractLogger.buildgen(Object...)
for creatingStringBuilder
to avoid memory leak. - info(StringBuilder, String, StringBuilder) - Method in class com.tenio.common.logger.AbstractLogger
-
Always use
AbstractLogger.buildgen(Object...)
for creatingStringBuilder
to avoid memory leak. - info(String, Object) - Method in class com.tenio.common.logger.AbstractLogger
-
Always use
AbstractLogger.buildgen(Object...)
for creatingStringBuilder
to avoid memory leak. - info(String, StringBuilder) - Method in class com.tenio.common.logger.AbstractLogger
-
Always use
AbstractLogger.buildgen(Object...)
for creatingStringBuilder
to avoid memory leak. - info(String, String, Object) - Method in class com.tenio.common.logger.AbstractLogger
-
Always use
AbstractLogger.buildgen(Object...)
for creatingStringBuilder
to avoid memory leak. - info(String, String, StringBuilder) - Method in class com.tenio.common.logger.AbstractLogger
-
Always use
AbstractLogger.buildgen(Object...)
for creatingStringBuilder
to avoid memory leak. - INTEGER - Enum constant in enum class com.tenio.common.data.zero.ZeroType
-
Integer
Value. - INTEGER_ARRAY - Enum constant in enum class com.tenio.common.data.zero.ZeroType
-
Collection of
Integer
Value. - intToBytes(int) - Static method in class com.tenio.common.utility.ByteUtility
-
Converts a primitive integer value to an array of binaries.
- isDebugEnabled() - Method in class com.tenio.common.logger.SystemLogger
- isDefined(ConfigurationType) - Method in class com.tenio.common.configuration.CommonConfiguration
- isDefined(ConfigurationType) - Method in interface com.tenio.common.configuration.Configuration
-
Determines if this configuration is existed or defined.
- isEqual(float, float) - Static method in class com.tenio.common.utility.MathUtility
-
Compares two real numbers.
- isErrorEnabled() - Method in class com.tenio.common.logger.AbstractLogger
- isInfoEnabled() - Method in class com.tenio.common.logger.AbstractLogger
- isNaN(T) - Static method in class com.tenio.common.utility.MathUtility
-
Determines if an object is not
null
. - isNull(int) - Method in class com.tenio.common.data.zero.implement.ZeroArrayImpl
- isNull(int) - Method in interface com.tenio.common.data.zero.ReadonlyZeroArray
-
Determines whether a value at an index is
ZeroType.NULL
. - isNull(String) - Method in class com.tenio.common.data.zero.implement.ZeroMapImpl
- isNull(String) - Method in interface com.tenio.common.data.zero.ReadonlyZeroMap
-
Determines whether a value in the map is
ZeroType.NULL
type. - isStopped() - Method in class com.tenio.common.worker.WorkerPoolRunnable
-
Checks if the work pool is stopped.
- isTraceEnabled() - Method in class com.tenio.common.logger.SystemLogger
- iterator() - Method in class com.tenio.common.data.zero.implement.ZeroArrayImpl
-
This method potentially creates an issue called "escape references".
- iterator() - Method in class com.tenio.common.data.zero.implement.ZeroMapImpl
-
This method potentially creates an issue called "escape references".
K
- kill(String) - Method in class com.tenio.common.task.implement.TaskManagerImpl
- kill(String) - Method in interface com.tenio.common.task.TaskManager
-
Kills or stops a running task.
L
- LINUX - Enum constant in enum class com.tenio.common.utility.OsUtility.OsType
-
Unix type OS.
- load(String) - Method in interface com.tenio.common.configuration.Configuration
-
Load the configuration by configured files.
- LONG - Enum constant in enum class com.tenio.common.data.zero.ZeroType
-
Long
Value. - LONG_ARRAY - Enum constant in enum class com.tenio.common.data.zero.ZeroType
-
Collection of
Long
Value.
M
- MAC - Enum constant in enum class com.tenio.common.utility.OsUtility.OsType
-
Mac OS.
- mapToBinary(ZeroMap) - Static method in class com.tenio.common.data.zero.utility.ZeroUtility
-
Serialize a map to a stream of bytes.
- mark(int) - Method in class com.tenio.common.data.msgpack.ByteArrayInputStream
- markSupported() - Method in class com.tenio.common.data.msgpack.ByteArrayInputStream
- MathUtility - Class in com.tenio.common.utility
-
A collection of utility methods for calculations.
- MAX_FLOAT - Static variable in class com.tenio.common.utility.MathUtility
-
The maximum value of a float number.
- MAX_INT - Static variable in class com.tenio.common.utility.MathUtility
-
The maximum value of an integer number.
- maxOf(T, T) - Static method in class com.tenio.common.utility.MathUtility
-
Retrieves the greater value of two numbers.
- MIN_FLOAT - Static variable in class com.tenio.common.utility.MathUtility
-
The minimum value of a float number.
- MIN_INT - Static variable in class com.tenio.common.utility.MathUtility
-
The minimum value of an integer number.
- minOf(T, T) - Static method in class com.tenio.common.utility.MathUtility
-
Retrieves the lesser value of two number.
- MSG_PACK - Enum constant in enum class com.tenio.common.data.DataType
-
Uses the MsgPack tool.
- MsgPackArray - Class in com.tenio.common.data.msgpack.element
-
This is an element array class holds data in a map.
- MsgPackArray() - Constructor for class com.tenio.common.data.msgpack.element.MsgPackArray
-
Create a fresh instance.
- MsgPackMap - Class in com.tenio.common.data.msgpack.element
-
This is an element object class holds data in a map.
- MsgPackMap() - Constructor for class com.tenio.common.data.msgpack.element.MsgPackMap
-
Creates a new fresh instance.
- MsgPackUtility - Class in com.tenio.common.data.msgpack
-
MessagePack is an efficient binary serialization format.
N
- newInstance() - Static method in class com.tenio.common.data.common.CommonArray
-
Retrieves new instance of the class.
- newInstance() - Static method in class com.tenio.common.data.common.CommonMap
-
Retrieves new instance of the class.
- newInstance() - Static method in class com.tenio.common.data.msgpack.ByteArrayInputStream
- newInstance() - Static method in class com.tenio.common.data.msgpack.element.MsgPackArray
-
Retrieves new instance of the class.
- newInstance() - Static method in class com.tenio.common.data.msgpack.element.MsgPackMap
-
Retrieves new instance of the class.
- newInstance() - Static method in class com.tenio.common.task.implement.TaskManagerImpl
-
Creates a new instance for task manager.
- newMsgArray() - Static method in class com.tenio.common.data.DataUtility
-
Creates a new instance of
MsgPackArray
class. - newMsgMap() - Static method in class com.tenio.common.data.DataUtility
-
Creates a new instance of
MsgPackMap
class. - newMsgPackArray() - Static method in class com.tenio.common.data.msgpack.MsgPackUtility
-
Retrieves new instance of the
MsgPackArray
class. - newMsgPackMap() - Static method in class com.tenio.common.data.msgpack.MsgPackUtility
-
Retrieves new instance of the
MsgPackMap
class. - newZeroArray() - Static method in class com.tenio.common.data.DataUtility
-
Creates a new instance of
ZeroArray
class. - newZeroArray() - Static method in class com.tenio.common.data.zero.utility.ZeroUtility
-
Creates a new instance of
ZeroArray
class. - newZeroElement(ZeroType, Object) - Static method in class com.tenio.common.data.zero.utility.ZeroUtility
-
Creates a new instance of
ZeroElement
class. - newZeroMap() - Static method in class com.tenio.common.data.DataUtility
-
Creates a new instance of
ZeroMap
class. - newZeroMap() - Static method in class com.tenio.common.data.zero.utility.ZeroUtility
-
Creates a new instance of
ZeroMap
class. - NULL - Enum constant in enum class com.tenio.common.data.zero.ZeroType
-
Null Value.
- NullElementPoolException - Exception in com.tenio.common.exception
-
This exception would be thrown when you try to repay a null element.
- NullElementPoolException(String) - Constructor for exception com.tenio.common.exception.NullElementPoolException
-
Creates a new instance.
O
- OsUtility - Class in com.tenio.common.utility
-
This class provides some utility methods to work with OS.
- OsUtility.OsType - Enum Class in com.tenio.common.utility
-
Types of Operating Systems.
- OTHER - Enum constant in enum class com.tenio.common.utility.OsUtility.OsType
-
Unknown OS.
P
- parseFile(File) - Static method in class com.tenio.common.utility.XmlUtility
-
To parse an XML file.
- parseStream(InputStream) - Static method in class com.tenio.common.utility.XmlUtility
-
To parse a stream.
- PI - Static variable in class com.tenio.common.utility.MathUtility
-
The Pi number.
- push(ConfigurationType, Object) - Method in class com.tenio.common.configuration.CommonConfiguration
-
Put a new configuration into the map.
- put(Object) - Method in class com.tenio.common.data.common.CommonArray
-
Appends a new value into the array.
- putBoolean(String, boolean) - Method in class com.tenio.common.data.msgpack.element.MsgPackMap
-
Adds new data into the map with its key.
- putBoolean(String, boolean) - Method in class com.tenio.common.data.zero.implement.ZeroMapImpl
- putBoolean(String, boolean) - Method in interface com.tenio.common.data.zero.ZeroMap
-
Puts a
boolean
value into the map. - putBooleanArray(String, Collection<Boolean>) - Method in class com.tenio.common.data.zero.implement.ZeroMapImpl
- putBooleanArray(String, Collection<Boolean>) - Method in interface com.tenio.common.data.zero.ZeroMap
-
Puts a collection of
Boolean
values into the map. - putByte(String, byte) - Method in class com.tenio.common.data.zero.implement.ZeroMapImpl
- putByte(String, byte) - Method in interface com.tenio.common.data.zero.ZeroMap
-
Puts a
byte
value into the map. - putByteArray(String, byte[]) - Method in class com.tenio.common.data.zero.implement.ZeroMapImpl
- putByteArray(String, byte[]) - Method in interface com.tenio.common.data.zero.ZeroMap
-
Puts an array of binaries into the map.
- putDouble(String, double) - Method in class com.tenio.common.data.zero.implement.ZeroMapImpl
- putDouble(String, double) - Method in interface com.tenio.common.data.zero.ZeroMap
-
Puts a
double
value into the map. - putDoubleArray(String, Collection<Double>) - Method in class com.tenio.common.data.zero.implement.ZeroMapImpl
- putDoubleArray(String, Collection<Double>) - Method in interface com.tenio.common.data.zero.ZeroMap
-
Puts a collection of
Double
values into the map. - putFloat(String, float) - Method in class com.tenio.common.data.msgpack.element.MsgPackMap
-
Adds new data into the map with its key.
- putFloat(String, float) - Method in class com.tenio.common.data.zero.implement.ZeroMapImpl
- putFloat(String, float) - Method in interface com.tenio.common.data.zero.ZeroMap
-
Puts a
float
value into the map. - putFloatArray(String, Collection<Float>) - Method in class com.tenio.common.data.zero.implement.ZeroMapImpl
- putFloatArray(String, Collection<Float>) - Method in interface com.tenio.common.data.zero.ZeroMap
-
Puts a collection of
Float
values into the map. - putInteger(String, int) - Method in class com.tenio.common.data.msgpack.element.MsgPackMap
-
Adds new data into the map with its key.
- putInteger(String, int) - Method in class com.tenio.common.data.zero.implement.ZeroMapImpl
- putInteger(String, int) - Method in interface com.tenio.common.data.zero.ZeroMap
-
Puts a
integer
value into the map. - putIntegerArray(String, Collection<Integer>) - Method in class com.tenio.common.data.zero.implement.ZeroMapImpl
- putIntegerArray(String, Collection<Integer>) - Method in interface com.tenio.common.data.zero.ZeroMap
-
Puts a collection of
Integer
values into the map. - putLong(String, long) - Method in class com.tenio.common.data.zero.implement.ZeroMapImpl
- putLong(String, long) - Method in interface com.tenio.common.data.zero.ZeroMap
-
Puts a
long
value into the map. - putLongArray(String, Collection<Long>) - Method in class com.tenio.common.data.zero.implement.ZeroMapImpl
- putLongArray(String, Collection<Long>) - Method in interface com.tenio.common.data.zero.ZeroMap
-
Puts a collection of
Long
values into the map. - putMsgPackArray(String, MsgPackArray) - Method in class com.tenio.common.data.msgpack.element.MsgPackMap
-
Adds new data into the map with its key.
- putMsgPackMap(String, MsgPackMap) - Method in class com.tenio.common.data.msgpack.element.MsgPackMap
-
Adds new data into the map with its key.
- putNull(String) - Method in class com.tenio.common.data.zero.implement.ZeroMapImpl
- putNull(String) - Method in interface com.tenio.common.data.zero.ZeroMap
-
Puts a
null
value into the map. - putShort(String, short) - Method in class com.tenio.common.data.zero.implement.ZeroMapImpl
- putShort(String, short) - Method in interface com.tenio.common.data.zero.ZeroMap
-
Puts a
short
value into the map. - putShortArray(String, Collection<Short>) - Method in class com.tenio.common.data.zero.implement.ZeroMapImpl
- putShortArray(String, Collection<Short>) - Method in interface com.tenio.common.data.zero.ZeroMap
-
Puts a collection of
Short
values into the map. - putString(String, String) - Method in class com.tenio.common.data.msgpack.element.MsgPackMap
-
Adds new data into the map with its key.
- putString(String, String) - Method in class com.tenio.common.data.zero.implement.ZeroMapImpl
- putString(String, String) - Method in interface com.tenio.common.data.zero.ZeroMap
-
Puts a
String
value into the map. - putStringArray(String, Collection<String>) - Method in class com.tenio.common.data.zero.implement.ZeroMapImpl
- putStringArray(String, Collection<String>) - Method in interface com.tenio.common.data.zero.ZeroMap
-
Puts a collection of
String
values into the map. - putZeroArray(String, ZeroArray) - Method in class com.tenio.common.data.zero.implement.ZeroMapImpl
- putZeroArray(String, ZeroArray) - Method in interface com.tenio.common.data.zero.ZeroMap
-
Puts a
ZeroArray
value into the map. - putZeroElement(String, ZeroElement) - Method in class com.tenio.common.data.zero.implement.ZeroMapImpl
- putZeroElement(String, ZeroElement) - Method in interface com.tenio.common.data.zero.ZeroMap
-
Puts a
ZeroElement
into the map. - putZeroMap(String, ZeroMap) - Method in class com.tenio.common.data.zero.implement.ZeroMapImpl
- putZeroMap(String, ZeroMap) - Method in interface com.tenio.common.data.zero.ZeroMap
-
Puts a
ZeroMap
value into the map.
Q
- QUARTER_PI - Static variable in class com.tenio.common.utility.MathUtility
-
The quarter value Pi number.
R
- randBool() - Static method in class com.tenio.common.utility.MathUtility
-
Retrieves a random boolean value.
- randFloat() - Static method in class com.tenio.common.utility.MathUtility
-
Retrieves a random float number.
- randGaussian() - Static method in class com.tenio.common.utility.MathUtility
-
Retrieves a random gaussian value.
- randGaussian(float, float) - Static method in class com.tenio.common.utility.MathUtility
-
Retrieves a random gaussian value.
- randInRange(float, float) - Static method in class com.tenio.common.utility.MathUtility
-
Retrieves a random float number in range.
- randInt(int, int) - Static method in class com.tenio.common.utility.MathUtility
-
Retrieves a random integer number.
- randomClamped() - Static method in class com.tenio.common.utility.MathUtility
-
Retrieves a random clamped value.
- read() - Method in class com.tenio.common.data.msgpack.ByteArrayInputStream
- read(byte[], int, int) - Method in class com.tenio.common.data.msgpack.ByteArrayInputStream
- ReadonlyZeroArray - Interface in com.tenio.common.data.zero
-
This class holds sequence elements in read-only mode.
- ReadonlyZeroMap - Interface in com.tenio.common.data.zero
-
This class holds data by pairs of key and value, works like a map in read-only mode.
- removeElement(String) - Method in class com.tenio.common.data.zero.implement.ZeroMapImpl
- removeElement(String) - Method in interface com.tenio.common.data.zero.ZeroMap
-
Removes an element by using its key.
- removeElementAt(int) - Method in class com.tenio.common.data.zero.implement.ZeroArrayImpl
- removeElementAt(int) - Method in interface com.tenio.common.data.zero.ZeroArray
-
Removes an element at an
integer
index. - repay(StringBuilder) - Method in class com.tenio.common.logger.pool.StringBuilderPool
- repay(T) - Method in interface com.tenio.common.pool.ElementPool
-
When you finished using an element, repay (free) it for the reusing.
- reset() - Method in class com.tenio.common.data.msgpack.ByteArrayInputStream
- reset(byte[]) - Method in class com.tenio.common.data.msgpack.ByteArrayInputStream
- reset(byte[], int, int) - Method in class com.tenio.common.data.msgpack.ByteArrayInputStream
- reset(int) - Method in class com.tenio.common.data.msgpack.ByteArrayInputStream
- resizeBytesArray(byte[], int, int) - Static method in class com.tenio.common.utility.ByteUtility
-
Resizes the current array of bytes, create a new one.
- run() - Method in interface com.tenio.common.task.Task
-
Executes a task.
- run() - Method in class com.tenio.common.worker.WorkerPoolRunnable
-
Starts a new thread for a worker pool.
- RunningScheduledTaskException - Exception in com.tenio.common.exception
-
This exception would be thrown when you try to start a running task.
- RunningScheduledTaskException() - Constructor for exception com.tenio.common.exception.RunningScheduledTaskException
S
- serialize(MsgPackMap) - Static method in class com.tenio.common.data.msgpack.MsgPackUtility
-
Serialize an object to an array of bytes data.
- setByte(int, byte) - Method in class com.tenio.common.data.zero.implement.ZeroArrayImpl
- setByte(int, byte) - Method in interface com.tenio.common.data.zero.ZeroArray
-
Sets a
byte
value at index in the array. - setLong(int, long) - Method in class com.tenio.common.data.zero.implement.ZeroArrayImpl
- setLong(int, long) - Method in interface com.tenio.common.data.zero.ZeroArray
-
Sets a
long
value at index in the array. - setSeed(long) - Static method in class com.tenio.common.utility.MathUtility
-
Initializes the seed.
- SHORT - Enum constant in enum class com.tenio.common.data.zero.ZeroType
-
Short
Value. - SHORT_ARRAY - Enum constant in enum class com.tenio.common.data.zero.ZeroType
-
Collection of
Short
Value. - shortToBytes(short) - Static method in class com.tenio.common.utility.ByteUtility
-
Converts a primitive short value to an array of binaries.
- size() - Method in interface com.tenio.common.data.DataCollection
-
Retrieves the number of elements in collection.
- size() - Method in class com.tenio.common.data.zero.implement.ZeroArrayImpl
- size() - Method in class com.tenio.common.data.zero.implement.ZeroMapImpl
- skip(long) - Method in class com.tenio.common.data.msgpack.ByteArrayInputStream
- stop() - Method in class com.tenio.common.worker.WorkerPool
-
Stop a task.
- strgen(Object...) - Static method in class com.tenio.common.utility.StringUtility
-
To generate
String
for logging information by the corresponding objects. - STRING - Enum constant in enum class com.tenio.common.data.zero.ZeroType
-
String
Value. - STRING_ARRAY - Enum constant in enum class com.tenio.common.data.zero.ZeroType
-
Collection of
String
Value. - StringBuilderPool - Class in com.tenio.common.logger.pool
-
The object pool mechanism for
StringBuilder
. - StringUtility - Class in com.tenio.common.utility
-
A collection of utility methods for strings.
- SystemLogger - Class in com.tenio.common.logger
-
The recording logs of a developer is important for every system.
- SystemLogger() - Constructor for class com.tenio.common.logger.SystemLogger
T
- Task - Interface in com.tenio.common.task
-
This class provides a
ScheduledFuture
to do a mission. - TaskManager - Interface in com.tenio.common.task
-
This class uses Java scheduler (
ScheduledFuture
) to manage your tasks. - TaskManagerImpl - Class in com.tenio.common.task.implement
-
This class uses Java scheduler (
ScheduledFuture
) to manage your tasks. - TimeUtility - Class in com.tenio.common.utility
-
A collection of utility methods for time.
- toBinary() - Method in interface com.tenio.common.data.DataCollection
-
Serializes an object to its corresponding array of
bytes
. - toBinary() - Method in class com.tenio.common.data.msgpack.element.MsgPackMap
- toBinary() - Method in class com.tenio.common.data.zero.implement.ZeroArrayImpl
- toBinary() - Method in class com.tenio.common.data.zero.implement.ZeroMapImpl
- toString() - Method in class com.tenio.common.configuration.CommonConfiguration
- toString() - Method in interface com.tenio.common.configuration.Configuration
-
Retrieves readable text.
- toString() - Method in enum class com.tenio.common.data.DataType
- toString() - Method in class com.tenio.common.data.zero.implement.ZeroArrayImpl
- toString() - Method in record class com.tenio.common.data.zero.implement.ZeroElementImpl
-
Returns a string representation of this record class.
- toString() - Method in class com.tenio.common.data.zero.implement.ZeroMapImpl
- toString() - Method in enum class com.tenio.common.data.zero.ZeroType
- toString() - Method in enum class com.tenio.common.utility.OsUtility.OsType
- trace(String, Object...) - Method in class com.tenio.common.logger.SystemLogger
-
Only use for debugging EVENTS in the server system.
- trace(String, Object, String, String) - Method in class com.tenio.common.logger.SystemLogger
-
Only use for debugging PACKAGE in the server system.
- trimStringByString(String, String) - Static method in class com.tenio.common.utility.StringUtility
-
*
- TWO_PI - Static variable in class com.tenio.common.utility.MathUtility
-
The double value of Pi number.
- type() - Method in record class com.tenio.common.data.zero.implement.ZeroElementImpl
-
Returns the value of the
type
record component.
V
- valueOf(byte[]) - Static method in class com.tenio.common.data.msgpack.ByteArrayInputStream
- valueOf(byte[], int, int) - Static method in class com.tenio.common.data.msgpack.ByteArrayInputStream
- valueOf(String) - Static method in enum class com.tenio.common.data.DataType
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.tenio.common.data.zero.ZeroType
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.tenio.common.utility.OsUtility.OsType
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class com.tenio.common.data.DataType
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.tenio.common.data.zero.ZeroType
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.tenio.common.utility.OsUtility.OsType
-
Returns an array containing the constants of this enum class, in the order they are declared.
W
- waitUntilAllTasksFinished() - Method in class com.tenio.common.worker.WorkerPool
-
Waits until all tasks are finished.
- WINDOWS - Enum constant in enum class com.tenio.common.utility.OsUtility.OsType
-
Windows OS.
- WorkerPool - Class in com.tenio.common.worker
-
This class helps you create a worker pool.
- WorkerPool(String, int, int) - Constructor for class com.tenio.common.worker.WorkerPool
-
Creates a new worker pool.
- WorkerPoolRunnable - Class in com.tenio.common.worker
-
Worker Poll management class.
- WorkerPoolRunnable(String, int, BlockingQueue<Runnable>) - Constructor for class com.tenio.common.worker.WorkerPoolRunnable
-
Creates a worker pool management.
X
- XmlUtility - Class in com.tenio.common.utility
-
This class helps you parse an XML file and convert its content to nodes.
Z
- ZERO - Enum constant in enum class com.tenio.common.data.DataType
-
Uses the internal Zero serialization mechanism.
- ZERO_ARRAY - Enum constant in enum class com.tenio.common.data.zero.ZeroType
-
ZeroArray
Value. - ZERO_MAP - Enum constant in enum class com.tenio.common.data.zero.ZeroType
-
ZeroMap
Value. - ZeroArray - Interface in com.tenio.common.data.zero
-
This class holds sequence elements.
- ZeroArrayImpl - Class in com.tenio.common.data.zero.implement
-
An implementation for the zero array.
- ZeroArrayImpl() - Constructor for class com.tenio.common.data.zero.implement.ZeroArrayImpl
-
Creates a new instance.
- ZeroElement - Interface in com.tenio.common.data.zero
-
An element object contains a pair of type and data value.
- ZeroElementImpl - Record Class in com.tenio.common.data.zero.implement
-
This class holds a relationship between a self-definition data type and its value.
- ZeroElementImpl(ZeroType, Object) - Constructor for record class com.tenio.common.data.zero.implement.ZeroElementImpl
-
Creates an instance of a
ZeroElementImpl
record class. - ZeroMap - Interface in com.tenio.common.data.zero
-
This class holds data by pairs of key and value, works like a map.
- ZeroMapImpl - Class in com.tenio.common.data.zero.implement
-
An implementation for the zero object.
- ZeroMapImpl() - Constructor for class com.tenio.common.data.zero.implement.ZeroMapImpl
-
Creates a new instance.
- ZeroType - Enum Class in com.tenio.common.data.zero
-
Self-definition data types.
- ZeroUtility - Class in com.tenio.common.data.zero.utility
-
This class provides all necessary methods to work with the self-definition data elements.
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form