Example usage for javax.resource.spi.work WorkEvent WORK_ACCEPTED

List of usage examples for javax.resource.spi.work WorkEvent WORK_ACCEPTED

Introduction

In this page you can find the example usage for javax.resource.spi.work WorkEvent WORK_ACCEPTED.

Prototype

int WORK_ACCEPTED

To view the source code for javax.resource.spi.work WorkEvent WORK_ACCEPTED.

Click Source Link

Document

Indicates Work instance has been accepted.

Usage

From source file:org.mule.work.WorkerContext.java

/**
 * Call-back method used by a Work executor in order to notify this instance that
 * the wrapped Work instance has been accepted.
 * //from  w  w w  . j  a  v a  2s  .c o  m
 * @param anObject Object on which the event initially occurred. It should be the
 *            work executor.
 */
public synchronized void workAccepted(Object anObject) {
    acceptedTime = System.currentTimeMillis();
    workListener.workAccepted(new WorkEvent(anObject, WorkEvent.WORK_ACCEPTED, worker, null));
}