/** * See if there is participant Bean corresponding to the given record * @param rec the record for the target participant * @return the bean corresponding to the requested record */ public LogRecordWrapper getParticipant(AbstractRecord rec) { for (LogRecordWrapper w : participants) if (w.getRecord().equals(rec)) return w; return null; }
/** * See if there is participant Bean corresponding to the given record * @param rec the record for the target participant * @return the bean corresponding to the requested record */ public LogRecordWrapper getParticipant(AbstractRecord rec) { for (LogRecordWrapper w : participants) if (w.getRecord().equals(rec)) return w; return null; }
/** * See if there is participant Bean corresponding to the given record * @param rec the record for the target participant * @return the bean corresponding to the requested record */ public LogRecordWrapper getParticipant(AbstractRecord rec) { for (LogRecordWrapper w : participants) if (w.getRecord().equals(rec)) return w; return null; }
/** * See if there is participant Bean corresponding to the given record * @param rec the record for the target participant * @return the bean corresponding to the requested record */ public LogRecordWrapper getParticipant(AbstractRecord rec) { for (LogRecordWrapper w : participants) if (w.getRecord().equals(rec)) return w; return null; }
/** * See if there is participant Bean corresponding to the given record * @param rec the record for the target participant * @return the bean corresponding to the requested record */ public LogRecordWrapper getParticipant(AbstractRecord rec) { for (LogRecordWrapper w : participants) if (w.getRecord().equals(rec)) return w; return null; }
/** * See if there is participant Bean corresponding to the given record * @param rec the record for the target participant * @return the bean corresponding to the requested record */ public LogRecordWrapper getParticipant(AbstractRecord rec) { for (LogRecordWrapper w : participants) if (w.getRecord().equals(rec)) return w; return null; }
/** * See if there is participant Bean corresponding to the given record * @param rec the record for the target participant * @return the bean corresponding to the requested record */ public LogRecordWrapper getParticipant(AbstractRecord rec) { for (LogRecordWrapper w : participants) if (w.getRecord().equals(rec)) return w; return null; }
/** * See if there is participant Bean corresponding to the given record * @param rec the record for the target participant * @return the bean corresponding to the requested record */ public LogRecordWrapper getParticipant(AbstractRecord rec) { for (LogRecordWrapper w : participants) if (w.getRecord().equals(rec)) return w; return null; }
/** * See if there is participant Bean corresponding to the given record * @param rec the record for the target participant * @return the bean corresponding to the requested record */ public LogRecordWrapper getParticipant(AbstractRecord rec) { for (LogRecordWrapper w : participants) if (w.getRecord().equals(rec)) return w; return null; }
/** * See if there is participant Bean corresponding to the given record * @param rec the record for the target participant * @return the bean corresponding to the requested record */ public LogRecordWrapper getParticipant(AbstractRecord rec) { for (LogRecordWrapper w : participants) if (w.getRecord().equals(rec)) return w; return null; }
/** * Add a record to the atomic action. This function returns AR_ADDED if the * record is added. AR_REJECTED if the record cannot be added because the * action is past the prepare phase, and IGNORED otherwise. * * @return <code>AddOutcome</code> indicating outcome. */ public final synchronized int add (AbstractRecord A) { int result = AddOutcome.AR_REJECTED; criticalStart(); if ((actionStatus <= ActionStatus.ABORTING) && ((recordBeingHandled == null) || !(recordBeingHandled.equals(A)))) { if (pendingList == null) pendingList = new RecordList(); result = (pendingList.insert(A) ? AddOutcome.AR_ADDED : AddOutcome.AR_DUPLICATE); } criticalEnd(); return result; }
/** * Add a record to the atomic action. This function returns AR_ADDED if the * record is added. AR_REJECTED if the record cannot be added because the * action is past the prepare phase, and IGNORED otherwise. * * @return <code>AddOutcome</code> indicating outcome. */ public final synchronized int add (AbstractRecord A) { int result = AddOutcome.AR_REJECTED; criticalStart(); if ((actionStatus <= ActionStatus.ABORTING) && ((recordBeingHandled == null) || !(recordBeingHandled.equals(A)))) { if (pendingList == null) pendingList = new RecordList(); result = (pendingList.insert(A) ? AddOutcome.AR_ADDED : AddOutcome.AR_DUPLICATE); } criticalEnd(); return result; }
/** * Add a record to the atomic action. This function returns AR_ADDED if the * record is added. AR_REJECTED if the record cannot be added because the * action is past the prepare phase, and IGNORED otherwise. * * @return <code>AddOutcome</code> indicating outcome. */ public final synchronized int add (AbstractRecord A) { int result = AddOutcome.AR_REJECTED; criticalStart(); if ((actionStatus <= ActionStatus.ABORTING) && ((recordBeingHandled == null) || !(recordBeingHandled.equals(A)))) { if (pendingList == null) pendingList = new RecordList(); result = (pendingList.insert(A) ? AddOutcome.AR_ADDED : AddOutcome.AR_DUPLICATE); } criticalEnd(); return result; }
/** * Add a record to the atomic action. This function returns AR_ADDED if the * record is added. AR_REJECTED if the record cannot be added because the * action is past the prepare phase, and IGNORED otherwise. * * @return <code>AddOutcome</code> indicating outcome. */ public final synchronized int add (AbstractRecord A) { int result = AddOutcome.AR_REJECTED; criticalStart(); if ((actionStatus <= ActionStatus.ABORTING) && ((recordBeingHandled == null) || !(recordBeingHandled.equals(A)))) { if (pendingList == null) pendingList = new RecordList(); result = (pendingList.insert(A) ? AddOutcome.AR_ADDED : AddOutcome.AR_DUPLICATE); } criticalEnd(); return result; }
/** * Add a record to the atomic action. This function returns AR_ADDED if the * record is added. AR_REJECTED if the record cannot be added because the * action is past the prepare phase, and IGNORED otherwise. * * @return <code>AddOutcome</code> indicating outcome. */ public final synchronized int add (AbstractRecord A) { int result = AddOutcome.AR_REJECTED; criticalStart(); if ((actionStatus <= ActionStatus.ABORTING) && ((recordBeingHandled == null) || !(recordBeingHandled.equals(A)))) { if (pendingList == null) pendingList = new RecordList(); result = (pendingList.insert(A) ? AddOutcome.AR_ADDED : AddOutcome.AR_DUPLICATE); } criticalEnd(); return result; }
/** * Add a record to the atomic action. This function returns AR_ADDED if the * record is added. AR_REJECTED if the record cannot be added because the * action is past the prepare phase, and IGNORED otherwise. * * @return <code>AddOutcome</code> indicating outcome. */ public final synchronized int add (AbstractRecord A) { int result = AddOutcome.AR_REJECTED; criticalStart(); if ((actionStatus <= ActionStatus.ABORTING) && ((recordBeingHandled == null) || !(recordBeingHandled.equals(A)))) { if (pendingList == null) pendingList = new RecordList(); result = (pendingList.insert(A) ? AddOutcome.AR_ADDED : AddOutcome.AR_DUPLICATE); } criticalEnd(); return result; }
/** * Add a record to the atomic action. This function returns AR_ADDED if the * record is added. AR_REJECTED if the record cannot be added because the * action is past the prepare phase, and IGNORED otherwise. * * @return <code>AddOutcome</code> indicating outcome. */ public final synchronized int add (AbstractRecord A) { int result = AddOutcome.AR_REJECTED; criticalStart(); if ((actionStatus <= ActionStatus.ABORTING) && ((recordBeingHandled == null) || !(recordBeingHandled.equals(A)))) { if (pendingList == null) pendingList = new RecordList(); result = (pendingList.insert(A) ? AddOutcome.AR_ADDED : AddOutcome.AR_DUPLICATE); } criticalEnd(); return result; }
/** * Add a record to the atomic action. This function returns AR_ADDED if the * record is added. AR_REJECTED if the record cannot be added because the * action is past the prepare phase, and IGNORED otherwise. * * @return <code>AddOutcome</code> indicating outcome. */ public final synchronized int add (AbstractRecord A) { int result = AddOutcome.AR_REJECTED; criticalStart(); if ((actionStatus <= ActionStatus.ABORTING) && ((recordBeingHandled == null) || !(recordBeingHandled.equals(A)))) { if (pendingList == null) pendingList = new RecordList(); result = (pendingList.insert(A) ? AddOutcome.AR_ADDED : AddOutcome.AR_DUPLICATE); } criticalEnd(); return result; }
/** * Add a record to the atomic action. This function returns AR_ADDED if the * record is added. AR_REJECTED if the record cannot be added because the * action is past the prepare phase, and IGNORED otherwise. * * @return <code>AddOutcome</code> indicating outcome. */ public final synchronized int add (AbstractRecord A) { int result = AddOutcome.AR_REJECTED; criticalStart(); if ((actionStatus <= ActionStatus.ABORTING) && ((recordBeingHandled == null) || !(recordBeingHandled.equals(A)))) { if (pendingList == null) pendingList = new RecordList(); result = (pendingList.insert(A) ? AddOutcome.AR_ADDED : AddOutcome.AR_DUPLICATE); } criticalEnd(); return result; }
/** * Add a record to the atomic action. This function returns AR_ADDED if the * record is added. AR_REJECTED if the record cannot be added because the * action is past the prepare phase, and IGNORED otherwise. * * @return <code>AddOutcome</code> indicating outcome. */ public final synchronized int add (AbstractRecord A) { int result = AddOutcome.AR_REJECTED; criticalStart(); if ((actionStatus <= ActionStatus.ABORTING) && ((recordBeingHandled == null) || !(recordBeingHandled.equals(A)))) { if (pendingList == null) pendingList = new RecordList(); result = (pendingList.insert(A) ? AddOutcome.AR_ADDED : AddOutcome.AR_DUPLICATE); } criticalEnd(); return result; }