當前位置: 首頁>>代碼示例>>Java>>正文


Java FaultedException類代碼示例

本文整理匯總了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================================================================================");
}
 
開發者ID:jboss-switchyard,項目名稱:switchyard,代碼行數:10,代碼來源:OrderParticipant.java

示例2: compensate

import com.arjuna.wst.FaultedException; //導入依賴的package包/類
@Override
public void compensate() throws FaultedException, WrongStateException,
    SystemException {
    log.info("\n================================================================================\n"
        + "AirportOrderParticipant "
        + _fltid
        + " compensate"
        + "\n================================================================================");
}
 
開發者ID:jboss-switchyard,項目名稱:switchyard,代碼行數:10,代碼來源:OrderParticipant.java

示例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);
}
 
開發者ID:red-fox-mulder,項目名稱:eap-6.1-quickstarts,代碼行數:15,代碼來源:SetParticipantBA.java

示例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);
}
 
開發者ID:red-fox-mulder,項目名稱:eap-6.1-quickstarts,代碼行數:13,代碼來源:SetParticipantBA.java


注:本文中的com.arjuna.wst.FaultedException類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。