com.ibm.websphere.asynchbeans

Interface WorkEvent


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

    @Deprecated
    public interface WorkEvent
    This is sent to a WorkListener as the Work is processed by a WorkManager.
    See Also:
    javax.enterprise.concurrent.ManagedExecutorService
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static int WORK_ACCEPTED
      Deprecated. 
      The WORK_ACCEPTED constant indicates Work was successfully submitted to the WorkManager.
      static int WORK_COMPLETED
      Deprecated. 
      The WORK_COMPLETED constant indicates the Work completed.
      static int WORK_REJECTED
      Deprecated. 
      The WORK_REJECTED constant indicates Work.run failed to start.
      static int WORK_STARTED
      Deprecated. 
      The WORK_STARTED constant indicates the Work was allocated to a thread and is about to execute.
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      WorkException getException()
      Deprecated. 
      This returns the exception if any in the case of WORK_COMPLETED.
      long getStartDuration()
      Deprecated. 
      This returns 0 in the current implementation.
      int getType()
      Deprecated. 
      This returns WORK_ACCEPTED etc
      Work getWork()
      Deprecated. 
      This returns a copy of the Work in progress.
    • Field Detail

      • WORK_ACCEPTED

        static final int WORK_ACCEPTED
        Deprecated. 
        The WORK_ACCEPTED constant indicates Work was successfully submitted to the WorkManager. This means the parameters and thread context are valid at this point. It does not reflect acceptance to a pool or successful thread allocation.
        See Also:
        Constant Field Values
      • WORK_REJECTED

        static final int WORK_REJECTED
        Deprecated. 
        The WORK_REJECTED constant indicates Work.run failed to start. This can happen anywhere during the start process. It happens independently of all other events. Work might be rejected due to the startTimeout expiring, context propogation failure, security failure, or other internal failures.
        See Also:
        Constant Field Values
      • WORK_STARTED

        static final int WORK_STARTED
        Deprecated. 
        The WORK_STARTED constant indicates the Work was allocated to a thread and is about to execute.
        See Also:
        Constant Field Values
      • WORK_COMPLETED

        static final int WORK_COMPLETED
        Deprecated. 
        The WORK_COMPLETED constant indicates the Work completed. The Work might have completed successfully or with error.
        See Also:
        Constant Field Values
    • Method Detail

      • getType

        int getType()
        Deprecated. 
        This returns WORK_ACCEPTED etc
      • getWork

        Work getWork()
        Deprecated. 
        This returns a copy of the Work in progress.
      • getStartDuration

        long getStartDuration()
        Deprecated. 
        This returns 0 in the current implementation.
      • getException

        WorkException getException()
        Deprecated. 
        This returns the exception if any in the case of WORK_COMPLETED.
IBM WebSphere Application ServerTM
Release 9.0