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 InetSocketAddress |
peer |
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(Exception e) |
protected void |
handleRejectedExecution(RejectedExecutionException e,
Object request) |
protected void |
invoke(Object request,
M meta) |
protected boolean |
isAsyncRequest(Object request) |
protected M |
onRequestRead() |
protected void |
processRead(byte[] unusedBuffer) |
protected void |
streamCommunicate(StreamProxy streamProxy) |
protected int |
writeResponse(Object response) |
checkStatus, close, getQueueStats, getRemoteHost, handleException, isSsl, lastAccessTime, listen, process, processWrite, read, readRaw, scheduleClose, socket, write, write, writeprotected static final int BUFFER_SIZE
protected static final byte HTTP_REQUEST_UID
protected final InetSocketAddress peer
protected byte[] buffer
protected int bytesRead
protected int requestSize
protected long requestStartTime
protected void processRead(byte[] unusedBuffer)
throws Exception
processRead in class SessionExceptionprotected boolean isAsyncRequest(Object request)
protected M onRequestRead()
protected int writeResponse(Object response) throws IOException
IOExceptionprotected void streamCommunicate(StreamProxy streamProxy) throws IOException
IOExceptionprotected void handleDeserializationException(Exception e) throws IOException
IOExceptionprotected void handleRejectedExecution(RejectedExecutionException e, Object request) throws IOException
IOExceptionCopyright © 2019. All rights reserved.