public class NioAcceptorHandler extends Object implements org.jetlang.fibers.NioChannelHandler
Modifier and Type | Class and Description |
---|---|
static interface |
NioAcceptorHandler.ClientFactory |
Constructor and Description |
---|
NioAcceptorHandler(ServerSocketChannel channel,
NioAcceptorHandler.ClientFactory clientHandler,
Runnable onEnd) |
Modifier and Type | Method and Description |
---|---|
static NioAcceptorHandler |
create(int port,
NioAcceptorHandler.ClientFactory clientHandler,
Runnable onEnd) |
SelectableChannel |
getChannel() |
int |
getInterestSet() |
void |
onEnd() |
boolean |
onSelect(org.jetlang.fibers.NioFiber nioFiber,
org.jetlang.fibers.NioControls controls,
SelectionKey key) |
void |
onSelectorEnd() |
public NioAcceptorHandler(ServerSocketChannel channel, NioAcceptorHandler.ClientFactory clientHandler, Runnable onEnd)
public boolean onSelect(org.jetlang.fibers.NioFiber nioFiber, org.jetlang.fibers.NioControls controls, SelectionKey key)
onSelect
in interface org.jetlang.fibers.NioChannelHandler
public SelectableChannel getChannel()
getChannel
in interface org.jetlang.fibers.NioChannelHandler
public int getInterestSet()
getInterestSet
in interface org.jetlang.fibers.NioChannelHandler
public void onEnd()
onEnd
in interface org.jetlang.fibers.NioChannelHandler
public void onSelectorEnd()
onSelectorEnd
in interface org.jetlang.fibers.NioChannelHandler
public static NioAcceptorHandler create(int port, NioAcceptorHandler.ClientFactory clientHandler, Runnable onEnd)
Copyright © 2016. All Rights Reserved.