/** * {@inheritDoc} * The assumption here is two transactions are still equal if they have the same transaction manager * and the same transaction id, regardless of whether one is or is not nested. */ public boolean equals(final Object other) { return super.equals(other); } }
public void abort() throws UnknownTransactionException, CannotAbortException, RemoteException { mgr.abort(id); }
public NestableTransaction.Created create(long leaseTime) throws UnknownTransactionException, CannotJoinException, LeaseDeniedException, RemoteException { return create((NestableTransactionManager)mgr, leaseTime); }
@Override public String toString() { return "DistributedTransactionMetaData [getTransactionUniqueId()=" + getContextId() + ", getParticipantId()=" + getParticipantId() + ", getParticipantsCount()=" + getTransactionParticipantsCount() + "]"; }
/** * Creates an instance of this class for cloning using the {@link ServerTransaction#createCopy()} * method. */ protected ServerTransaction createInstance() { return new ServerTransaction(); }
@Override public void commit() throws UnknownTransactionException, CannotCommitException, RemoteException { try { mgr.commit(id, DEFAULT_COMMIT_ABORT_TIMEOUT); } catch (TimeoutExpiredException e) { // TOLOG LB: } }
@Override public void abort() throws UnknownTransactionException, CannotAbortException, RemoteException { try { mgr.abort(id, DEFAULT_COMMIT_ABORT_TIMEOUT); } catch (TimeoutExpiredException e) { // TOLOG LB: } }
@Override public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { deserialize(in); }
public void commit() throws UnknownTransactionException, CannotCommitException, RemoteException { mgr.commit(id); }
@Override public ServerTransaction createCopy() { final GSServerTransaction copy = (GSServerTransaction) super.createCopy(); copy._id = this._id; return copy; }
@Override public void writeExternal(ObjectOutput out) throws IOException { serialize(out); }
/** * {@inheritDoc} * The assumption here is two transactions are still equal if they have the same transaction manager * and the same transaction id, regardless of whether one is or is not nested. */ public int hashCode() { return super.hashCode(); }
@Override public void commit(long waitFor) throws UnknownTransactionException, CannotCommitException, TimeoutExpiredException, RemoteException { mgr.commit(id, waitFor); }
@Override public void abort(long waitFor) throws UnknownTransactionException, CannotAbortException, TimeoutExpiredException, RemoteException { mgr.abort(id, waitFor); }
public void abort(long waitFor) throws UnknownTransactionException, CannotAbortException, TimeoutExpiredException, RemoteException { mgr.abort(id, waitFor); }
@Override public void readFromSwap(ObjectInput in) throws IOException, ClassNotFoundException { deserialize(in); }
public void commit(long waitFor) throws UnknownTransactionException, CannotCommitException, TimeoutExpiredException, RemoteException { mgr.commit(id, waitFor); }