public class GeronimoWorkManager
extends java.lang.Object
implements javax.resource.spi.work.WorkManager
| Constructor and Description |
|---|
GeronimoWorkManager()
Create a WorkManager.
|
GeronimoWorkManager(java.util.concurrent.Executor sync,
java.util.concurrent.Executor start,
java.util.concurrent.Executor sched,
java.util.Collection<WorkContextHandler> workContextHandlers) |
| Modifier and Type | Method and Description |
|---|---|
void |
doFail() |
void |
doStart() |
void |
doStop() |
void |
doWork(javax.resource.spi.work.Work work) |
void |
doWork(javax.resource.spi.work.Work work,
long startTimeout,
javax.resource.spi.work.ExecutionContext execContext,
javax.resource.spi.work.WorkListener workListener) |
java.util.concurrent.Executor |
getScheduledWorkExecutorPool() |
java.util.concurrent.Executor |
getStartWorkExecutorPool() |
java.util.concurrent.Executor |
getSyncWorkExecutorPool() |
boolean |
isContextSupported(java.lang.Class<? extends javax.resource.spi.work.WorkContext> aClass) |
void |
scheduleWork(javax.resource.spi.work.Work work) |
void |
scheduleWork(javax.resource.spi.work.Work work,
long startTimeout,
javax.resource.spi.work.ExecutionContext execContext,
javax.resource.spi.work.WorkListener workListener) |
long |
startWork(javax.resource.spi.work.Work work) |
long |
startWork(javax.resource.spi.work.Work work,
long startTimeout,
javax.resource.spi.work.ExecutionContext execContext,
javax.resource.spi.work.WorkListener workListener) |
public GeronimoWorkManager()
public GeronimoWorkManager(java.util.concurrent.Executor sync,
java.util.concurrent.Executor start,
java.util.concurrent.Executor sched,
java.util.Collection<WorkContextHandler> workContextHandlers)
public void doStart()
throws java.lang.Exception
java.lang.Exceptionpublic void doStop()
throws java.lang.Exception
java.lang.Exceptionpublic void doFail()
public java.util.concurrent.Executor getSyncWorkExecutorPool()
public java.util.concurrent.Executor getStartWorkExecutorPool()
public java.util.concurrent.Executor getScheduledWorkExecutorPool()
public void doWork(javax.resource.spi.work.Work work)
throws javax.resource.spi.work.WorkException
doWork in interface javax.resource.spi.work.WorkManagerjavax.resource.spi.work.WorkExceptionpublic void doWork(javax.resource.spi.work.Work work,
long startTimeout,
javax.resource.spi.work.ExecutionContext execContext,
javax.resource.spi.work.WorkListener workListener)
throws javax.resource.spi.work.WorkException
doWork in interface javax.resource.spi.work.WorkManagerjavax.resource.spi.work.WorkExceptionpublic long startWork(javax.resource.spi.work.Work work)
throws javax.resource.spi.work.WorkException
startWork in interface javax.resource.spi.work.WorkManagerjavax.resource.spi.work.WorkExceptionpublic long startWork(javax.resource.spi.work.Work work,
long startTimeout,
javax.resource.spi.work.ExecutionContext execContext,
javax.resource.spi.work.WorkListener workListener)
throws javax.resource.spi.work.WorkException
startWork in interface javax.resource.spi.work.WorkManagerjavax.resource.spi.work.WorkExceptionpublic void scheduleWork(javax.resource.spi.work.Work work)
throws javax.resource.spi.work.WorkException
scheduleWork in interface javax.resource.spi.work.WorkManagerjavax.resource.spi.work.WorkExceptionpublic void scheduleWork(javax.resource.spi.work.Work work,
long startTimeout,
javax.resource.spi.work.ExecutionContext execContext,
javax.resource.spi.work.WorkListener workListener)
throws javax.resource.spi.work.WorkException
scheduleWork in interface javax.resource.spi.work.WorkManagerjavax.resource.spi.work.WorkExceptionpublic boolean isContextSupported(java.lang.Class<? extends javax.resource.spi.work.WorkContext> aClass)
Copyright © 2003-2016 The Apache Software Foundation. All Rights Reserved.