ManagedExecutorService
and related interfaces.@Deprecated public class WorkRejectedException extends WorkException
javax.enterprise.concurrent.ManagedExecutorService
,
Serialized FormModifier and Type | Field and Description |
---|---|
static int |
OTHER
Deprecated.
Error code is this when a WAS runtime issue prevented the
Work from starting.
|
static int |
TIMED_OUT
Deprecated.
Error code is this when the Work would have started
after the maximum interval specified when the startWork
method was called.
|
static int |
WORKREQUEST_QUEUE_FULL
Deprecated.
Error code is this when the Work was unable to
start because a thread was not avialable in the thread pool.
|
Constructor and Description |
---|
WorkRejectedException()
Deprecated.
|
WorkRejectedException(java.lang.String message)
Deprecated.
|
WorkRejectedException(java.lang.String message,
java.lang.Throwable cause)
Deprecated.
|
WorkRejectedException(java.lang.Throwable cause)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
int |
getErrorCode()
Deprecated.
This returns the error code for why the work was rejected.
|
java.lang.String |
getMessage()
Deprecated.
|
void |
setErrorCode(int errorCode)
Deprecated.
|
public static final int OTHER
public static final int TIMED_OUT
public static final int WORKREQUEST_QUEUE_FULL
public WorkRejectedException()
public WorkRejectedException(java.lang.String message)
public WorkRejectedException(java.lang.Throwable cause)
public WorkRejectedException(java.lang.String message, java.lang.Throwable cause)
public void setErrorCode(int errorCode)
public int getErrorCode()
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable