|
XNIO API 3.1.0.Beta1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xnio.Options
public final class Options
Common channel options.
Field Summary | |
---|---|
static Option<Boolean> |
ALLOW_BLOCKING
Enable or disable blocking I/O for a newly created channel thread. |
static Option<Integer> |
BACKLOG
Configure a server with the specified backlog. |
static Option<Boolean> |
BROADCAST
Enable broadcast support for IP datagram sockets. |
static Option<Boolean> |
CLOSE_ABORT
Configure a TCP socket to send an RST packet on close. |
static Option<Integer> |
CONNECTION_HIGH_WATER
The high water mark for a server's connections. |
static Option<Integer> |
CONNECTION_LOW_WATER
The low water mark for a server's connections. |
static Option<Boolean> |
CORK
Specify that output should be buffered. |
static Option<FileAccess> |
FILE_ACCESS
The file access mode to use when opening a file. |
static Option<Integer> |
IP_TRAFFIC_CLASS
Set the IP traffic class/type-of-service for the channel. |
static Option<Boolean> |
KEEP_ALIVE
Configure a channel to send a periodic heartbeat of some sort. |
static Option<Integer> |
MAX_INBOUND_MESSAGE_SIZE
The maximum inbound message size. |
static Option<Integer> |
MAX_OUTBOUND_MESSAGE_SIZE
The maximum outbound message size. |
static Option<Boolean> |
MULTICAST
Enable multicast support for a socket. |
static Option<Integer> |
MULTICAST_TTL
Set the multicast time-to-live field for datagram sockets. |
static Option<Integer> |
READ_TIMEOUT
Configure a read timeout for a socket, in milliseconds. |
static Option<Integer> |
RECEIVE_BUFFER
The receive buffer size. |
static Option<Boolean> |
REUSE_ADDRESSES
Configure an IP socket to reuse addresses. |
static Option<Sequence<String>> |
SASL_DISALLOWED_MECHANISMS
A list of disallowed SASL mechanisms. |
static Option<Sequence<String>> |
SASL_MECHANISMS
A list of SASL mechanisms, in decreasing order of preference. |
static Option<Boolean> |
SASL_POLICY_FORWARD_SECRECY
Specify whether SASL mechanisms which implement forward secrecy between sessions are required. |
static Option<Boolean> |
SASL_POLICY_NOACTIVE
Specify whether SASL mechanisms which are susceptible to active (non-dictionary) attacks are permitted. |
static Option<Boolean> |
SASL_POLICY_NOANONYMOUS
Specify whether SASL mechanisms which accept anonymous logins are permitted. |
static Option<Boolean> |
SASL_POLICY_NODICTIONARY
Specify whether SASL mechanisms which are susceptible to passive dictionary attacks are permitted. |
static Option<Boolean> |
SASL_POLICY_NOPLAINTEXT
Specify whether SASL mechanisms which are susceptible to simple plain passive attacks are permitted. |
static Option<Boolean> |
SASL_POLICY_PASS_CREDENTIALS
Specify whether SASL mechanisms which pass client credentials are required. |
static Option<Sequence<Property>> |
SASL_PROPERTIES
A list of provider specific SASL properties. |
static Option<Sequence<SaslQop>> |
SASL_QOP
Specify the SASL quality-of-protection to use. |
static Option<Boolean> |
SASL_REUSE
Specify whether SASL mechanisms should attempt to reuse authenticated session information. |
static Option<Boolean> |
SASL_SERVER_AUTH
Specify whether the SASL server must authenticate to the client. |
static Option<SaslStrength> |
SASL_STRENGTH
Specify the SASL cipher strength to use. |
static Option<Boolean> |
SECURE
Determine whether the channel is encrypted, or employs some other level of security. |
static Option<Integer> |
SEND_BUFFER
The send buffer size. |
static Option<Integer> |
SSL_APPLICATION_BUFFER_REGION_SIZE
The size of the allocation region to use for SSL application buffers. |
static Option<Integer> |
SSL_APPLICATION_BUFFER_SIZE
The application buffer size for SSL. |
static Option<SslClientAuthMode> |
SSL_CLIENT_AUTH_MODE
Specify the SSL client authentication mode. |
static Option<Integer> |
SSL_CLIENT_SESSION_CACHE_SIZE
The size of the SSL client session cache. |
static Option<Integer> |
SSL_CLIENT_SESSION_TIMEOUT
The SSL client session timeout (in seconds). |
static Option<Boolean> |
SSL_ENABLE_SESSION_CREATION
Enable or disable session creation for an SSL connection. |
static Option<Boolean> |
SSL_ENABLED
Specify whether SSL should be enabled. |
static Option<Sequence<String>> |
SSL_ENABLED_CIPHER_SUITES
Specify the cipher suites for an SSL/TLS session. |
static Option<Sequence<String>> |
SSL_ENABLED_PROTOCOLS
Specify the enabled protocols for an SSL/TLS session. |
static Option<Sequence<Class<? extends KeyManager>>> |
SSL_JSSE_KEY_MANAGER_CLASSES
The possible key manager classes to use for a JSSE SSL context. |
static Option<Sequence<Class<? extends TrustManager>>> |
SSL_JSSE_TRUST_MANAGER_CLASSES
The possible trust store classes to use for a JSSE SSL context. |
static Option<Integer> |
SSL_PACKET_BUFFER_REGION_SIZE
The size of the allocation region to use for SSL packet buffers. |
static Option<Integer> |
SSL_PACKET_BUFFER_SIZE
The packet buffer size for SSL. |
static Option<String> |
SSL_PEER_HOST_NAME
Specify the (non-authoritative) name of the peer host to use for the purposes of session reuse, as well as for the use of certain cipher suites (such as Kerberos). |
static Option<Integer> |
SSL_PEER_PORT
Specify the (non-authoritative) port number of the peer port number to use for the purposes of session reuse, as well as for the use of certain cipher suites. |
static Option<String> |
SSL_PROTOCOL
Specify the protocol name for an SSL context. |
static Option<String> |
SSL_PROVIDER
Specify the requested provider for an SSL/TLS session. |
static Option<OptionMap> |
SSL_RNG_OPTIONS
The configuration of a secure RNG for SSL usage. |
static Option<Integer> |
SSL_SERVER_SESSION_CACHE_SIZE
The size of the SSL server session cache. |
static Option<Integer> |
SSL_SERVER_SESSION_TIMEOUT
The SSL server session timeout (in seconds). |
static Option<Boolean> |
SSL_STARTTLS
Specify whether to use STARTTLS mode (in which a connection starts clear and switches to TLS on demand). |
static Option<Sequence<String>> |
SSL_SUPPORTED_CIPHER_SUITES
Get the supported cipher suites for an SSL/TLS session. |
static Option<Sequence<String>> |
SSL_SUPPORTED_PROTOCOLS
Get the supported protocols for an SSL/TLS session. |
static Option<Boolean> |
SSL_USE_CLIENT_MODE
Specify whether SSL conversations should be in client or server mode. |
static Option<Long> |
STACK_SIZE
The stack size (in bytes) to attempt to use for worker threads. |
static Option<Boolean> |
TCP_NODELAY
Configure a TCP socket to disable Nagle's algorithm. |
static Option<Boolean> |
TCP_OOB_INLINE
Configure a TCP socket to receive out-of-band data alongside regular data. |
static Option<Boolean> |
THREAD_DAEMON
Specify whether worker threads should be daemon threads. |
static Option<Integer> |
THREAD_PRIORITY
The thread priority for newly created worker threads. |
static Option<Boolean> |
USE_DIRECT_BUFFERS
Specify whether direct buffers should be used for socket communications. |
static Option<Integer> |
WORKER_ACCEPT_THREADS
Specify the number of accept threads a single socket server should have. |
static Option<Boolean> |
WORKER_ESTABLISH_WRITING
Specify whether a server, acceptor, or connector should be attached to write threads. |
static Option<String> |
WORKER_NAME
The name to use for a newly created worker. |
static Option<Integer> |
WORKER_READ_THREADS
Specify the number of read threads to create for the worker. |
static Option<Integer> |
WORKER_TASK_CORE_THREADS
Specify the number of "core" threads for the worker task thread pool. |
static Option<Integer> |
WORKER_TASK_KEEPALIVE
Specify the number of milliseconds to keep non-core task threads alive. |
static Option<Integer> |
WORKER_TASK_LIMIT
Specify the maximum number of worker tasks to allow before rejecting. |
static Option<Integer> |
WORKER_TASK_MAX_THREADS
Specify the maximum number of threads for the worker task thread pool. |
static Option<Integer> |
WORKER_WRITE_THREADS
Specify the number of write threads to create for the worker. |
static Option<Integer> |
WRITE_TIMEOUT
Configure a write timeout for a socket, in milliseconds. |
Method Summary |
---|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final Option<Boolean> ALLOW_BLOCKING
public static final Option<Boolean> MULTICAST
boolean
. Note that some
implementations may add overhead when multicast sockets are in use.
public static final Option<Boolean> BROADCAST
boolean
. If you
intend to send datagrams to a broadcast address, this option must be enabled.
public static final Option<Boolean> CLOSE_ABORT
RST
packet on close. The value type for this option is boolean
.
public static final Option<Integer> RECEIVE_BUFFER
int
. This may be used by an XNIO provider
directly, or it may be passed to the underlying operating system, depending on the channel type.
public static final Option<Boolean> REUSE_ADDRESSES
boolean
.
public static final Option<Integer> SEND_BUFFER
int
. This may be used by an XNIO provider
directly, or it may be passed to the underlying operating system, depending on the channel type.
public static final Option<Boolean> TCP_NODELAY
boolean
.
public static final Option<Integer> MULTICAST_TTL
int
.
public static final Option<Integer> IP_TRAFFIC_CLASS
int
.
public static final Option<Boolean> TCP_OOB_INLINE
boolean
.
public static final Option<Boolean> KEEP_ALIVE
boolean
.
public static final Option<Integer> BACKLOG
int
.
public static final Option<Integer> READ_TIMEOUT
ReadTimeoutException
.
public static final Option<Integer> WRITE_TIMEOUT
WriteTimeoutException
.
public static final Option<Integer> MAX_INBOUND_MESSAGE_SIZE
public static final Option<Integer> MAX_OUTBOUND_MESSAGE_SIZE
public static final Option<Boolean> SSL_ENABLED
SSL_STARTTLS
then SSL will not
be negotiated until SslChannel.startHandshake()
is called.
public static final Option<SslClientAuthMode> SSL_CLIENT_AUTH_MODE
public static final Option<Sequence<String>> SSL_ENABLED_CIPHER_SUITES
public static final Option<Sequence<String>> SSL_SUPPORTED_CIPHER_SUITES
public static final Option<Sequence<String>> SSL_ENABLED_PROTOCOLS
public static final Option<Sequence<String>> SSL_SUPPORTED_PROTOCOLS
public static final Option<String> SSL_PROVIDER
public static final Option<String> SSL_PROTOCOL
public static final Option<Boolean> SSL_ENABLE_SESSION_CREATION
true
to enable session creation.
public static final Option<Boolean> SSL_USE_CLIENT_MODE
false
(use server mode). If
set to true
, the client and server side swap negotiation roles.
public static final Option<Integer> SSL_CLIENT_SESSION_CACHE_SIZE
public static final Option<Integer> SSL_CLIENT_SESSION_TIMEOUT
public static final Option<Integer> SSL_SERVER_SESSION_CACHE_SIZE
public static final Option<Integer> SSL_SERVER_SESSION_TIMEOUT
public static final Option<Sequence<Class<? extends KeyManager>>> SSL_JSSE_KEY_MANAGER_CLASSES
public static final Option<Sequence<Class<? extends TrustManager>>> SSL_JSSE_TRUST_MANAGER_CLASSES
public static final Option<OptionMap> SSL_RNG_OPTIONS
public static final Option<Integer> SSL_PACKET_BUFFER_SIZE
public static final Option<Integer> SSL_APPLICATION_BUFFER_SIZE
public static final Option<Integer> SSL_PACKET_BUFFER_REGION_SIZE
public static final Option<Integer> SSL_APPLICATION_BUFFER_REGION_SIZE
public static final Option<Boolean> SSL_STARTTLS
public static final Option<String> SSL_PEER_HOST_NAME
public static final Option<Integer> SSL_PEER_PORT
public static final Option<Boolean> USE_DIRECT_BUFFERS
public static final Option<Boolean> SECURE
public static final Option<Boolean> SASL_POLICY_FORWARD_SECRECY
Sasl.POLICY_FORWARD_SECRECY
public static final Option<Boolean> SASL_POLICY_NOACTIVE
Sasl.POLICY_NOACTIVE
public static final Option<Boolean> SASL_POLICY_NOANONYMOUS
Sasl.POLICY_NOANONYMOUS
public static final Option<Boolean> SASL_POLICY_NODICTIONARY
Sasl.POLICY_NODICTIONARY
public static final Option<Boolean> SASL_POLICY_NOPLAINTEXT
Sasl.POLICY_NOPLAINTEXT
public static final Option<Boolean> SASL_POLICY_PASS_CREDENTIALS
Sasl.POLICY_PASS_CREDENTIALS
public static final Option<Sequence<SaslQop>> SASL_QOP
Sasl.QOP
public static final Option<SaslStrength> SASL_STRENGTH
Sasl.STRENGTH
public static final Option<Boolean> SASL_SERVER_AUTH
Sasl.SERVER_AUTH
public static final Option<Boolean> SASL_REUSE
Sasl.REUSE
public static final Option<Sequence<String>> SASL_MECHANISMS
public static final Option<Sequence<String>> SASL_DISALLOWED_MECHANISMS
public static final Option<Sequence<Property>> SASL_PROPERTIES
public static final Option<FileAccess> FILE_ACCESS
public static final Option<Long> STACK_SIZE
public static final Option<String> WORKER_NAME
public static final Option<Integer> THREAD_PRIORITY
public static final Option<Boolean> THREAD_DAEMON
false
.
public static final Option<Integer> WORKER_READ_THREADS
public static final Option<Integer> WORKER_WRITE_THREADS
public static final Option<Boolean> WORKER_ESTABLISH_WRITING
public static final Option<Integer> WORKER_ACCEPT_THREADS
public static final Option<Integer> WORKER_TASK_CORE_THREADS
public static final Option<Integer> WORKER_TASK_MAX_THREADS
public static final Option<Integer> WORKER_TASK_KEEPALIVE
public static final Option<Integer> WORKER_TASK_LIMIT
public static final Option<Boolean> CORK
SuspendableWriteChannel.flush()
will still cause
the channel to flush its contents immediately.
public static final Option<Integer> CONNECTION_HIGH_WATER
public static final Option<Integer> CONNECTION_LOW_WATER
|
XNIO API 3.1.0.Beta1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |