org.jboss.jca.core.api.workmanager
Interface WorkManager

All Superinterfaces:
Cloneable, GracefulShutdown, javax.resource.spi.work.WorkManager

public interface WorkManager
extends javax.resource.spi.work.WorkManager, GracefulShutdown, Cloneable

The JBoss specific work manager interface


Field Summary
 
Fields inherited from interface javax.resource.spi.work.WorkManager
IMMEDIATE, INDEFINITE, UNKNOWN
 
Method Summary
 WorkManager clone()
          Clone the WorkManager implementation
 Callback getCallbackSecurity()
          Get the callback security module
 org.jboss.threads.BlockingExecutor getLongRunningThreadPool()
          Retrieve the executor for long running tasks
 org.jboss.threads.BlockingExecutor getShortRunningThreadPool()
          Retrieve the executor for short running tasks
 XATerminator getXATerminator()
          Get the XATerminator
 boolean isSpecCompliant()
          Is spec compliant
 void setCallbackSecurity(Callback v)
          Set callback security module
 void setLongRunningThreadPool(org.jboss.threads.BlockingExecutor executor)
          Set the executor for long running tasks
 void setShortRunningThreadPool(org.jboss.threads.BlockingExecutor executor)
          Set the executor for short running tasks
 void setSpecCompliant(boolean v)
          Set spec compliant flag
 void setXATerminator(XATerminator xaTerminator)
          Set the XATerminator
 
Methods inherited from interface javax.resource.spi.work.WorkManager
doWork, doWork, scheduleWork, scheduleWork, startWork, startWork
 
Methods inherited from interface org.jboss.jca.core.spi.graceful.GracefulShutdown
isShutdown, prepareShutdown, shutdown
 

Method Detail

getShortRunningThreadPool

org.jboss.threads.BlockingExecutor getShortRunningThreadPool()
Retrieve the executor for short running tasks

Returns:
The executor

setShortRunningThreadPool

void setShortRunningThreadPool(org.jboss.threads.BlockingExecutor executor)
Set the executor for short running tasks

Parameters:
executor - The executor

getLongRunningThreadPool

org.jboss.threads.BlockingExecutor getLongRunningThreadPool()
Retrieve the executor for long running tasks

Returns:
The executor

setLongRunningThreadPool

void setLongRunningThreadPool(org.jboss.threads.BlockingExecutor executor)
Set the executor for long running tasks

Parameters:
executor - The executor

getXATerminator

XATerminator getXATerminator()
Get the XATerminator

Returns:
The XA terminator

setXATerminator

void setXATerminator(XATerminator xaTerminator)
Set the XATerminator

Parameters:
xaTerminator - The XA terminator

isSpecCompliant

boolean isSpecCompliant()
Is spec compliant

Returns:
True if spec compliant; otherwise false

setSpecCompliant

void setSpecCompliant(boolean v)
Set spec compliant flag

Parameters:
v - The value

getCallbackSecurity

Callback getCallbackSecurity()
Get the callback security module

Returns:
The value

setCallbackSecurity

void setCallbackSecurity(Callback v)
Set callback security module

Parameters:
v - The value

clone

WorkManager clone()
                  throws CloneNotSupportedException
Clone the WorkManager implementation

Returns:
A copy of the implementation
Throws:
CloneNotSupportedException - Thrown if the copy operation isn't supported


Copyright © 2008 Red Hat Middleware LLC (http://www.jboss.com/)