Package | Description |
---|---|
org.snf4j.core.session |
Provides classes and interfaces used for session handling.
|
org.snf4j.example.dtls |
A DTLS client/server example.
|
org.snf4j.example.file |
A zero-copy file transfer client/server example.
|
org.snf4j.websocket |
Provides main interfaces and classes implementing the functionalities of the
Web Socket protocol.
|
Modifier and Type | Class and Description |
---|---|
class |
DefaultSctpSessionConfig
Default configuration for the SCTP session.
|
Modifier and Type | Method and Description |
---|---|
DefaultSessionConfig |
DefaultSessionConfig.addSSLEngineBuilder(SSLEngineBuilder builder)
Adds a SSLEngine builder that will be used to create the SSLengine for
sessions associated with this configuration object.
|
DefaultSessionConfig |
DefaultSessionConfig.removeSSLEngineBuilder(boolean clientMode)
Removes the SSLEngine builder configured for specified handshaking mode.
|
DefaultSessionConfig |
DefaultSessionConfig.setAlwaysNotifiedBeingInPipeline(boolean notify)
Configures if the session being associated with the session pipeline should
be notified in a situation when the connection is closed and the processing
of the session was not initiated yet.
|
DefaultSessionConfig |
DefaultSessionConfig.setDatagramServerSessionNoReopenPeriod(long period)
Configures how long the
DatagramServerHandler should block re-opening of a new session for the
remote peer which session has just been closed. |
DefaultSessionConfig |
DefaultSessionConfig.setEndingAction(EndingAction action)
Sets an action that should be performed by the selector loop after ending of
the associated session.
|
DefaultSessionConfig |
DefaultSessionConfig.setEngineHandshakeTimeout(long timeout)
Configures how long the SNF4J framework should wait for completion of the
handshake phase for engine-driven sessions.
|
DefaultSessionConfig |
DefaultSessionConfig.setIgnorePossiblyIncompleteDatagrams(boolean ignore)
Configures the behavior after receiving possibly incomplete datagrams.
|
DefaultSessionConfig |
DefaultSessionConfig.setMaxInBufferCapacity(int capacity)
Sets the maximum capacity for the session's input buffer.
|
DefaultSessionConfig |
DefaultSessionConfig.setMaxSSLApplicationBufferSizeRatio(int ratio)
Sets the ratio that is used to calculate the maximum size of the SSL
application buffers.
|
DefaultSessionConfig |
DefaultSessionConfig.setMaxSSLNetworkBufferSizeRatio(int ratio)
Sets the ratio that is used to calculate the maximum size of the SSL
network buffers.
|
DefaultSessionConfig |
DefaultSessionConfig.setMaxWriteSpinCount(int count)
Configures the maximum loop count for write operations performed by the
selector loop before returning control to the NIO selector or to other channel ready
for I/O operations.
|
DefaultSessionConfig |
DefaultSessionConfig.setMinInBufferCapacity(int capacity)
Sets the minimum capacity for the session's input buffer.
|
DefaultSessionConfig |
DefaultSessionConfig.setMinOutBufferCapacity(int capacity)
Sets the minimum capacity for the session's output buffer.
|
DefaultSessionConfig |
DefaultSessionConfig.setOptimizeDataCopying(boolean optimize)
Configures if the processing of data should be optimized to reduce data
copying between byte buffers.
|
DefaultSessionConfig |
DefaultSessionConfig.setThroughputCalculationInterval(long interval)
Sets the interval in milliseconds between each throughput calculation.
|
DefaultSessionConfig |
DefaultSessionConfig.setWaitForInboundCloseMessage(boolean waitForCloseMessage)
Configures if the SNF4J framework should wait for the peer's
corresponding close message in situation when the closing was initiated
by calling the
EngineStreamSession.close() or
EngineStreamSession.quickClose() method. |
Modifier and Type | Class and Description |
---|---|
class |
SessionConfig |
Modifier and Type | Field and Description |
---|---|
protected DefaultSessionConfig |
AbstractFileHandler.config |
Modifier and Type | Class and Description |
---|---|
class |
DefaultWebSocketSessionConfig
Default configuration for the Web Socket session.
|
Copyright © 2017–2022 SNF4J.ORG. All rights reserved.