org.jboss.xnio.channels
Interface BoundServer<A,T extends BoundChannel<A>>
- Type Parameters:
A - the type of address associated with this serverT - the channel type
- All Superinterfaces:
- java.io.Closeable, Configurable
- All Known Implementing Classes:
- BioUdpServer, NioTcpServer, NioUdpServer
public interface BoundServer<A,T extends BoundChannel<A>>
- extends java.io.Closeable, Configurable
A server that is bound to a local address.
- Since:
- 1.2
|
Method Summary |
IoFuture<T> |
bind(A address)
Add a binding. |
java.util.Collection<T> |
getChannels()
Get the channels representing the individual bound servers. |
| Methods inherited from interface java.io.Closeable |
close |
getChannels
java.util.Collection<T> getChannels()
- Get the channels representing the individual bound servers. The collection is a snapshot view of the bound
channels; modifications to the collection are not allowed. However the channels within the collection are
live references to the bindings that exist at the time this method is called; these channels may be closed
to unbind the channel.
- Returns:
- the channels
bind
IoFuture<T> bind(A address)
- Add a binding. The returned channel may be used to close the binding.
- Parameters:
address - the address to bind to
- Returns:
- a future channel representing the binding