Package pl.morgwai.base.grpc.scopes
Class ServerRpcContext
- java.lang.Object
-
- pl.morgwai.base.guice.scopes.InjectionContext
-
- pl.morgwai.base.grpc.scopes.RpcContext
-
- pl.morgwai.base.grpc.scopes.ServerRpcContext
-
- All Implemented Interfaces:
Serializable
public class ServerRpcContext extends RpcContext
Context of a server RPC (ServerCall
). A single instance spans over the whole processing of a given RPC: from the beginning of the invocation of a given remote procedure, across all its messages, until the RPC is closed. SpecificallyServerCallHandler.startCall(...)
and all methods of the returnedServerCall.Listener
are executed within the sameServerRpcContext
.
-
-
Field Summary
Fields Modifier and Type Field Description ServerCall<?,?>
rpc
-
Fields inherited from class pl.morgwai.base.grpc.scopes.RpcContext
requestHeaders
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServerCall<?,?>
getRpc()
-
Methods inherited from class pl.morgwai.base.grpc.scopes.RpcContext
getRequestHeaders
-
Methods inherited from class pl.morgwai.base.guice.scopes.InjectionContext
prepareForSerialization, produceIfAbsent, removeScopedObject, restoreAfterDeserialization
-
-
-
-
Field Detail
-
rpc
public final ServerCall<?,?> rpc
-
-
Method Detail
-
getRpc
public ServerCall<?,?> getRpc()
-
-