Top Description Methods
io.netty5.channel.nio

pack-priv Interface NioProcessor

Imports
java.nio.channels.ClosedChannelException, .SelectionKey, .Selector

Process IO.

Method Summary

Modifier and TypeMethod and Description
public void
close()

Close this processor.

public void
deregister()

Deregister from previous registered Selector.

public void
handle(SelectionKey
the SelectionKey that needs to be handled.
key
)

Handle some IO for the given SelectionKey.

public void
register(Selector
the Selector to register to.
selector
)

Register to a Selector.

Method Detail

closeback to summary
public void close()

Close this processor.

deregisterback to summary
public void deregister()

Deregister from previous registered Selector.

handleback to summary
public void handle(SelectionKey key)

Handle some IO for the given SelectionKey.

Parameters
key:SelectionKey

the SelectionKey that needs to be handled.

registerback to summary
public void register(Selector selector) throws ClosedChannelException

Register to a Selector.

Parameters
selector:Selector

the Selector to register to.

Exceptions
ClosedChannelException:
if already closed.