C - the channel typepublic interface AcceptingChannel<C extends ConnectedChannel> extends BoundChannel, SimpleAcceptingChannel<C>
EMPTY| Modifier and Type | Method and Description |
|---|---|
C |
accept()
Attempt to accept a connection.
|
ChannelListener.Setter<? extends AcceptingChannel<C>> |
getAcceptSetter()
Get the setter which can be used to change the accept listener for this channel.
|
ChannelListener.Setter<? extends AcceptingChannel<C>> |
getCloseSetter()
Get the setter which can be used to change the close listener for this channel.
|
getLocalAddress, getLocalAddressawaitAcceptable, awaitAcceptable, getAcceptThread, getIoThread, isAcceptResumed, resumeAccepts, suspendAccepts, wakeupAcceptsclose, getWorkergetOption, setOption, supportsOptionC accept() throws IOException
accept in interface SimpleAcceptingChannel<C extends ConnectedChannel>null if none is availableIOException - if an I/O error occursChannelListener.Setter<? extends AcceptingChannel<C>> getAcceptSetter()
getAcceptSetter in interface SimpleAcceptingChannel<C extends ConnectedChannel>getAcceptSetter in interface SuspendableAcceptChannelChannelListener.Setter<? extends AcceptingChannel<C>> getCloseSetter()
getCloseSetter in interface BoundChannelgetCloseSetter in interface CloseableChannelgetCloseSetter in interface SimpleAcceptingChannel<C extends ConnectedChannel>getCloseSetter in interface SuspendableAcceptChannelCopyright © 2019 JBoss by Red Hat. All rights reserved.