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
 String getId()
          Get the unique id of the work manager
 org.jboss.threads.BlockingExecutor getLongRunningThreadPool()
          Retrieve the executor for long running tasks
 String getName()
          Get the name of the work manager
 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 setName(String v)
          Set the name of the work manager
 void setResourceAdapter(javax.resource.spi.ResourceAdapter ra)
          Set the resource adapter
 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
cancelShutdown, isShutdown, prepareShutdown, shutdown
 

Method Detail

getId

String getId()
Get the unique id of the work manager

Returns:
The value

getName

String getName()
Get the name of the work manager

Returns:
The value

setName

void setName(String v)
Set the name of the work manager

Parameters:
v - The value

setResourceAdapter

void setResourceAdapter(javax.resource.spi.ResourceAdapter ra)
Set the resource adapter

Parameters:
ra - The handle

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 © 2012 JBoss, by Red Hat (http://www.jboss.org/ironjacamar)