Top Description Methods
org.xnio.channels

public Interface AcceptingChannel<C extends ConnectedChannel>

extends BoundChannel, SimpleAcceptingChannel<C extends ConnectedChannel>
Known Direct Implementers
org.xnio.ssl.AbstractAcceptingSslChannel
Type Parameters
<C>
the channel type
Imports
java.io.IOException, org.xnio.ChannelListener

A channel which can accept inbound connections from remote endpoints.
Author
David M. Lloyd

Method Summary

Modifier and TypeMethod and Description
public C
accept()

Redeclares org.xnio.channels.SimpleAcceptingChannel.accept.

Attempt to accept a connection.

public ChannelListener.Setter<? extends AcceptingChannel<C>>
getAcceptSetter()

Redeclares org.xnio.channels.SimpleAcceptingChannel.getAcceptSetter.

Get the setter which can be used to change the accept listener for this channel.

public ChannelListener.Setter<? extends AcceptingChannel<C>>
getCloseSetter()

Redeclares org.xnio.channels.BoundChannel.getCloseSetter, org.xnio.channels.SimpleAcceptingChannel.getCloseSetter.

Get the setter which can be used to change the close listener for this channel.

Inherited from org.xnio.channels.BoundChannel:
getLocalAddressgetLocalAddress

Method Detail

acceptback to summary
public C accept() throws IOException

Redeclares org.xnio.channels.SimpleAcceptingChannel.accept.

Doc from org.xnio.channels.SimpleAcceptingChannel.accept.

Attempt to accept a connection.

Returns:C

the new connection, or null if none is available

Exceptions
IOException:
if an I/O error occurs
getAcceptSetterback to summary
public ChannelListener.Setter<? extends AcceptingChannel<C>> getAcceptSetter()

Redeclares org.xnio.channels.SimpleAcceptingChannel.getAcceptSetter.

Doc from org.xnio.channels.SimpleAcceptingChannel.getAcceptSetter.

Get the setter which can be used to change the accept listener for this channel.

Returns:ChannelListener.Setter<? extends AcceptingChannel<C>>

Doc from org.xnio.channels.SuspendableAcceptChannel.getAcceptSetter.

the setter

getCloseSetterback to summary
public ChannelListener.Setter<? extends AcceptingChannel<C>> getCloseSetter()

Redeclares org.xnio.channels.BoundChannel.getCloseSetter, org.xnio.channels.SimpleAcceptingChannel.getCloseSetter.

Doc from org.xnio.channels.BoundChannel.getCloseSetter.

Get the setter which can be used to change the close listener for this channel. If the channel is already closed, then the listener will not be called.

Returns:ChannelListener.Setter<? extends AcceptingChannel<C>>

Doc from org.xnio.channels.CloseableChannel.getCloseSetter.

the setter