/** * Handle the status event. * @param status The status type. * @param map The addressing context. * @param arjunaContext The arjuna context. */ public void status(final StatusType status, final MAP map, final ArjunaContext arjunaContext) { // TODO -- check that the status is actually what we expect // revert to sending completed messages and reset the resend period to the initial period checkStatus = false; updateResendPeriod(false); }
/** * Handle the status event. * @param status The status type. * @param map The addressing context. * @param arjunaContext The arjuna context. */ public void status(final StatusType status, final MAP map, final ArjunaContext arjunaContext) { // TODO -- check that the status is actually what we expect // revert to sending completed messages and reset the resend period to the initial period checkStatus = false; updateResendPeriod(false); }
/** * Handle the status event. * @param status The status type. * @param map The addressing context. * @param arjunaContext The arjuna context. */ public void status(final StatusType status, final MAP map, final ArjunaContext arjunaContext) { // TODO -- check that the status is actually what we expect // revert to sending completed messages and reset the resend period to the initial period checkStatus = false; updateResendPeriod(false); }
/** * Send the completed message. * * @param timedOut true if this is in response to a comms timeout */ private void sendCompleted(boolean timedOut) { final MAP map = createContext() ; try { // if we are trying to reestablish the participant state then send getStatus otherwise send completed if (timedOut && checkStatus) { ParticipantCompletionCoordinatorClient.getClient().sendGetStatus(coordinator, map, instanceIdentifier); ; } else { ParticipantCompletionCoordinatorClient.getClient().sendCompleted(coordinator, map, instanceIdentifier) ; } } catch (final Throwable th) { if (WSTLogger.logger.isTraceEnabled()) { WSTLogger.logger.tracev("Unexpected exception while sending Completed", th) ; } } // if we timed out the increase the resend period otherwise make sure it is reset to the // initial resend period updateResendPeriod(timedOut); initiateTimer() ; }
/** * Send the completed message. * * @param timedOut true if this is in response to a comms timeout */ private void sendCompleted(boolean timedOut) { final MAP map = createContext() ; try { // if we are trying to reestablish the participant state then send getStatus otherwise send completed if (timedOut && checkStatus) { ParticipantCompletionCoordinatorClient.getClient().sendGetStatus(coordinator, map, instanceIdentifier); ; } else { ParticipantCompletionCoordinatorClient.getClient().sendCompleted(coordinator, map, instanceIdentifier) ; } } catch (final Throwable th) { if (WSTLogger.logger.isTraceEnabled()) { WSTLogger.logger.tracev("Unexpected exception while sending Completed", th) ; } } // if we timed out the increase the resend period otherwise make sure it is reset to the // initial resend period updateResendPeriod(timedOut); initiateTimer() ; }
/** * Send the completed message. * * @param timedOut true if this is in response to a comms timeout */ private void sendCompleted(boolean timedOut) { final MAP map = createContext() ; try { // if we are trying to reestablish the participant state then send getStatus otherwise send completed if (timedOut && checkStatus) { ParticipantCompletionCoordinatorClient.getClient().sendGetStatus(coordinator, map, instanceIdentifier); ; } else { ParticipantCompletionCoordinatorClient.getClient().sendCompleted(coordinator, map, instanceIdentifier) ; } } catch (final Throwable th) { if (WSTLogger.logger.isTraceEnabled()) { WSTLogger.logger.tracev("Unexpected exception while sending Completed", th) ; } } // if we timed out the increase the resend period otherwise make sure it is reset to the // initial resend period updateResendPeriod(timedOut); initiateTimer() ; }