|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.xnio.nio.NioUdpServer
public class NioUdpServer
Field Summary | |
---|---|
protected static java.util.Set<ChannelOption<?>> |
OPTIONS
|
Method Summary | ||
---|---|---|
IoFuture<UdpChannel> |
bind(java.net.SocketAddress address)
Add a binding. |
|
void |
close()
|
|
java.util.Collection<UdpChannel> |
getChannels()
Get the channels representing the individual bound servers. |
|
|
getOption(ChannelOption<T> option)
Get the value of a channel option. |
|
java.util.Set<ChannelOption<?>> |
getOptions()
Get the options that may be set on this channel. |
|
|
setOption(ChannelOption<T> option,
T value)
Set an option for this channel. |
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static final java.util.Set<ChannelOption<?>> OPTIONS
Method Detail |
---|
public <T> T getOption(ChannelOption<T> option) throws UnsupportedOptionException, java.io.IOException
Configurable
getOption
in interface Configurable
T
- the type of the option valueoption
- the option to get
UnsupportedOptionException
- if the option is not supported by this channel
java.io.IOException
- if an I/O error occurred when reading the optionpublic java.util.Set<ChannelOption<?>> getOptions()
Configurable
getOptions
in interface Configurable
public <T> Configurable setOption(ChannelOption<T> option, T value) throws java.lang.IllegalArgumentException, java.io.IOException
Configurable
setOption
in interface Configurable
T
- the type of the option valueoption
- the option to setvalue
- the value of the option to set
UnsupportedOptionException
- if the option is not supported by this channel
java.lang.IllegalArgumentException
- if the value is not acceptable for this option
java.io.IOException
- if an I/O error occured when modifying the optionpublic java.lang.String toString()
toString
in class java.lang.Object
public java.util.Collection<UdpChannel> getChannels()
BoundServer
getChannels
in interface BoundServer<java.net.SocketAddress,UdpChannel>
public IoFuture<UdpChannel> bind(java.net.SocketAddress address)
BoundServer
bind
in interface BoundServer<java.net.SocketAddress,UdpChannel>
address
- the address to bind to
public void close() throws java.io.IOException
close
in interface java.io.Closeable
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |