/** * If the application requires and if the coordination protocol supports it, * then this method can be used to execute a coordination protocol on the * currently enlisted participants at any time prior to the termination of * the coordination scope. * * This implementation only supports coordination at the end of the * activity. * * @param cs The completion status to use when determining how to * execute the protocol. * * @exception com.arjuna.mw.wsas.exceptions.WrongStateException * Thrown if the coordinator is in a state the does not allow * coordination to occur. * @exception com.arjuna.mw.wsas.exceptions.ProtocolViolationException * Thrown if the protocol is violated in some manner during * execution. * @exception com.arjuna.mw.wsas.exceptions.SystemException * Thrown if any other error occurs. * * @return The result of executing the protocol, or null. */ public Outcome coordinate (CompletionStatus cs) throws WrongStateException, ProtocolViolationException, SystemException { return _coordManager.coordinate(cs); }
/** * If the application requires and if the coordination protocol supports it, * then this method can be used to execute a coordination protocol on the * currently enlisted participants at any time prior to the termination of * the coordination scope. * * This implementation only supports coordination at the end of the * activity. * * @param cs The completion status to use when determining how to * execute the protocol. * * @exception com.arjuna.mw.wsas.exceptions.WrongStateException * Thrown if the coordinator is in a state the does not allow * coordination to occur. * @exception com.arjuna.mw.wsas.exceptions.ProtocolViolationException * Thrown if the protocol is violated in some manner during * execution. * @exception com.arjuna.mw.wsas.exceptions.SystemException * Thrown if any other error occurs. * * @return The result of executing the protocol, or null. */ public Outcome coordinate (CompletionStatus cs) throws WrongStateException, ProtocolViolationException, SystemException { return _coordManager.coordinate(cs); }