/** * Start the transaction running. * * If the transaction is already running or has terminated, then an error * code will be returned. No timeout is associated with the transaction. * * @return <code>ActionStatus</code> indicating outcome. */ public int begin () { return begin(AtomicAction.NO_TIMEOUT); }
/** * Start the transaction running. * * If the transaction is already running or has terminated, then an error * code will be returned. No timeout is associated with the transaction. * * @return <code>ActionStatus</code> indicating outcome. */ public int begin () { return begin(AtomicAction.NO_TIMEOUT); }
/** * Start the transaction running. * * If the transaction is already running or has terminated, then an error * code will be returned. No timeout is associated with the transaction. * * @return <code>ActionStatus</code> indicating outcome. */ public int begin () { return begin(AtomicAction.NO_TIMEOUT); }
/** * Start the transaction running. * * If the transaction is already running or has terminated, then an error * code will be returned. No timeout is associated with the transaction. * * @return <code>ActionStatus</code> indicating outcome. */ public int begin () { return begin(AtomicAction.NO_TIMEOUT); }
/** * Start the transaction running. * * If the transaction is already running or has terminated, then an error * code will be returned. No timeout is associated with the transaction. * * @return <code>ActionStatus</code> indicating outcome. */ public int begin () { return begin(AtomicAction.NO_TIMEOUT); }
/** * Start the transaction running. * * If the transaction is already running or has terminated, then an error * code will be returned. No timeout is associated with the transaction. * * @return <code>ActionStatus</code> indicating outcome. */ public int begin () { return begin(AtomicAction.NO_TIMEOUT); }
/** * Start the transaction running. * * If the transaction is already running or has terminated, then an error * code will be returned. No timeout is associated with the transaction. * * @return <code>ActionStatus</code> indicating outcome. */ public int begin () { return begin(AtomicAction.NO_TIMEOUT); }
/** * Start the transaction running. * * If the transaction is already running or has terminated, then an error * code will be returned. No timeout is associated with the transaction. * * @return <code>ActionStatus</code> indicating outcome. */ public int begin () { return begin(AtomicAction.NO_TIMEOUT); }
/** * Start the transaction running. * * If the transaction is already running or has terminated, then an error * code will be returned. No timeout is associated with the transaction. * * @return <code>ActionStatus</code> indicating outcome. */ public int begin () { return begin(AtomicAction.NO_TIMEOUT); }
/** * Start the transaction running. * * If the transaction is already running or has terminated, then an error * code will be returned. No timeout is associated with the transaction. * * @return <code>ActionStatus</code> indicating outcome. */ public int begin () { return begin(AtomicAction.NO_TIMEOUT); }
/** * Start the transaction running. * * If the transaction is already running or has terminated, then an error * code will be returned. No timeout is associated with the transaction. * * @return <code>ActionStatus</code> indicating outcome. */ public int begin () { return begin(AtomicAction.NO_TIMEOUT); }
@Override public Integer call () throws Exception { return new Integer(_theTransaction.begin(_timeout)); }
/** * Create a new transaction with the specified timeout. */ public TransactionImple(int timeout) { _theTransaction = new AtomicAction(); _theTransaction.begin(timeout); _resources = new Hashtable(); _duplicateResources = new Hashtable(); _suspendCount = 0; _xaTransactionTimeoutEnabled = getXATransactionTimeoutEnabled(); _txLocalResources = Collections.synchronizedMap(new HashMap()); }
/** * Create a new transaction with the specified timeout. */ public TransactionImple(int timeout) { _theTransaction = new AtomicAction(); _theTransaction.begin(timeout); _resources = new Hashtable(); _duplicateResources = new Hashtable(); _suspendCount = 0; _xaTransactionTimeoutEnabled = getXATransactionTimeoutEnabled(); _txLocalResources = Collections.synchronizedMap(new HashMap()); }
/** * Create a new transaction with the specified timeout. */ public TransactionImple(int timeout) { _theTransaction = new AtomicAction(); _theTransaction.begin(timeout); _resources = new Hashtable(); _duplicateResources = new Hashtable(); _suspendCount = 0; _xaTransactionTimeoutEnabled = getXATransactionTimeoutEnabled(); _txLocalResources = Collections.synchronizedMap(new HashMap()); }
/** * Create a new transaction with the specified timeout. */ public TransactionImple(int timeout) { _theTransaction = new AtomicAction(); _theTransaction.begin(timeout); _resources = new Hashtable(); _duplicateResources = new Hashtable(); _suspendCount = 0; _xaTransactionTimeoutEnabled = getXATransactionTimeoutEnabled(); _txLocalResources = Collections.synchronizedMap(new HashMap()); }
/** * Create a new transaction with the specified timeout. */ public TransactionImple(int timeout) { _theTransaction = new AtomicAction(); _theTransaction.begin(timeout); _resources = new Hashtable(); _duplicateResources = new Hashtable(); _suspendCount = 0; _xaTransactionTimeoutEnabled = getXATransactionTimeoutEnabled(); _txLocalResources = Collections.synchronizedMap(new HashMap()); }
/** * Create a new transaction with the specified timeout. */ public TransactionImple(int timeout) { _theTransaction = new AtomicAction(); _theTransaction.begin(timeout); _resources = new Hashtable(); _duplicateResources = new Hashtable(); _suspendCount = 0; _xaTransactionTimeoutEnabled = getXATransactionTimeoutEnabled(); _txLocalResources = Collections.synchronizedMap(new HashMap()); }
static public int value () { AtomicAction A = new AtomicAction(); int result = -1; A.begin(); transactionalObject.increment(); result = transactionalObject.value(); A.commit(); return result; }
public STMVerticle () { transactionalObject = theContainer.create(new SampleLockable(10)); System.out.println("Object name: "+theContainer.getIdentifier(transactionalObject)); AtomicAction A = new AtomicAction(); /* * Flush state to disk (for this example). */ A.begin(); transactionalObject.increment(); A.commit(); }