C
- the channel typepublic interface SimpleAcceptingChannel<C extends CloseableChannel> extends SuspendableAcceptChannel
EMPTY
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, getAcceptThread, getIoThread, isAcceptResumed, resumeAccepts, suspendAccepts, wakeupAccepts
close, getWorker
getOption, setOption, supportsOption
C accept() throws IOException
null
if none is availableIOException
- if an I/O error occursChannelListener.Setter<? extends SimpleAcceptingChannel<C>> getAcceptSetter()
getAcceptSetter
in interface SuspendableAcceptChannel
ChannelListener.Setter<? extends SimpleAcceptingChannel<C>> getCloseSetter()
getCloseSetter
in interface CloseableChannel
getCloseSetter
in interface SuspendableAcceptChannel
Copyright © 2018 JBoss by Red Hat. All rights reserved.