C - the channel typepublic interface SimpleAcceptingChannel<C extends CloseableChannel> extends SuspendableAcceptChannel
| Modifier and Type | Method and Description |
|---|---|
C |
accept()
Attempt to accept a connection.
|
ChannelListener.Setter<? extends SimpleAcceptingChannel<C>> |
getAcceptSetter()
Get the setter which can be used to change the accept listener for this channel.
|
ChannelListener.Setter<? extends SimpleAcceptingChannel<C>> |
getCloseSetter()
Get the setter which can be used to change the close listener for this channel.
|
awaitAcceptable, awaitAcceptable, resumeAccepts, suspendAccepts, wakeupAcceptsclose, getWorkergetOption, setOption, supportsOptionC accept() throws IOException
null if none is availableIOException - if an I/O error occursChannelListener.Setter<? extends SimpleAcceptingChannel<C>> getAcceptSetter()
getAcceptSetter in interface SuspendableAcceptChannelChannelListener.Setter<? extends SimpleAcceptingChannel<C>> getCloseSetter()
getCloseSetter in interface CloseableChannelgetCloseSetter in interface SuspendableAcceptChannelCopyright © 2012 JBoss by Red Hat. All Rights Reserved.