public static class SessionDispatcherFactory.FiberSession<S> extends java.lang.Object implements SessionDispatcherFactory.SessionDispatcher<S>
Constructor and Description |
---|
FiberSession(org.jetlang.fibers.Fiber fiber,
boolean useForHttp,
boolean useForWebsocket) |
Modifier and Type | Method and Description |
---|---|
<T> WebSocketHandler<S,T> |
createOnNewSession(WebSocketHandler<S,T> handler,
HttpRequest headers,
S sessionState) |
NioReader.State |
dispatch(HttpHandler<S> handler,
HttpRequest headers,
HttpResponse response,
HeaderReader<S> headerReader,
NioWriter writer,
S sessionState) |
void |
onClose(S session) |
public FiberSession(org.jetlang.fibers.Fiber fiber, boolean useForHttp, boolean useForWebsocket)
public <T> WebSocketHandler<S,T> createOnNewSession(WebSocketHandler<S,T> handler, HttpRequest headers, S sessionState)
createOnNewSession
in interface SessionDispatcherFactory.SessionDispatcher<S>
public NioReader.State dispatch(HttpHandler<S> handler, HttpRequest headers, HttpResponse response, HeaderReader<S> headerReader, NioWriter writer, S sessionState)
dispatch
in interface SessionDispatcherFactory.SessionDispatcher<S>
public void onClose(S session)
onClose
in interface SessionDispatcherFactory.SessionDispatcher<S>
Copyright © 2019. All Rights Reserved.