Package pl.morgwai.base.guice.scopes
Classes for building Guice scopes, that get automatically transferred when dispatching work to
other threads.
- See Also:
- project homepage
-
Class Summary Class Description ContextScope<CtxT extends TrackableContext<CtxT>> Scopes objects to a context obtained from the associatedContextTracker
.ContextTracker<CtxT extends TrackableContext<CtxT>> Allows to track which server-side call is handled by which thread.ContextTrackingExecutor An executor that automatically updates which thread runs within whichTrackableContext
when executing a task.ContextTrackingExecutor.NamedThreadFactory A thread factory that names new threads based on its own name.InducedContextScope<InducingCtxT extends TrackableContext<InducingCtxT>,InducedCtxT extends ServerSideContext> Scopes object to a context induced by another context obtained from the associatedContextTracker
.ServerSideContext Stores objects scoped to some server-side processing/call, such as an RPC, a servlet request processing, a session combining several calls etc.TrackableContext<CtxT extends TrackableContext<CtxT>> AServerSideContext
that can be tracked across threads by executing closures within it.