Package com.kristensoft.kdc
Class Parameters.Defaults
- java.lang.Object
-
- com.kristensoft.kdc.Parameters.Defaults
-
- Enclosing class:
- Parameters
public static class Parameters.Defaults extends Object
Holds global default values used by KDC parameter builders. Applications may modify these values to change the default configuration used when new parameter builders are created.For example, to disable automatic startup by default:
A value explicitly configured on a builder overrides the corresponding global default.Parameters.Defaults.AUTOSTART = false;
-
-
Field Summary
Fields Modifier and Type Field Description static booleanAUTORECONNECTThe default setting for automatically reconnecting a client after its connection is lost.static booleanAUTOSTARTThe default setting for automatically starting communication entities.static intBACKLOGThe default maximum number of pending connections that may be queued by a server.static InetSocketAddressBIND_ADDRESSThe default local address to which a communication entity binds.static booleanCOMPRESSEDThe default setting for compressing serialized agent data.static intCONNECTION_TIMEOUTThe default amount of time a TCP client waits for a connection to be established before timing out.static booleanCRCThe default setting for including a CRC integrity check with serialized agent data.static intDEFAULT_CONNECTION_QUEUE_POOL_SIZEThe default number of worker threads in the connection queue thread pool.static intDEFAULT_CORE_POOL_SIZEThe default core thread pool size used by KDC HTTP servers.static longDEFAULT_KEEP_ALIVE_TIMEThe default keep-alive time for idle threads in the KDC HTTP server thread pool.static booleanDEFAULT_LATENCY_MODEThe default setting for collecting latency metrics.static longDEFAULT_LATENCY_REPORTING_INTERVALThe default interval at which latency metrics are reported.static intDEFAULT_MAXIMUM_POOL_SIZEThe default maximum thread pool size used by KDC HTTP servers.static com.kristensoft.ko.KristenObjectsSerializer.SerializationFormatDEFAULT_SERIALIZATION_MODEThe default serialization format used to serialize agent data.static TimeUnitDEFAULT_TIME_UNITThe default unit of time used for the KDC HTTP server thread pool keep-alive time.static StringDEFAULT_URI_STRINGThe default URI path used by KDC HTTP clients and servers.static com.kristensoft.ko.EncryptionKeyENCRYPTION_KEYThe default encryption key used to encrypt serialized agent data.static intMAX_RECEIVE_BUFFER_SIZEThe default maximum size of the receive buffer, in bytes.static intMAX_SEND_BUFFER_SIZEThe default maximum size of the send buffer, in bytes.static intRECONNECT_DELAYThe default amount of time a TCP client waits between reconnection attempts.static InetSocketAddressREMOTE_ADDRESSThe default remote address used by clients.static longSEND_SYNC_REPLY_WAIT_TIMEThe default amount of time a synchronous send waits for a reply before timing out.
-
-
-
Field Detail
-
AUTORECONNECT
public static boolean AUTORECONNECT
The default setting for automatically reconnecting a client after its connection is lost. The default isfalse.
-
AUTOSTART
public static boolean AUTOSTART
The default setting for automatically starting communication entities. The default istrue.
-
BACKLOG
public static int BACKLOG
The default maximum number of pending connections that may be queued by a server. The default is64.
-
BIND_ADDRESS
public static InetSocketAddress BIND_ADDRESS
The default local address to which a communication entity binds. The default is the local loopback address using an automatically assigned port.
-
COMPRESSED
public static boolean COMPRESSED
The default setting for compressing serialized agent data. The default isfalse.
-
CONNECTION_TIMEOUT
public static int CONNECTION_TIMEOUT
The default amount of time a TCP client waits for a connection to be established before timing out. The default is 5,000 milliseconds.
-
CRC
public static boolean CRC
The default setting for including a CRC integrity check with serialized agent data. The default istrue.
-
ENCRYPTION_KEY
public static com.kristensoft.ko.EncryptionKey ENCRYPTION_KEY
The default encryption key used to encrypt serialized agent data. The default isnull, indicating that encryption is disabled.
-
MAX_RECEIVE_BUFFER_SIZE
public static int MAX_RECEIVE_BUFFER_SIZE
The default maximum size of the receive buffer, in bytes. The default is 65,536 bytes.
-
MAX_SEND_BUFFER_SIZE
public static int MAX_SEND_BUFFER_SIZE
The default maximum size of the send buffer, in bytes. The default is 65,536 bytes.
-
RECONNECT_DELAY
public static int RECONNECT_DELAY
The default amount of time a TCP client waits between reconnection attempts. The default is 5,000 milliseconds.
-
REMOTE_ADDRESS
public static InetSocketAddress REMOTE_ADDRESS
The default remote address used by clients. The default isnull, indicating that no remote address has been specified.
-
DEFAULT_URI_STRING
public static String DEFAULT_URI_STRING
The default URI path used by KDC HTTP clients and servers. The default is"/kristen".
-
DEFAULT_CORE_POOL_SIZE
public static int DEFAULT_CORE_POOL_SIZE
The default core thread pool size used by KDC HTTP servers. The default is the number of processors available to the Java runtime.
-
DEFAULT_MAXIMUM_POOL_SIZE
public static int DEFAULT_MAXIMUM_POOL_SIZE
The default maximum thread pool size used by KDC HTTP servers. The default is four times the number of processors available to the Java runtime.
-
DEFAULT_KEEP_ALIVE_TIME
public static long DEFAULT_KEEP_ALIVE_TIME
The default keep-alive time for idle threads in the KDC HTTP server thread pool. The default is10, usingDEFAULT_TIME_UNITas the unit of time.
-
DEFAULT_TIME_UNIT
public static TimeUnit DEFAULT_TIME_UNIT
The default unit of time used for the KDC HTTP server thread pool keep-alive time. The default isTimeUnit.SECONDS.
-
SEND_SYNC_REPLY_WAIT_TIME
public static long SEND_SYNC_REPLY_WAIT_TIME
The default amount of time a synchronous send waits for a reply before timing out. The default is 5,000 milliseconds.
-
DEFAULT_CONNECTION_QUEUE_POOL_SIZE
public static int DEFAULT_CONNECTION_QUEUE_POOL_SIZE
The default number of worker threads in the connection queue thread pool. This is separate from the server backlog, which controls the number of pending connections waiting to be accepted. The default is500worker threads.
-
DEFAULT_LATENCY_MODE
public static boolean DEFAULT_LATENCY_MODE
The default setting for collecting latency metrics. The default istrue.
-
DEFAULT_LATENCY_REPORTING_INTERVAL
public static long DEFAULT_LATENCY_REPORTING_INTERVAL
The default interval at which latency metrics are reported. The default is 10,000 milliseconds.
-
DEFAULT_SERIALIZATION_MODE
public static com.kristensoft.ko.KristenObjectsSerializer.SerializationFormat DEFAULT_SERIALIZATION_MODE
The default serialization format used to serialize agent data. The default isKristenObjectsSerializer.SerializationFormat.JSON. Available serialization formats are:KristenObjectsSerializer.SerializationFormat.JSON- JSON serialization.KristenObjectsSerializer.SerializationFormat.PROTOBUF- Protocol Buffers serialization.KristenObjectsSerializer.SerializationFormat.POJO- internal binary POJO serialization.KristenObjectsSerializer.SerializationFormat.SAFE_JAVA_SERIALIZATION- restricted Java object serialization.KristenObjectsSerializer.SerializationFormat.KRISTEN_OBJECT- Kristen Objects binary serialization.
-
-