public class CancellationHandler extends Object
| Constructor and Description |
|---|
CancellationHandler() |
| Modifier and Type | Method and Description |
|---|---|
static void |
begin(Statement statement,
Object context)
Indicates that a statement is going to be executed.
|
static void |
cancel(Object context)
Requests cancellation.
|
static void |
cancelSilently(Object context)
Requests cancellation without logging.
|
static void |
checkForCancellation(Object context)
Checks for cancellation.
|
static void |
end(Statement statement,
Object context)
Indicates that a statement has been executed.
|
static void |
reset(Object context)
Resets the handler.
|
public static void reset(Object context)
context - cancellation context, null for default contextpublic static void cancel(Object context)
context - cancellation context, null for default contextpublic static void cancelSilently(Object context)
context - cancellation context, null for default contextpublic static void begin(Statement statement, Object context)
context - cancellation context, null for default contextstatement - the statementpublic static void end(Statement statement, Object context)
statement - the statementcontext - cancellation context, null for default contextpublic static void checkForCancellation(Object context) throws CancellationException
context - cancellation context, null for default contextCancellationException - if cancellation have been requested