public class PropertiesReader
extends java.lang.Object
Properties
file. For further information on
the options set, please look at the supplied setup.properties.Modifier and Type | Method and Description |
---|---|
static int |
getBacklog()
Returns the size of the backlog (socket number) of a
ServerSocketChannel . |
static java.lang.String[] |
getCipherSuites()
Get the enabled cipher suites to be used with a
SSLEngine . |
static int |
getIPTos()
Returns the IP_TOS to be set for each socket.
|
static boolean |
getKeepAlive()
Returns the SO_KEEPALIVE size (bytes) to be set for each socket.
|
static int |
getMaxChanges()
If the selector thread should process all
ChangeRequest s at each iteration, this
method returns the maximum changes to be processed at each iteration. |
static int |
getPacketBufSize()
Returns the default size (bytes) of the
AbstractPacketWorker . |
static java.lang.String[] |
getProtocols()
Get the enabled protocols to be used with a
SSLEngine . |
static boolean |
getReuseAddress()
Returns the SO_REUSEADDR size (bytes) to be set for each socket.
|
static boolean |
getSelectorProcessAll()
Return whether the selector thread should process all
ChangeRequest s at each iteration. |
static boolean |
getSelectorSingleThreaded()
Return whether the selector should handle
SSLEngine
tasks in the same thread. |
static long |
getSelectorTimeoutMS()
If the selector thread should process all
ChangeRequest s at each iteration, this
method returns the maximum time (MS) the selector should wait on a
select() before returning to process the remaining changes. |
static int |
getSoRcvBuf()
Returns the SO_RCVBUF size (bytes) to be set for each socket.
|
static int |
getSoSndBuf()
Returns the SO_SNDBUF size (bytes) to be set for each socket.
|
static boolean |
getTCPNoDelay()
Returns the TCP_NODELAY size (bytes) to be set for each socket.
|
static long |
getTimeoutMS()
Returns the timeout period (MS) for a
SecureSocket to wait on an
empty buffer during handshaking. |
public static boolean getSelectorSingleThreaded()
SSLEngine
tasks in the same thread. If not, a
TaskWorker
is initialized and
used for that purpose.SSLEngine
tasks in the same thread.TaskWorker
public static boolean getSelectorProcessAll()
ChangeRequest
s at each iteration. If not,
the values from getMaxChanges()
and
getSelectorTimeoutMS()
are used.ChangeRequest
sgetMaxChanges()
,
getSelectorTimeoutMS()
,
AbstractSelector.processChanges()
public static int getMaxChanges()
ChangeRequest
s at each iteration, this
method returns the maximum changes to be processed at each iteration.ChangeRequest
s
processed at each iterationgetMaxChanges()
,
getSelectorTimeoutMS()
,
AbstractSelector.processChanges()
public static long getSelectorTimeoutMS()
ChangeRequest
s at each iteration, this
method returns the maximum time (MS) the selector should wait on a
select() before returning to process the remaining changes.getMaxChanges()
,
getSelectorTimeoutMS()
,
AbstractSelector.processChanges()
public static long getTimeoutMS()
SecureSocket
to wait on an
empty buffer during handshaking.SecureSocket
to wait on an
empty buffer during handshaking.public static int getBacklog()
ServerSocketChannel
.ServerSocketChannel
.public static int getPacketBufSize()
AbstractPacketWorker
. Note
that the size can grow if the data received overflows on a particular
socket.AbstractPacketWorker
.AbstractPacketWorker.addData(ch.dermitza.securenio.socket.SocketIF,
java.nio.ByteBuffer, int)
public static int getSoSndBuf()
StandardSocketOptions.SO_SNDBUF
public static int getSoRcvBuf()
StandardSocketOptions.SO_RCVBUF
public static int getIPTos()
StandardSocketOptions.IP_TOS
public static java.lang.String[] getProtocols()
SSLEngine
.SSLEngine
.public static java.lang.String[] getCipherSuites()
SSLEngine
.SSLEngine
.public static boolean getTCPNoDelay()
StandardSocketOptions.TCP_NODELAY
public static boolean getKeepAlive()
StandardSocketOptions.SO_KEEPALIVE
public static boolean getReuseAddress()
StandardSocketOptions.SO_REUSEADDR