/** * initiate synchronization beforeCompletion processing for the bridged-to transaction * * @return true if the beforeCompletion succeeds otherwise false. */ public boolean prepareVolatile() { return coordinator.prepareVolatile(); }
/** * This will be called when the parent coordinator is preparing its volatile participants and should ensure * that the interposed cooordinator does the same. * * @return the Vote returned by the subordinate coordinator. * @throws WrongStateException if the subordinate coordinator does the same * @throws SystemException if the subordinate coordinator does the same */ public Vote prepare() throws WrongStateException, SystemException { if (coordinator.prepareVolatile()) { return new Prepared(); } else { return new Aborted(); } }
/** * This will be called when the parent coordinator is preparing its volatile participants and should ensure * that the interposed cooordinator does the same. * * @return the Vote returned by the subordinate coordinator. * @throws WrongStateException if the subordinate coordinator does the same * @throws SystemException if the subordinate coordinator does the same */ public Vote prepare() throws WrongStateException, SystemException { if (coordinator.prepareVolatile()) { return new Prepared(); } else { return new Aborted(); } }
/** * This will be called when the parent coordinator is preparing its volatile participants and should ensure * that the interposed cooordinator does the same. * * @return the Vote returned by the subordinate coordinator. * @throws WrongStateException if the subordinate coordinator does the same * @throws SystemException if the subordinate coordinator does the same */ public Vote prepare() throws WrongStateException, SystemException { if (coordinator.prepareVolatile()) { return new Prepared(); } else { return new Aborted(); } }