Skip navigation links

Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.2.1)

Part Number E55141-01
P4 Change 1723563 on 2015/10/09


commonj.work
Interface WorkListener

All Superinterfaces:
EventListener

public interface WorkListener
extends EventListener

This is a callback interface called to report on the dispatching of a Work. It is implemented by the application and supplied to scheduleWork methods on a WorkManager. The Java EE context active on the thread during WorkManager scheduling will be applied each of the event methods. See WorkManager for details.

Since:
1.0
See Also:
WorkManager

Method Summary
abstract  void workAccepted(WorkEvent we)
          This is called when the Work is accepted for dispatching.
abstract  void workCompleted(WorkEvent we)
          This is called once Work.run returns.
abstract  void workRejected(WorkEvent we)
          This is called when the Work cannot be processed prior to starting but after accept.
abstract  void workStarted(WorkEvent we)
          This is called when the Work is about to start.

 

Method Detail

workAccepted

void workAccepted(WorkEvent we)
This is called when the Work is accepted for dispatching.
Since:
1.0

workRejected

void workRejected(WorkEvent we)
This is called when the Work cannot be processed prior to starting but after accept.
Since:
1.0

workStarted

void workStarted(WorkEvent we)
This is called when the Work is about to start. When this returns the Work.run is called.
Since:
1.0

workCompleted

void workCompleted(WorkEvent we)
This is called once Work.run returns.
Since:
1.0

Skip navigation links

Copyright 1996, 2015, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.

Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.2.1)

Part Number E55141-01
P4 Change 1723563 on 2015/10/09