public interface TaskContextAdapter
TaskContext of a thread to
perform
monitoring and logging.| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
Invoked if
TaskContext.cancel() is called in the attached context. |
boolean |
isActive()
Determines if the current task is still "active" and processing should continue.
|
void |
log(String message)
Invoked if
TaskContext.log(String, Object...) is called in the attached context. |
void |
markErroneous()
Invoked if
TaskContext.markErroneous() is called in the attached context. |
void |
setState(String message)
Invoked if
TaskContext.setState(String, Object...) is called in the attached
context. |
void |
trace(String message)
Invoked if
TaskContext.trace(String, Object...) is called in the attached context. |
void log(String message)
TaskContext.log(String, Object...) is called in the attached context.message - the message to logvoid trace(String message)
TaskContext.trace(String, Object...) is called in the attached context.message - the message to logvoid setState(String message)
TaskContext.setState(String, Object...) is called in the attached
context.message - the message to set as statevoid markErroneous()
TaskContext.markErroneous() is called in the attached context.void cancel()
TaskContext.cancel() is called in the attached context.boolean isActive()
Copyright © 2018. All rights reserved.