public class DefaultSctpSessionConfig extends DefaultSessionConfig implements ISctpSessionConfig
DEFAULT_CODEC_EXECUTOR_IDENTIFIER
Constructor and Description |
---|
DefaultSctpSessionConfig() |
Modifier and Type | Method and Description |
---|---|
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.
|
int |
getDefaultSctpPayloadProtocolID()
Returns the payload protocol identifier for the SCTP messages sent by the
ISctpSession 's write methods
without specified the msgInfo argument. |
SocketAddress |
getDefaultSctpPeerAddress()
Returns the preferred peer address for the SCTP messages sent by the
ISctpSession 's write methods
without specified the msgInfo argument. |
int |
getDefaultSctpStreamNumber()
Returns the stream number for the SCTP messages sent by the
ISctpSession 's write methods
without specified the msgInfo argument. |
boolean |
getDefaultSctpUnorderedFlag()
Returns the unordered flag for the SCTP messages sent by the
ISctpSession 's write methods
without specified the msgInfo argument. |
DefaultSctpSessionConfig |
setDefaultSctpPayloadProtocolID(int defaultPayloadProtocolID)
Configures the payload protocol identifier for the SCTP messages sent by the
ISctpSession 's write methods
without specified the msgInfo argument. |
DefaultSctpSessionConfig |
setDefaultSctpPeerAddress(SocketAddress defaultPeerAddress)
Configures the preferred peer address for the SCTP messages sent by the
ISctpSession 's write methods
without specified the msgInfo argument. |
DefaultSctpSessionConfig |
setDefaultSctpStreamNumber(int defaultStreamNumber)
Configures the stream number for the SCTP messages sent by the
ISctpSession 's write methods
without specified the msgInfo argument. |
DefaultSctpSessionConfig |
setDefaultSctpUnorderedFlag(boolean defaultUnorderedFlag)
Configures the unordered flag for the SCTP messages sent by the
ISctpSession 's write methods
without specified the msgInfo argument. |
addSSLEngineBuilder, alwaysNotifiedBeingInPipeline, createCodecExecutor, 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, createCodecExecutor, createSSLEngine, createSSLEngine, getDatagramServerSessionNoReopenPeriod, getEndingAction, getEngineHandshakeTimeout, getMaxInBufferCapacity, getMaxSSLApplicationBufferSizeRatio, getMaxSSLNetworkBufferSizeRatio, getMaxWriteSpinCount, getMinInBufferCapacity, getMinOutBufferCapacity, getThroughputCalculationInterval, ignorePossiblyIncompleteDatagrams, optimizeDataCopying, waitForInboundCloseMessage
public Object getCodecExecutorIdentifier(com.sun.nio.sctp.MessageInfo msgInfo)
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
msgInfo
- the ancillary data about an SCTP message to be decoded/encodednull
if
decoding and encoding are not required.public ICodecExecutor createCodecExecutor(Object identifier)
The default value is null
createCodecExecutor
in interface ISctpSessionConfig
identifier
- the identifier of the codec executor to createnull
if decoding and encoding are
not required.public int getDefaultSctpStreamNumber()
ISctpSession
's write methods
without specified the msgInfo
argument.
The default value is 0
getDefaultSctpStreamNumber
in interface ISctpSessionConfig
public DefaultSctpSessionConfig setDefaultSctpStreamNumber(int defaultStreamNumber)
ISctpSession
's write methods
without specified the msgInfo
argument.defaultStreamNumber
- the default stream numberpublic int getDefaultSctpPayloadProtocolID()
ISctpSession
's write methods
without specified the msgInfo
argument.
The default value is 0
getDefaultSctpPayloadProtocolID
in interface ISctpSessionConfig
public DefaultSctpSessionConfig setDefaultSctpPayloadProtocolID(int defaultPayloadProtocolID)
ISctpSession
's write methods
without specified the msgInfo
argument.defaultPayloadProtocolID
- the default payload protocol identifierpublic boolean getDefaultSctpUnorderedFlag()
ISctpSession
's write methods
without specified the msgInfo
argument.
The default value is false
getDefaultSctpUnorderedFlag
in interface ISctpSessionConfig
public DefaultSctpSessionConfig setDefaultSctpUnorderedFlag(boolean defaultUnorderedFlag)
ISctpSession
's write methods
without specified the msgInfo
argument.defaultUnorderedFlag
- the default unordered flagpublic SocketAddress getDefaultSctpPeerAddress()
ISctpSession
's write methods
without specified the msgInfo
argument.
The default value is null
getDefaultSctpPeerAddress
in interface ISctpSessionConfig
null
to use the peer primary
addresspublic DefaultSctpSessionConfig setDefaultSctpPeerAddress(SocketAddress defaultPeerAddress)
ISctpSession
's write methods
without specified the msgInfo
argument.defaultPeerAddress
- the preferred peer address, or null
to use
the peer primary addressCopyright © 2017–2022 SNF4J.ORG. All rights reserved.