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 the current context obtained from the associatedContextTracker
.ContextTracker<CtxT extends TrackableContext<CtxT>> Allows to track which thread is within which context.ContextTrackingExecutor An executor that automatically updates which thread runs within whichcontext
when executing a task.ContextTrackingExecutor.NamedThreadFactory A thread factory that names new threads based on its own name.InducedContextScope<TrackableCtxT extends TrackableContext<TrackableCtxT>,InducedCtxT extends InjectionContext> Scopes objects to the context induced by the context obtained from the associatedContextTracker
.InjectionContext Stores objects scoped to the context of some processing/call/request/session, such as an RPC, a servlet request processing, a session combining several calls etc.TrackableContext<CtxT extends TrackableContext<CtxT>> AnInjectionContext
that canexecute operations within itself
, so that it can be tracked across threads using the associatedContextTracker
. -
Exception Summary Exception Description ContextTrackingExecutor.DetailedRejectedExecutionException Thrown by the defaultRejectedExecutionHandler
.