本文整理匯總了Java中com.arjuna.wst.FaultedException類的典型用法代碼示例。如果您正苦於以下問題:Java FaultedException類的具體用法?Java FaultedException怎麽用?Java FaultedException使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
FaultedException類屬於com.arjuna.wst包,在下文中一共展示了FaultedException類的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: cancel
import com.arjuna.wst.FaultedException; //導入依賴的package包/類
@Override
public void cancel() throws FaultedException, WrongStateException,
SystemException {
log.info("\n================================================================================\n"
+ "AirportOrderParticipant "
+ _fltid
+ " cancel"
+ "\n================================================================================");
}
示例2: compensate
import com.arjuna.wst.FaultedException; //導入依賴的package包/類
@Override
public void compensate() throws FaultedException, WrongStateException,
SystemException {
log.info("\n================================================================================\n"
+ "AirportOrderParticipant "
+ _fltid
+ " compensate"
+ "\n================================================================================");
}
示例3: compensate
import com.arjuna.wst.FaultedException; //導入依賴的package包/類
/**
* The transaction has cancelled. The participant previously informed the coordinator that it had finished work but could
* compensate later if required, and it is now requested to do so.
*
* @throws WrongStateException never in this implementation.
* @throws SystemException if unable to perform the compensating transaction.
*/
public void compensate() throws FaultedException, WrongStateException, SystemException {
System.out.println("[SERVICE] Participant.compensate");
// Compensate work done by the service
MockSetManager.rollback(value);
}
示例4: compensate
import com.arjuna.wst.FaultedException; //導入依賴的package包/類
/**
* The transaction has cancelled. The participant previously informed the coordinator that it had finished work but could
* compensate later if required, and it is now requested to do so.
*
* @throws WrongStateException never in this implementation.
* @throws SystemException if unable to perform the compensating transaction.
*/
public void compensate() throws FaultedException, WrongStateException, SystemException {
System.out.println("[SERVICE] Participant.compensate");
doCompensate();
removeParticipant(txID);
}