public class DefaultSctpServerChannelConfig extends DefaultChannelConfig implements SctpServerChannelConfig
SctpServerChannelConfig implementation for SCTP.| Constructor and Description |
|---|
DefaultSctpServerChannelConfig(SctpServerChannel serverChannel)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getBacklog()
Gets the backlog value to specify when the channel binds to a local address.
|
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. |
void |
setBacklog(int backlog)
Sets the backlog value to specify when the channel binds to a local address.
|
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 |
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 DefaultSctpServerChannelConfig(SctpServerChannel serverChannel)
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 int getSendBufferSize()
SctpServerChannelConfigSO_SNDBUF option.getSendBufferSize in interface SctpServerChannelConfigpublic void setSendBufferSize(int sendBufferSize)
SctpServerChannelConfigSO_SNDBUF option.setSendBufferSize in interface SctpServerChannelConfigpublic int getReceiveBufferSize()
SctpServerChannelConfigSO_RCVBUF option.getReceiveBufferSize in interface SctpServerChannelConfigpublic void setReceiveBufferSize(int receiveBufferSize)
SctpServerChannelConfigSO_RCVBUF option.setReceiveBufferSize in interface SctpServerChannelConfigpublic SctpStandardSocketOptions.InitMaxStreams getInitMaxStreams()
SctpServerChannelConfigSCTP_INIT_MAXSTREAMS option.getInitMaxStreams in interface SctpServerChannelConfigpublic void setInitMaxStreams(SctpStandardSocketOptions.InitMaxStreams initMaxStreams)
SctpServerChannelConfigSCTP_INIT_MAXSTREAMS option.setInitMaxStreams in interface SctpServerChannelConfigpublic int getBacklog()
SctpServerChannelConfiggetBacklog in interface SctpServerChannelConfigpublic void setBacklog(int backlog)
SctpServerChannelConfigsetBacklog in interface SctpServerChannelConfigCopyright © 2008-2012 The Netty Project. All Rights Reserved.