/** * Send the completed message */ private void sendCompleted() { sendCompleted(false); }
/** * Send the completed message */ private void sendCompleted() { sendCompleted(false); }
/** * Send the completed message */ private void sendCompleted() { sendCompleted(false); }
/** * Handle the comms timeout event. * * Completed -> Completed (resend Completed) */ private void commsTimeout(TimerTask caller) { final State current ; synchronized(this) { if (timerTask != caller) { // the timer was cancelled but it went off before it could be cancelled return; } current = state ; } if (current == State.STATE_COMPLETED) { sendCompleted(true) ; } }
/** * Handle the recovery event. * * Active -> Active (invalid state) * Canceling -> Canceling (invalid state) * Completed -> Completed (resend completed) * Closing -> Closing (invalid state) * Compensating -> Compensating (invalid state) * Failing-Active -> Failing-Active (invalid state) * Failing-Canceling -> Failing-Canceling (invalid state) * Failing-Compensating -> Failing-Compensating (invalid state) * NotCompleting -> NotCompleting (invalid state) * Exiting -> Exiting (invalid state) * Ended -> Ended (invalid state) */ public void recovery() { final State current ; synchronized(this) { current = state ; } if (current == State.STATE_COMPLETED) { sendCompleted(true); } }
/** * Handle the recovery event. * * Active -> Active (invalid state) * Canceling -> Canceling (invalid state) * Completed -> Completed (resend completed) * Closing -> Closing (invalid state) * Compensating -> Compensating (invalid state) * Failing-Active -> Failing-Active (invalid state) * Failing-Canceling -> Failing-Canceling (invalid state) * Failing-Compensating -> Failing-Compensating (invalid state) * NotCompleting -> NotCompleting (invalid state) * Exiting -> Exiting (invalid state) * Ended -> Ended (invalid state) */ public void recovery() { final State current ; synchronized(this) { current = state ; } if (current == State.STATE_COMPLETED) { sendCompleted(true); } }
/** * Handle the recovery event. * * Active -> Active (invalid state) * Canceling -> Canceling (invalid state) * Completed -> Completed (resend completed) * Closing -> Closing (invalid state) * Compensating -> Compensating (invalid state) * Failing-Active -> Failing-Active (invalid state) * Failing-Canceling -> Failing-Canceling (invalid state) * Failing-Compensating -> Failing-Compensating (invalid state) * NotCompleting -> NotCompleting (invalid state) * Exiting -> Exiting (invalid state) * Ended -> Ended (invalid state) */ public void recovery() { final State current ; synchronized(this) { current = state ; } if (current == State.STATE_COMPLETED) { sendCompleted(true); } }
/** * Handle the comms timeout event. * * Completed -> Completed (resend Completed) */ private void commsTimeout(TimerTask caller) { final State current ; synchronized(this) { if (!timerTask.equals(caller)) { // the timer was cancelled but it went off before it could be cancelled return; } current = state ; } if (current == State.STATE_COMPLETED) { sendCompleted(true) ; } }
/** * Handle the comms timeout event. * * Completed -> Completed (resend Completed) */ private void commsTimeout(TimerTask caller) { final State current ; synchronized(this) { if (!timerTask.equals(caller)) { // the timer was cancelled but it went off before it could be cancelled return; } current = state ; } if (current == State.STATE_COMPLETED) { sendCompleted(true) ; } }