public class SessionConfig extends DefaultSctpSessionConfig
DEFAULT_CODEC_EXECUTOR_IDENTIFIER
Constructor and Description |
---|
SessionConfig() |
Modifier and Type | Method and Description |
---|---|
ICodecExecutor |
createCodecExecutor()
Creates a new codec executor that will be responsible for decoding and
encoding data read/received and written/send in the associated session.
|
ICodecExecutor |
createCodecExecutor(Object identifier)
Creates a new codec executor that should be used for decoding/encoding SCTP
messages that can be identified by the given identifier.
|
Object |
getCodecExecutorIdentifier(com.sun.nio.sctp.MessageInfo msgInfo)
Returns an identifier of the codec executor that should be used for
decoding/encoding SCTP messages that can be identified by the given ancillary
data.
|
getDefaultSctpPayloadProtocolID, getDefaultSctpPeerAddress, getDefaultSctpStreamNumber, getDefaultSctpUnorderedFlag, setDefaultSctpPayloadProtocolID, setDefaultSctpPeerAddress, setDefaultSctpStreamNumber, setDefaultSctpUnorderedFlag
addSSLEngineBuilder, alwaysNotifiedBeingInPipeline, createSSLEngine, createSSLEngine, getDatagramServerSessionNoReopenPeriod, getEndingAction, getEngineHandshakeTimeout, getMaxInBufferCapacity, getMaxSSLApplicationBufferSizeRatio, getMaxSSLNetworkBufferSizeRatio, getMaxWriteSpinCount, getMinInBufferCapacity, getMinOutBufferCapacity, getSSLEngineBuilder, getThroughputCalculationInterval, ignorePossiblyIncompleteDatagrams, optimizeDataCopying, removeSSLEngineBuilder, setAlwaysNotifiedBeingInPipeline, setDatagramServerSessionNoReopenPeriod, setEndingAction, setEngineHandshakeTimeout, setIgnorePossiblyIncompleteDatagrams, setMaxInBufferCapacity, setMaxSSLApplicationBufferSizeRatio, setMaxSSLNetworkBufferSizeRatio, setMaxWriteSpinCount, setMinInBufferCapacity, setMinOutBufferCapacity, setOptimizeDataCopying, setThroughputCalculationInterval, setWaitForInboundCloseMessage, waitForInboundCloseMessage
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
alwaysNotifiedBeingInPipeline, createSSLEngine, createSSLEngine, getDatagramServerSessionNoReopenPeriod, getEndingAction, getEngineHandshakeTimeout, getMaxInBufferCapacity, getMaxSSLApplicationBufferSizeRatio, getMaxSSLNetworkBufferSizeRatio, getMaxWriteSpinCount, getMinInBufferCapacity, getMinOutBufferCapacity, getThroughputCalculationInterval, ignorePossiblyIncompleteDatagrams, optimizeDataCopying, waitForInboundCloseMessage
public Object getCodecExecutorIdentifier(com.sun.nio.sctp.MessageInfo msgInfo)
DefaultSctpSessionConfig
ISessionConfig.createCodecExecutor()
) should be used this method should return
the ISctpSessionConfig.DEFAULT_CODEC_EXECUTOR_IDENTIFIER
value.
If the codec executor identified by the ancillary data has not been created
yet it will be created by ISctpSessionConfig.createCodecExecutor(Object)
and the
returned identifier will be used as the argument.
The default value is ISctpSessionConfig.DEFAULT_CODEC_EXECUTOR_IDENTIFIER
getCodecExecutorIdentifier
in interface ISctpSessionConfig
getCodecExecutorIdentifier
in class DefaultSctpSessionConfig
msgInfo
- the ancillary data about an SCTP message to be decoded/encodednull
if
decoding and encoding are not required.public ICodecExecutor createCodecExecutor()
DefaultSessionConfig
The default value is null
createCodecExecutor
in interface ISessionConfig
createCodecExecutor
in class DefaultSessionConfig
null
if decoding and encoding
is not required.public ICodecExecutor createCodecExecutor(Object identifier)
DefaultSctpSessionConfig
The default value is null
createCodecExecutor
in interface ISctpSessionConfig
createCodecExecutor
in class DefaultSctpSessionConfig
identifier
- the identifier of the codec executor to createnull
if decoding and encoding are
not required.Copyright © 2017–2022 SNF4J.ORG. All rights reserved.