public class WebDispatcher<S> extends java.lang.Object implements NioAcceptorHandler.ClientFactory
Constructor and Description |
---|
WebDispatcher(org.jetlang.fibers.NioFiber readFiber,
HttpRequestHandler<S> handler,
int readBufferSizeInBytes,
int maxReadLoops,
SessionFactory<S> factory,
SessionDispatcherFactory<S> dispatcherFact,
IoBufferPool.Factory bufferFactory) |
Modifier and Type | Method and Description |
---|---|
protected org.jetlang.fibers.NioChannelHandler |
createHandler(java.nio.channels.SelectionKey key,
java.nio.channels.SocketChannel channel,
org.jetlang.fibers.NioFiber fiber,
org.jetlang.fibers.NioControls controls) |
void |
onAccept(org.jetlang.fibers.NioFiber acceptorFiber,
org.jetlang.fibers.NioControls acceptorControls,
java.nio.channels.SelectionKey key,
java.nio.channels.SocketChannel channel) |
public WebDispatcher(org.jetlang.fibers.NioFiber readFiber, HttpRequestHandler<S> handler, int readBufferSizeInBytes, int maxReadLoops, SessionFactory<S> factory, SessionDispatcherFactory<S> dispatcherFact, IoBufferPool.Factory bufferFactory)
public void onAccept(org.jetlang.fibers.NioFiber acceptorFiber, org.jetlang.fibers.NioControls acceptorControls, java.nio.channels.SelectionKey key, java.nio.channels.SocketChannel channel)
onAccept
in interface NioAcceptorHandler.ClientFactory
protected org.jetlang.fibers.NioChannelHandler createHandler(java.nio.channels.SelectionKey key, java.nio.channels.SocketChannel channel, org.jetlang.fibers.NioFiber fiber, org.jetlang.fibers.NioControls controls)
Copyright © 2019. All Rights Reserved.