/** * Handle the readOnly event. * @param readOnly The readOnly notification. * @param map The addressing context. * @param arjunaContext The arjuna context. * * None -> None (ignore) * Active -> Active (forget) * Preparing -> Preparing (forget) * PreparedSuccess -> PreparedSuccess (invalid state) * Committing -> Committing (invalid state) * Aborting -> Aborting (forget) */ public synchronized void readOnly(final Notification readOnly, final MAP map, final ArjunaContext arjunaContext) { final State current = state ; if ((current == State.STATE_ACTIVE) || (current == State.STATE_PREPARING) || (current == State.STATE_ABORTING)) { if (current != State.STATE_ABORTING) { this.readOnly = true ; } forget() ; } }
/** * Handle the readOnly event. * @param readOnly The readOnly notification. * @param map The addressing context. * @param arjunaContext The arjuna context. * * None -> None (ignore) * Active -> Active (forget) * Preparing -> Preparing (forget) * PreparedSuccess -> PreparedSuccess (invalid state) * Committing -> Committing (invalid state) * Aborting -> Aborting (forget) */ public synchronized void readOnly(final Notification readOnly, final MAP map, final ArjunaContext arjunaContext) { final State current = state ; if ((current == State.STATE_ACTIVE) || (current == State.STATE_PREPARING) || (current == State.STATE_ABORTING)) { if (current != State.STATE_ABORTING) { this.readOnly = true ; } forget() ; } }
/** * Handle the readOnly event. * @param readOnly The readOnly notification. * @param map The addressing context. * @param arjunaContext The arjuna context. * * None -> None (ignore) * Active -> Active (forget) * Preparing -> Preparing (forget) * PreparedSuccess -> PreparedSuccess (invalid state) * Committing -> Committing (invalid state) * Aborting -> Aborting (forget) */ public synchronized void readOnly(final Notification readOnly, final MAP map, final ArjunaContext arjunaContext) { final State current = state ; if ((current == State.STATE_ACTIVE) || (current == State.STATE_PREPARING) || (current == State.STATE_ABORTING)) { if (current != State.STATE_ABORTING) { this.readOnly = true ; } forget() ; } }
/** * Handle the committed event. * @param committed The committed notification. * @param map The addressing context. * @param arjunaContext The arjuna context. * * None -> None (ignore) * Active -> Aborting (invalid state) * Preparing -> Aborting (invalid state) * PreparedSuccess -> PreparedSuccess (invalid state) * Committing -> Committing (forget) * Aborting -> Aborting (invalid state) */ public synchronized void committed(final Notification committed, final MAP map, final ArjunaContext arjunaContext) { final State current = state ; if (current == State.STATE_ACTIVE) { changeState(State.STATE_ABORTING) ; } else if ((current == State.STATE_PREPARING) || (current == State.STATE_COMMITTING)) { forget() ; } }
/** * Handle the aborted event. * @param aborted The aborted notification. * @param map The addressing context. * @param arjunaContext The arjuna context. * * None -> None (ignore) * Active -> Aborting (forget) * Preparing -> Aborting (forget) * PreparedSuccess -> PreparedSuccess (invalid state) * Committing -> Committing (invalid state) * Aborting -> Aborting (forget) */ public synchronized void aborted(final Notification aborted, final MAP map, final ArjunaContext arjunaContext) { final State current = state ; if (current == State.STATE_ACTIVE) { changeState(State.STATE_ABORTING) ; } else if ((current == State.STATE_PREPARING) || (current == State.STATE_ABORTING)) { forget() ; } }
/** * Handle the aborted event. * @param aborted The aborted notification. * @param map The addressing context. * @param arjunaContext The arjuna context. * * None -> None (ignore) * Active -> Aborting (forget) * Preparing -> Aborting (forget) * PreparedSuccess -> PreparedSuccess (invalid state) * Committing -> Committing (invalid state) * Aborting -> Aborting (forget) */ public synchronized void aborted(final Notification aborted, final MAP map, final ArjunaContext arjunaContext) { final State current = state ; if (current == State.STATE_ACTIVE) { changeState(State.STATE_ABORTING) ; } else if ((current == State.STATE_PREPARING) || (current == State.STATE_ABORTING)) { forget() ; } }
/** * Handle the committed event. * @param committed The committed notification. * @param map The addressing context. * @param arjunaContext The arjuna context. * * None -> None (ignore) * Active -> Aborting (invalid state) * Preparing -> Aborting (invalid state) * PreparedSuccess -> PreparedSuccess (invalid state) * Committing -> Committing (forget) * Aborting -> Aborting (invalid state) */ public synchronized void committed(final Notification committed, final MAP map, final ArjunaContext arjunaContext) { final State current = state ; if (current == State.STATE_ACTIVE) { changeState(State.STATE_ABORTING) ; } else if ((current == State.STATE_PREPARING) || (current == State.STATE_COMMITTING)) { forget() ; } }
/** * Handle the committed event. * @param committed The committed notification. * @param map The addressing context. * @param arjunaContext The arjuna context. * * None -> None (ignore) * Active -> Aborting (invalid state) * Preparing -> Aborting (invalid state) * PreparedSuccess -> PreparedSuccess (invalid state) * Committing -> Committing (forget) * Aborting -> Aborting (invalid state) */ public synchronized void committed(final Notification committed, final MAP map, final ArjunaContext arjunaContext) { final State current = state ; if (current == State.STATE_ACTIVE) { changeState(State.STATE_ABORTING) ; } else if ((current == State.STATE_PREPARING) || (current == State.STATE_COMMITTING)) { forget() ; } }
/** * Handle the aborted event. * @param aborted The aborted notification. * @param map The addressing context. * @param arjunaContext The arjuna context. * * None -> None (ignore) * Active -> Aborting (forget) * Preparing -> Aborting (forget) * PreparedSuccess -> PreparedSuccess (invalid state) * Committing -> Committing (invalid state) * Aborting -> Aborting (forget) */ public synchronized void aborted(final Notification aborted, final MAP map, final ArjunaContext arjunaContext) { final State current = state ; if (current == State.STATE_ACTIVE) { changeState(State.STATE_ABORTING) ; } else if ((current == State.STATE_PREPARING) || (current == State.STATE_ABORTING)) { forget() ; } }
sendUnknownTransaction(map, arjunaContext) ; forget();
sendUnknownTransaction(map, arjunaContext) ; forget();
sendUnknownTransaction(map, arjunaContext) ; forget();