public class LoggingLongRunningRequestCallback extends Object implements ILongRunningRequestCallback
ILongRunningRequestCallback simply logging
such events.| Constructor and Description |
|---|
LoggingLongRunningRequestCallback() |
LoggingLongRunningRequestCallback(com.helger.commons.error.level.IErrorLevel aErrorLevel) |
| Modifier and Type | Method and Description |
|---|---|
com.helger.commons.error.level.IErrorLevel |
getErrorLevel() |
void |
onLongRunningRequest(String sUniqueRequestID,
com.helger.web.scope.IRequestWebScope aRequestScope,
long nRunningMilliseconds)
Callback invoked for a single long running request
|
LoggingLongRunningRequestCallback |
setErrorLevel(com.helger.commons.error.level.IErrorLevel aErrorLevel) |
String |
toString() |
public LoggingLongRunningRequestCallback()
public LoggingLongRunningRequestCallback(@Nonnull com.helger.commons.error.level.IErrorLevel aErrorLevel)
@Nonnull public com.helger.commons.error.level.IErrorLevel getErrorLevel()
@Nonnull public final LoggingLongRunningRequestCallback setErrorLevel(@Nonnull com.helger.commons.error.level.IErrorLevel aErrorLevel)
public void onLongRunningRequest(@Nonnull @Nonempty String sUniqueRequestID, @Nonnull com.helger.web.scope.IRequestWebScope aRequestScope, @Nonnegative long nRunningMilliseconds)
ILongRunningRequestCallbackonLongRunningRequest in interface ILongRunningRequestCallbacksUniqueRequestID - The unique request ID. Never null nor empty.aRequestScope - The request scope that is long running. Never null.nRunningMilliseconds - The milliseconds this request is already running.Copyright © 2017–2019 Philip Helger. All rights reserved.