Package net.jini.core.transaction

Examples of net.jini.core.transaction.TimeoutExpiredException


  }
 
  if(txntr != null) {
    if(txntr.getState() == TransactionConstants.COMMITTED) {
      if(doExpiryCheck && !ensureCurrent(txntr)) {
        throw new TimeoutExpiredException("Cannot abort, transaction probably expired", true);
      } else {
        throw new CannotAbortException("Already committed");
      }
    }
  } else
View Full Code Here


    try {
   
      synchronized (txntr) {                     
        if(txntr.getExpiration() == 0) {
          throw new TimeoutExpiredException("Transaction already expired", true);
        }
        txntr.setExpiration(0)// Mark as done
      }

          abort(((Long)tid).longValue(), false);
View Full Code Here

* Note - SettlerTask will kick off another Commit/Abort task for the same txn
* which will try go through the VOTING->Commit states again.
*/
//TODO - Kill off existing task? Postpone SettlerTask?      
                settler.noteUnsettledTxn(str.id);
          throw new TimeoutExpiredException(
              "timeout expired", true);
      } else {
          result = (Integer) job.computeResult();
          committed = true;
      }
View Full Code Here

      try {
    synchronized (jobLock) {
              if (remainder<= 0 || !job.isCompleted(remainder)) {
            settler.noteUnsettledTxn(str.id);
            throw new TimeoutExpiredException(
                "timeout expired",false);
        } else {
                 result = (Integer) job.computeResult();
                 aborted = true;
        }
    }
      }  catch (ResultNotReadyException rnre) {
    //should not happen, so flag as error
      } catch (JobNotStartedException jnse) {
    //error
      } catch (JobException je) {
          settler.noteUnsettledTxn(str.id);
    throw new TimeoutExpiredException("timeout expired", false);
      }


      if (!aborted)
                throw new InternalManagerException("TxnManagerTransaction: " +
View Full Code Here

TOP

Related Classes of net.jini.core.transaction.TimeoutExpiredException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.