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, getLocalAddress
awaitAcceptable, awaitAcceptable, getAcceptThread, getIoThread, isAcceptResumed, resumeAccepts, suspendAccepts, wakeupAccepts
close, getWorker
getOption, setOption, supportsOption
C 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 SuspendableAcceptChannel
ChannelListener.Setter<? extends AcceptingChannel<C>> getCloseSetter()
getCloseSetter
in interface BoundChannel
getCloseSetter
in interface CloseableChannel
getCloseSetter
in interface SimpleAcceptingChannel<C extends ConnectedChannel>
getCloseSetter
in interface SuspendableAcceptChannel
Copyright © 2018 JBoss by Red Hat. All rights reserved.