bitronix.tm.twopc.executor
Class Job

java.lang.Object
  extended by bitronix.tm.twopc.executor.Job
All Implemented Interfaces:
java.lang.Runnable

public abstract class Job
extends java.lang.Object
implements java.lang.Runnable

Abstract job definition executable by the 2PC thread pools.

Author:
lorban

Field Summary
protected  java.lang.RuntimeException runtimeException
           
protected  javax.transaction.xa.XAException xaException
           
 
Constructor Summary
Job(XAResourceHolderState resourceHolder)
           
 
Method Summary
protected abstract  void execute()
           
 java.lang.Object getFuture()
           
 XAResourceHolderState getResource()
           
 java.lang.RuntimeException getRuntimeException()
           
 javax.transaction.xa.XAException getXAException()
           
 void run()
           
 void setFuture(java.lang.Object future)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

xaException

protected volatile javax.transaction.xa.XAException xaException

runtimeException

protected volatile java.lang.RuntimeException runtimeException
Constructor Detail

Job

public Job(XAResourceHolderState resourceHolder)
Method Detail

getResource

public XAResourceHolderState getResource()

getXAException

public javax.transaction.xa.XAException getXAException()

getRuntimeException

public java.lang.RuntimeException getRuntimeException()

setFuture

public void setFuture(java.lang.Object future)

getFuture

public java.lang.Object getFuture()

run

public final void run()
Specified by:
run in interface java.lang.Runnable

execute

protected abstract void execute()


Copyright © 2006-2018 Bitronix Software. All Rights Reserved.