Class 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:

    
     Parameters.Defaults.AUTOSTART = false;
     
    A value explicitly configured on a builder overrides the corresponding global default.
    • Field Detail

      • AUTORECONNECT

        public static boolean AUTORECONNECT
        The default setting for automatically reconnecting a client after its connection is lost. The default is false.
      • AUTOSTART

        public static boolean AUTOSTART
        The default setting for automatically starting communication entities. The default is true.
      • BACKLOG

        public static int BACKLOG
        The default maximum number of pending connections that may be queued by a server. The default is 64.
      • 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 is false.
      • 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 is true.
      • ENCRYPTION_KEY

        public static com.kristensoft.ko.EncryptionKey ENCRYPTION_KEY
        The default encryption key used to encrypt serialized agent data. The default is null, 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 is null, 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 is 10, using DEFAULT_TIME_UNIT as 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 is TimeUnit.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 is 500 worker threads.
      • DEFAULT_LATENCY_MODE

        public static boolean DEFAULT_LATENCY_MODE
        The default setting for collecting latency metrics. The default is true.
      • 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 is KristenObjectsSerializer.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.