public final class ExecutionPausedException extends SchedulerException
Executable
interface to indicate request
execution should be paused to allow submitted sub-requests to execute.
A request executable that submits a sub-request must pause before the
sub-request will be executed. After a job Executable
submits
a sub-request, this exception must thrown by the request executable
so the Enterprise Scheduler subsystem will pause the request.
An application paused state value can be associated with this exception. The paused state will be available to the resumed request via the request execution context when the request is resumed.
Executable
,
Serialized FormConstructor and Description |
---|
ExecutionPausedException()
Constructs a new exception with
null detail message
and null paused state. |
ExecutionPausedException(String message)
Constructs a new exception with the specified detail message and
null paused state. |
ExecutionPausedException(String message,
String state)
Constructs a new exception with the specified detail message
and paused state.
|
Modifier and Type | Method and Description |
---|---|
String |
getPausedState()
Gets the paused state associated with this exception.
|
void |
setPausedState(String state)
Sets the paused state associated with this exception.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public ExecutionPausedException()
null
detail message
and null
paused state. The cause is not initialized.public ExecutionPausedException(String message)
null
paused state. The cause is not initialized.message
- the detail message. This can be retrieved by
the getMessage
method.public ExecutionPausedException(String message, String state)
The paused state will be made available to the request executable once the sub-requests have completed and the request is resumed.
message
- the detail message. This can be retrieved by
the getMessage
method.state
- the application-specified paused state. This can
be retrieved by the getPausedState
method.public String getPausedState()
null
if nonepublic void setPausedState(String state)
state
- the application-specified paused state.
This can be null
.