public class RpcServer<S> extends Server
| Modifier and Type | Field and Description |
|---|---|
protected S |
service |
acceptor, cleanup, closeSessions, pinAcceptors, port, selectors, useWorkers, workers| Constructor and Description |
|---|
RpcServer(ServerConfig config) |
RpcServer(ServerConfig config,
S service) |
| Modifier and Type | Method and Description |
|---|---|
RpcSession<S,?> |
createSession(Socket socket) |
S |
service() |
asyncExecute, getAcceptedSessions, getConnections, getKeepAlive, getQueueAvgBytes, getQueueAvgLength, getQueueMaxBytes, getQueueMaxLength, getRejectedSessions, getRequestsProcessed, getRequestsRejected, getSelectorAvgReady, getSelectorCount, getSelectorMaxReady, getSelectorOperations, getSelectorSessions, getWorkers, getWorkersActive, getWorkersUsed, incRequestsProcessed, incRequestsRejected, reconfigure, register, register, registerShutdownHook, reset, start, stopprotected final S service
public RpcServer(ServerConfig config) throws java.io.IOException
java.io.IOExceptionpublic RpcServer(ServerConfig config, S service) throws java.io.IOException
java.io.IOExceptionpublic final S service()
public RpcSession<S,?> createSession(Socket socket) throws RejectedSessionException
createSession in class ServerRejectedSessionException