gpt4 book ai didi

org.jboss.jbossts.xts.recovery.participant.at.XTSATRecoveryManager.setRecoveryManager()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-19 07:34:40 29 4
gpt4 key购买 nike

本文整理了Java中org.jboss.jbossts.xts.recovery.participant.at.XTSATRecoveryManager.setRecoveryManager()方法的一些代码示例,展示了XTSATRecoveryManager.setRecoveryManager()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XTSATRecoveryManager.setRecoveryManager()方法的具体详情如下:
包路径:org.jboss.jbossts.xts.recovery.participant.at.XTSATRecoveryManager
类名称:XTSATRecoveryManager
方法名:setRecoveryManager

XTSATRecoveryManager.setRecoveryManager介绍

[英]set the WS-AT recovery manager singleton instance
[中]设置WS-AT recovery manager单例实例

代码示例

代码示例来源:origin: org.jboss.jbossts.xts/jbossxts

/**
 * called by the service startup code before the recovery module is added to the recovery managers
 * module list
 */
public void install()
{
  // the manager is needed by both the participant or the coordinator recovery modules so whichever
  // one gets there first creates it. No synchronization is needed as modules are only ever
  // installed in a single thread
  XTSATRecoveryManager atRecoveryManager = XTSATRecoveryManager.getRecoveryManager();
  if (atRecoveryManager == null) {
    atRecoveryManager = new XTSATRecoveryManagerImple(_recoveryStore);
    XTSATRecoveryManager.setRecoveryManager(atRecoveryManager);
  }
  
  Implementations.install();
}

代码示例来源:origin: org.jboss.jbossts.xts/recovery

/**
 * called by the service startup code before the recovery module is added to the recovery managers
 * module list
 */
public void install()
{
  // the manager is needed by both the participant or the coordinator recovery modules so whichever
  // one gets there first creates it. No synchronization is needed as modules are only ever
  // installed in a single thread
  XTSATRecoveryManager atRecoveryManager = XTSATRecoveryManager.getRecoveryManager();
  if (atRecoveryManager == null) {
    atRecoveryManager = new XTSATRecoveryManagerImple(_recoveryStore);
    XTSATRecoveryManager.setRecoveryManager(atRecoveryManager);
  }
  
  Implementations.install();
}

代码示例来源:origin: org.jboss.jbossts/jbossxts

/**
 * called by the service startup code before the recovery module is added to the recovery managers
 * module list
 */
public void install()
{
  // the manager is needed by both the participant or the coordinator recovery modules so whichever
  // one gets there first creates it. No synchronization is needed as modules are only ever
  // installed in a single thread
  XTSATRecoveryManager atRecoveryManager = XTSATRecoveryManager.getRecoveryManager();
  if (atRecoveryManager == null) {
    atRecoveryManager = new XTSATRecoveryManagerImple(_recoveryStore);
    XTSATRecoveryManager.setRecoveryManager(atRecoveryManager);
  }
  
  Implementations.install();
}

代码示例来源:origin: org.jboss.jbossts.xts/recovery

/**
 * called by the service startup code before the recovery module is added to the recovery managers
 * module list
 */
public void install()
{
  // the manager is needed by both the participant or the coordinator recovery modules so whichever
  // one gets there first creates it. No synchronization is needed as modules are only ever
  // installed in a single thread
  XTSATRecoveryManager atRecoveryManager = XTSATRecoveryManager.getRecoveryManager();
  if (atRecoveryManager == null) {
    atRecoveryManager = new XTSATRecoveryManagerImple(_recoveryStore);
    XTSATRecoveryManager.setRecoveryManager(atRecoveryManager);
  }
  // Subordinate Coordinators register durable participants with their parent transaction so
  // we need to add an XTSATRecoveryModule which knows about the registered participants
  subordinateRecoveryModule = new XTSATSubordinateRecoveryModule();
  
  atRecoveryManager.registerRecoveryModule(subordinateRecoveryModule);
}

代码示例来源:origin: org.jboss.jbossts/jbossxts

/**
 * called by the service startup code before the recovery module is added to the recovery managers
 * module list
 */
public void install()
{
  // the manager is needed by both the participant or the coordinator recovery modules so whichever
  // one gets there first creates it. No synchronization is needed as modules are only ever
  // installed in a single thread
  XTSATRecoveryManager atRecoveryManager = XTSATRecoveryManager.getRecoveryManager();
  if (atRecoveryManager == null) {
    atRecoveryManager = new XTSATRecoveryManagerImple(_recoveryStore);
    XTSATRecoveryManager.setRecoveryManager(atRecoveryManager);
  }
  // Subordinate Coordinators register durable participants with their parent transaction so
  // we need to add an XTSATRecoveryModule which knows about the registered participants
  subordinateRecoveryModule = new XTSATSubordinateRecoveryModule();
  
  atRecoveryManager.registerRecoveryModule(subordinateRecoveryModule);
}

代码示例来源:origin: org.jboss.jbossts.xts/jbossxts

/**
 * called by the service startup code before the recovery module is added to the recovery managers
 * module list
 */
public void install()
{
  // the manager is needed by both the participant or the coordinator recovery modules so whichever
  // one gets there first creates it. No synchronization is needed as modules are only ever
  // installed in a single thread
  XTSATRecoveryManager atRecoveryManager = XTSATRecoveryManager.getRecoveryManager();
  if (atRecoveryManager == null) {
    atRecoveryManager = new XTSATRecoveryManagerImple(_recoveryStore);
    XTSATRecoveryManager.setRecoveryManager(atRecoveryManager);
  }
  // Subordinate Coordinators register durable participants with their parent transaction so
  // we need to add an XTSATRecoveryModule which knows about the registered participants
  subordinateRecoveryModule = new XTSATSubordinateRecoveryModule();
  
  atRecoveryManager.registerRecoveryModule(subordinateRecoveryModule);
}

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com