Package pl.morgwai.base.guice.scopes
Class ContextTracker<Ctx extends ServerSideContext<Ctx>>
- java.lang.Object
-
- pl.morgwai.base.guice.scopes.ContextTracker<Ctx>
-
public class ContextTracker<Ctx extends ServerSideContext<Ctx>> extends Object
Allows to track which server-side call is handled by which thread.
-
-
Constructor Summary
Constructors Constructor Description ContextTracker()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
clearCurrentContext()
For internal use.Ctx
getCurrentContext()
-
-
-
Method Detail
-
getCurrentContext
public Ctx getCurrentContext()
- Returns:
- call context of the calling thread.
-
clearCurrentContext
protected void clearCurrentContext()
For internal use. Apps and deriving libs should rather useServerSideContext.runWithinSelf(Runnable)
andServerSideContext.callWithinSelf(java.util.concurrent.Callable)
.
-
-