javax.resource.spi.work
Interface WorkManager

All Known Implementing Classes:
WorkManagerImpl

public interface WorkManager

Allow submission of work instances.


Field Summary
static long IMMEDIATE
           
static long INDEFINITE
           
static long UNKNOWN
           
 
Method Summary
 void doWork(Work work)
          Accepts a work instance for processing.
 void doWork(Work work, long startTimeout, ExecutionContext context, WorkListener workListener)
          Accepts a work instance for processing.
 void scheduleWork(Work work)
          Schedules a work instance.
 void scheduleWork(Work work, long startTimeout, ExecutionContext context, WorkListener listener)
          Schedules a work instance.
 long startWork(Work work)
          Accepts a work instance for processing.
 long startWork(Work work, long startTimeout, ExecutionContext context, WorkListener listener)
          Accepts a work instance for processing.
 

Field Detail

IMMEDIATE

static final long IMMEDIATE
See Also:
Constant Field Values

INDEFINITE

static final long INDEFINITE
See Also:
Constant Field Values

UNKNOWN

static final long UNKNOWN
See Also:
Constant Field Values
Method Detail

doWork

void doWork(Work work)
            throws WorkException
Accepts a work instance for processing. The call blocks until the work instance completes.

Throws:
WorkException

doWork

void doWork(Work work,
            long startTimeout,
            ExecutionContext context,
            WorkListener workListener)
            throws WorkException
Accepts a work instance for processing. The call blocks until the work instance completes.

Throws:
WorkException

startWork

long startWork(Work work)
               throws WorkException
Accepts a work instance for processing. The call blocks until the work instance starts, but does not wait not until the completion.

Throws:
WorkException

startWork

long startWork(Work work,
               long startTimeout,
               ExecutionContext context,
               WorkListener listener)
               throws WorkException
Accepts a work instance for processing. The call blocks until the work instance starts, but does not wait not until the completion.

Throws:
WorkException

scheduleWork

void scheduleWork(Work work)
                  throws WorkException
Schedules a work instance.

Throws:
WorkException

scheduleWork

void scheduleWork(Work work,
                  long startTimeout,
                  ExecutionContext context,
                  WorkListener listener)
                  throws WorkException
Schedules a work instance.

Throws:
WorkException