public class RpcSession<S,M> extends Session
Session.ArrayQueueItem, Session.QueueItem| Modifier and Type | Field and Description |
|---|---|
protected byte[] |
buffer |
protected static int |
BUFFER_SIZE |
protected int |
bytesRead |
protected static byte |
HTTP_REQUEST_UID |
protected static org.slf4j.Logger |
logSerialize |
protected java.net.InetSocketAddress |
peer |
protected boolean |
proxyProtocol |
protected int |
requestSize |
protected long |
requestStartTime |
protected RpcServer<S> |
server |
ACTIVE, closing, CLOSING, EVENT_MASK, events, eventsToListen, IDLE, lastAccessTime, log, queueHead, READABLE, selector, slot, socket, SSL, STALE, wasSelected, WRITEABLE| Constructor and Description |
|---|
RpcSession(Socket socket,
RpcServer<S> server) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
handleDeserializationException(java.lang.Exception e) |
protected void |
handleRejectedExecution(java.util.concurrent.RejectedExecutionException e,
java.lang.Object request) |
protected void |
invoke(java.lang.Object request,
M meta) |
protected boolean |
isAsyncRequest(java.lang.Object request) |
protected M |
onRequestRead() |
protected void |
processRead(byte[] unusedBuffer) |
protected void |
streamCommunicate(StreamProxy streamProxy) |
protected int |
writeResponse(java.lang.Object response) |
checkStatus, close, getQueueStats, getRemoteHost, handleException, isSsl, lastAccessTime, listen, process, processWrite, read, readRaw, scheduleClose, socket, write, write, writeprotected static final org.slf4j.Logger logSerialize
protected static final int BUFFER_SIZE
protected static final byte HTTP_REQUEST_UID
protected java.net.InetSocketAddress peer
protected boolean proxyProtocol
protected byte[] buffer
protected int bytesRead
protected int requestSize
protected long requestStartTime
protected void processRead(byte[] unusedBuffer)
throws java.lang.Exception
processRead in class Sessionjava.lang.Exceptionprotected boolean isAsyncRequest(java.lang.Object request)
protected M onRequestRead()
protected int writeResponse(java.lang.Object response)
throws java.io.IOException
java.io.IOExceptionprotected void streamCommunicate(StreamProxy streamProxy) throws java.io.IOException
java.io.IOExceptionprotected void invoke(java.lang.Object request,
M meta)
throws java.lang.Exception
java.lang.Exceptionprotected void handleDeserializationException(java.lang.Exception e)
throws java.io.IOException
java.io.IOExceptionprotected void handleRejectedExecution(java.util.concurrent.RejectedExecutionException e,
java.lang.Object request)
throws java.io.IOException
java.io.IOException