@Immutable public final class RequestTracker extends com.helger.web.scope.singleton.AbstractGlobalWebSingleton
RequestTrackingManager and runs a daemon Thread for
monitoring all open requests.| Constructor and Description |
|---|
RequestTracker()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
addRequest(String sRequestID,
com.helger.web.scope.IRequestWebScope aRequestScope)
Add new request to the tracking
|
ScheduledExecutorService |
getExecutorService() |
static RequestTracker |
getInstance() |
RequestTrackingManager |
getRequestTrackingMgr() |
static com.helger.commons.callback.CallbackList<ILongRunningRequestCallback> |
longRunningRequestCallbacks() |
protected void |
onDestroy(com.helger.scope.IScope aScopeInDestruction) |
static com.helger.commons.callback.CallbackList<IParallelRunningRequestCallback> |
parallelRunningRequestCallbacks() |
static void |
removeRequest(String sRequestID)
Remove a request from the tracking.
|
getAllGlobalSingletons, getGlobalSingleton, getGlobalSingletonIfInstantiated, isGlobalSingletonInstantiatedgetAllSingletons, getSingleton, getSingletonIfInstantiated, getSingletonScopeKey, isDestroyed, isInDestruction, isInInstantiation, isInPreDestruction, isInstantiated, isSingletonInstantiated, isUsableObject, onAfterInstantiation, onBeforeDestroy, onBeforeScopeDestruction, onScopeDestruction, readAbstractSingletonFields, setDestroyed, setInDestruction, setInInstantiation, setInPreDestruction, setInstantiated, toString, writeAbstractSingletonFields@Deprecated @UsedViaReflection public RequestTracker()
@Nonnull @ReturnsMutableObject public static com.helger.commons.callback.CallbackList<ILongRunningRequestCallback> longRunningRequestCallbacks()
@Nonnull @ReturnsMutableObject public static com.helger.commons.callback.CallbackList<IParallelRunningRequestCallback> parallelRunningRequestCallbacks()
protected void onDestroy(@Nonnull com.helger.scope.IScope aScopeInDestruction)
onDestroy in class com.helger.scope.singleton.AbstractSingleton@Nonnull public static RequestTracker getInstance()
@Nonnull public RequestTrackingManager getRequestTrackingMgr()
null.
Don't use except you know what you are doing!@Nonnull public ScheduledExecutorService getExecutorService()
public static void addRequest(@Nonnull @Nonempty String sRequestID, @Nonnull com.helger.web.scope.IRequestWebScope aRequestScope)
sRequestID - The unique request ID.aRequestScope - The request scope itself.Copyright © 2017–2019 Philip Helger. All rights reserved.