com.ibm.websphere.asynchbeans

Class WorkRejectedException

  • All Implemented Interfaces:
    com.ibm.ws.exception.WsNestedException, java.io.Serializable

    Deprecated. 
    Interfaces for work and work management are replaced by ManagedExecutorService and related interfaces.

    @Deprecated
    public class WorkRejectedException
    extends WorkException
    This is thrown then the work cannot be started. This normally means the Work timed-out and could not be started before the start timeout parameter milliseconds.
    See Also:
    javax.enterprise.concurrent.ManagedExecutorService, Serialized Form
    • Field Summary

      Fields 
      Modifier 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.
    • Method Summary

      Methods 
      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. 
       
      • Methods inherited from class com.ibm.ws.exception.WsException

        getCause, initCause
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getLocalizedMessage, getStackTrace, getSuppressed, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • OTHER

        public static final int OTHER
        Deprecated. 
        Error code is this when a WAS runtime issue prevented the Work from starting.
        See Also:
        Constant Field Values
      • TIMED_OUT

        public static final 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.
        See Also:
        Constant Field Values
      • WORKREQUEST_QUEUE_FULL

        public static final 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.
        See Also:
        Constant Field Values
    • Constructor Detail

      • WorkRejectedException

        public WorkRejectedException()
        Deprecated. 
      • WorkRejectedException

        public WorkRejectedException(java.lang.String message)
        Deprecated. 
      • WorkRejectedException

        public WorkRejectedException(java.lang.Throwable cause)
        Deprecated. 
      • WorkRejectedException

        public WorkRejectedException(java.lang.String message,
                             java.lang.Throwable cause)
        Deprecated. 
    • Method Detail

      • setErrorCode

        public void setErrorCode(int errorCode)
        Deprecated. 
      • getErrorCode

        public int getErrorCode()
        Deprecated. 
        This returns the error code for why the work was rejected. It is either OTHER, TIMED_OUT or WORKREQUEST_QUEUE_FULL
      • getMessage

        public java.lang.String getMessage()
        Deprecated. 
        Overrides:
        getMessage in class java.lang.Throwable
IBM WebSphere Application ServerTM
Release 9.0