public class DefaultSctpChannelConfig extends DefaultChannelConfig implements SctpChannelConfig
SctpChannelConfig implementation for SCTP.| Constructor and Description |
|---|
DefaultSctpChannelConfig(SctpChannel channel) |
| Modifier and Type | Method and Description |
|---|---|
SctpStandardSocketOptions.InitMaxStreams |
getInitMaxStreams()
Gets the
SCTP_INIT_MAXSTREAMS option. |
<T> T |
getOption(ChannelOption<T> option)
Return the value of the given
ChannelOption |
Map<ChannelOption<?>,Object> |
getOptions()
Return all set
ChannelOption's. |
int |
getReceiveBufferSize()
Gets the
SO_RCVBUF option. |
int |
getSendBufferSize()
Gets the
SO_SNDBUF option. |
boolean |
isSctpNoDelay()
Gets the
SCTP_NODELAY option. |
void |
setInitMaxStreams(SctpStandardSocketOptions.InitMaxStreams initMaxStreams)
Gets the
SCTP_INIT_MAXSTREAMS option. |
<T> boolean |
setOption(ChannelOption<T> option,
T value)
Sets a configuration property with the specified name and value.
|
void |
setReceiveBufferSize(int receiveBufferSize)
Gets the
SO_RCVBUF option. |
void |
setSctpNoDelay(boolean sctpNoDelay)
Sets the
SCTP_NODELAY option. |
void |
setSendBufferSize(int sendBufferSize)
Sets the
SO_SNDBUF option. |
getConnectTimeoutMillis, getOptions, getWriteSpinCount, setConnectTimeoutMillis, setOptions, setWriteSpinCount, validateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConnectTimeoutMillis, getWriteSpinCount, setConnectTimeoutMillis, setOptions, setWriteSpinCountpublic DefaultSctpChannelConfig(SctpChannel channel)
public Map<ChannelOption<?>,Object> getOptions()
ChannelConfigChannelOption's.getOptions in interface ChannelConfiggetOptions in class DefaultChannelConfigpublic <T> T getOption(ChannelOption<T> option)
ChannelConfigChannelOptiongetOption in interface ChannelConfiggetOption in class DefaultChannelConfigpublic <T> boolean setOption(ChannelOption<T> option, T value)
ChannelConfig
public boolean setOption(String name, Object value) {
if (super.setOption(name, value)) {
return true;
}
if (name.equals("additionalOption")) {
....
return true;
}
return false;
}
setOption in interface ChannelConfigsetOption in class DefaultChannelConfigtrue if and only if the property has been setpublic boolean isSctpNoDelay()
SctpChannelConfigSCTP_NODELAY option.isSctpNoDelay in interface SctpChannelConfigpublic void setSctpNoDelay(boolean sctpNoDelay)
SctpChannelConfigSCTP_NODELAY option.setSctpNoDelay in interface SctpChannelConfigpublic int getSendBufferSize()
SctpChannelConfigSO_SNDBUF option.getSendBufferSize in interface SctpChannelConfigpublic void setSendBufferSize(int sendBufferSize)
SctpChannelConfigSO_SNDBUF option.setSendBufferSize in interface SctpChannelConfigpublic int getReceiveBufferSize()
SctpChannelConfigSO_RCVBUF option.getReceiveBufferSize in interface SctpChannelConfigpublic void setReceiveBufferSize(int receiveBufferSize)
SctpChannelConfigSO_RCVBUF option.setReceiveBufferSize in interface SctpChannelConfigpublic SctpStandardSocketOptions.InitMaxStreams getInitMaxStreams()
SctpChannelConfigSCTP_INIT_MAXSTREAMS option.getInitMaxStreams in interface SctpChannelConfigpublic void setInitMaxStreams(SctpStandardSocketOptions.InitMaxStreams initMaxStreams)
SctpChannelConfigSCTP_INIT_MAXSTREAMS option.setInitMaxStreams in interface SctpChannelConfigCopyright © 2008-2012 The Netty Project. All Rights Reserved.