public class ServiceCall extends AbstractLoggingServiceMonitor
cacheHit, context, correlationId, endTime, error, errorMessage, executionTime, failure, failureException, failureReason, parameters, startTime
Constructor and Description |
---|
ServiceCall(Service service,
boolean log,
boolean useThreadLocal) |
Modifier and Type | Method and Description |
---|---|
void |
beginCall(Object... parameters)
Notify of the beginning of a call to a service.
|
void |
cacheHit()
Reports that a cache system was used instead of performing the actual
call.
|
void |
endCall()
Notify the end of a call to a service.
|
String |
getId() |
void |
nestedCall()
Report that another service was called in order to perform original
action
|
context, correlationId, error, executionTime, failure, failure, getLogger, getLogMessage, getStartTime, setLogFormat, setLogger, setMessageFormat
public ServiceCall(Service service, boolean log, boolean useThreadLocal)
public void cacheHit()
IServiceMonitor
cacheHit
in interface IServiceMonitor
cacheHit
in class AbstractLoggingServiceMonitor
public String getId()
public void beginCall(Object... parameters)
IServiceMonitor
beginCall
in interface IServiceMonitor
beginCall
in class AbstractLoggingServiceMonitor
parameters
- operation parameterspublic void endCall()
IServiceMonitor
endCall
in interface IServiceMonitor
endCall
in class AbstractLoggingServiceMonitor
public void nestedCall()
IServiceMonitor
Copyright © 2010–2016. All rights reserved.