JBoss Integration 6.0 Parent 6.0.0.CR1

org.jboss.tm
Interface TransactionLocalDelegate

All Known Implementing Classes:
TransactionLocalDelegateImpl

public interface TransactionLocalDelegate

The interface to implementated for a transaction local implementation

Version:
$Revision: 37459 $
Author:
Adrian Brock

Method Summary
 boolean containsValue(TransactionLocal local, Transaction tx)
          does Transaction contain object?
 Object getValue(TransactionLocal local, Transaction tx)
          get the transaction local value.
 void lock(TransactionLocal local, Transaction tx)
          Lock the transaction local in the context of this transaction
 void storeValue(TransactionLocal local, Transaction tx, Object value)
          put the value in the transaction local
 void unlock(TransactionLocal local, Transaction tx)
          Unlock the transaction local in the context of this transaction
 

Method Detail

getValue

Object getValue(TransactionLocal local,
                Transaction tx)
get the transaction local value.

Parameters:
local - the transaction local
tx - the transcation
Returns:
the value

storeValue

void storeValue(TransactionLocal local,
                Transaction tx,
                Object value)
put the value in the transaction local

Parameters:
local - the transaction local
tx - the transcation
value - the value

containsValue

boolean containsValue(TransactionLocal local,
                      Transaction tx)
does Transaction contain object?

Parameters:
local - the transaction local
tx - the transcation
Returns:
true if it has the value

lock

void lock(TransactionLocal local,
          Transaction tx)
          throws InterruptedException
Lock the transaction local in the context of this transaction

Parameters:
local - the transaction local
tx - the transcation
Throws:
IllegalStateException - if the transaction is not active
InterruptedException - if the thread is interrupted

unlock

void unlock(TransactionLocal local,
            Transaction tx)
Unlock the transaction local in the context of this transaction

Parameters:
local - the transaction local
tx - the transcation

JBoss Integration 6.0 Parent 6.0.0.CR1

Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.