commonj.work
Interface WorkEvent


public interface WorkEvent

This is sent to a WorkListener as the Work is processed by a WorkManager.


Field Summary
static int WORK_ACCEPTED
          Work has been accepted
static int WORK_COMPLETED
          Work has completed.
static int WORK_REJECTED
          Work has been rejected.
static int WORK_STARTED
          Work is currently running.
 
Method Summary
 WorkException getException()
          This returns the exception if any in the case of WORK_COMPLETED.
 int getType()
          This returns WORK_ACCEPTED etc
 Work getWork()
          This returns a copy of the Work in progress.
 

Field Detail

WORK_ACCEPTED

public static final int WORK_ACCEPTED
Work has been accepted

See Also:
Constant Field Values

WORK_REJECTED

public static final int WORK_REJECTED
Work has been rejected.

See Also:
Constant Field Values

WORK_STARTED

public static final int WORK_STARTED
Work is currently running.

See Also:
Constant Field Values

WORK_COMPLETED

public static final int WORK_COMPLETED
Work has completed.

See Also:
Constant Field Values
Method Detail

getType

public int getType()
This returns WORK_ACCEPTED etc


getWork

public Work getWork()
This returns a copy of the Work in progress.


getException

public WorkException getException()
This returns the exception if any in the case of WORK_COMPLETED.



Copyright BEA Systems, Inc. and International Business Machines Corp 2003. All rights reserved.