Package pl.morgwai.base.grpc.scopes
RPC
and ListenerEvent
Guice
Scopes for gRPC server, that are automatically transferred when dispatching work to other
threads.- See Also:
- project homepage
-
Class Summary Class Description ClientContextInterceptor Creates a newClientRpcContext
for each new RPC (ClientCall
) and a newListenerEventContext
for eachListener
call.ClientRpcContext Context of a client RPC (ClientCall
).GrpcContextTrackingExecutor ATaskTrackingThreadPoolExecutor
that wraps tasks withContextBoundRunnable
decorator to automatically transfer contexts.GrpcModule gRPC GuiceScope
s,ContextTracker
s and some helper methods.ListenerEventContext Context of a single call to one of the methods ofClientCall.Listener
,ServerCall.Listener
and a server listener creation inServerCallHandler.startCall(...)
.RpcContext Context of either a client or a server RPC.ServerContextInterceptor Creates a newServerRpcContext
for each new RPC (ServerCall
) and a newListenerEventContext
for eachListener
call and creation.ServerRpcContext Context of a server RPC (ServerCall
).