org.jboss.xnio
Interface UdpServer
- All Superinterfaces:
- BoundServer<java.net.InetSocketAddress,UdpChannel>, java.nio.channels.Channel, java.io.Closeable, CloseableChannel, Configurable
public interface UdpServer
- extends BoundServer<java.net.InetSocketAddress,UdpChannel>
A UDP server convenience interface.
Methods inherited from interface java.nio.channels.Channel |
close, isOpen |
getBindSetter
ChannelListener.Setter<? extends UdpChannel> getBindSetter()
- Get the bind handler setter for this channel. The handler is called every time a channel is bound.
- Specified by:
getBindSetter
in interface BoundServer<java.net.InetSocketAddress,UdpChannel>
- Returns:
- the listener setter
getCloseSetter
ChannelListener.Setter<? extends UdpServer> getCloseSetter()
- Get the setter which can be used to change the close handler for this channel. If the channel is already
closed, then the handler will not be called.
- Specified by:
getCloseSetter
in interface BoundServer<java.net.InetSocketAddress,UdpChannel>
- Specified by:
getCloseSetter
in interface CloseableChannel
- Returns:
- the setter
Copyright © 2009 JBoss, a division of Red Hat, Inc.