public abstract class RecvRequest<T extends InvarCodec.ProtocRequest,R extends InvarCodec.ProtocResponse> extends Object
| Constructor and Description |
|---|
RecvRequest() |
| Modifier and Type | Method and Description |
|---|---|
static <T extends InvarCodec.ProtocRequest> |
getSessionId(T req,
RecvContext ctx) |
abstract void |
handle(T request,
R response,
RecvContext context) |
static <T extends InvarCodec.ProtocRequest,R extends InvarCodec.ProtocResponse,C extends RecvContext> |
recv(C ctx,
T req,
R resp) |
protected String |
sessionId(T req) |
protected void |
setHandlerId(String id) |
public static <T extends InvarCodec.ProtocRequest,R extends InvarCodec.ProtocResponse,C extends RecvContext> void recv(C ctx, T req, R resp)
public static <T extends InvarCodec.ProtocRequest> String getSessionId(T req, RecvContext ctx)
public abstract void handle(T request, R response, RecvContext context)
protected void setHandlerId(String id)
Copyright © 2015–2023 The Struqt Project. All rights reserved.