gpt4 book ai didi

bitronix.tm.internal.XAResourceHolderState.end()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-25 18:13:05 36 4
gpt4 key购买 nike

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

XAResourceHolderState.end介绍

暂无

代码示例

代码示例来源:origin: com.github.marcus-nl.btm/btm

/**
 * Suspend all enlisted resources from the current transaction context.
 * @throws XAException if the resource threw an exception during suspend.
 */
public void suspend() throws XAException {
  for (XAResourceHolderState xaResourceHolderState : resources) {
    if (!xaResourceHolderState.isEnded()) {
      if (log.isDebugEnabled()) { log.debug("suspending " + xaResourceHolderState); }
      xaResourceHolderState.end(XAResource.TMSUCCESS);
    }
  } // while
}

代码示例来源:origin: org.codehaus.btm/btm

/**
 * Suspend all enlisted resources from the current transaction context.
 * @throws XAException if the resource threw an exception during suspend.
 */
public void suspend() throws XAException {
  for (XAResourceHolderState xaResourceHolderState : resources) {
    if (!xaResourceHolderState.isEnded()) {
      if (log.isDebugEnabled()) log.debug("suspending " + xaResourceHolderState);
      xaResourceHolderState.end(XAResource.TMSUCCESS);
    }
  } // while
}

代码示例来源:origin: bitronix/btm

/**
 * Suspend all enlisted resources from the current transaction context.
 * @throws XAException if the resource threw an exception during suspend.
 */
public void suspend() throws XAException {
  for (XAResourceHolderState xaResourceHolderState : resources) {
    if (!xaResourceHolderState.isEnded()) {
      if (log.isDebugEnabled()) { log.debug("suspending " + xaResourceHolderState); }
      xaResourceHolderState.end(XAResource.TMSUCCESS);
    }
  } // while
}

代码示例来源:origin: org.mule.btm/mule-btm

/**
 * Suspend all enlisted resources from the current transaction context.
 * @throws XAException if the resource threw an exception during suspend.
 */
public void suspend() throws XAException {
  for (XAResourceHolderState xaResourceHolderState : resources) {
    if (!xaResourceHolderState.isEnded()) {
      if (log.isDebugEnabled()) log.debug("suspending " + xaResourceHolderState);
      xaResourceHolderState.end(XAResource.TMSUCCESS);
    }
  } // while
}

代码示例来源:origin: org.codehaus.btm/btm

/**
 * Delist the specified {@link XAResourceHolderState}. A reference to the resource is kept anyway.
 * @param xaResourceHolderState the {@link XAResourceHolderState} to be delisted.
 * @param flag the delistment flag.
 * @return true if the resource could be delisted, false otherwise.
 * @throws XAException if the resource threw an exception during delistment.
 * @throws BitronixSystemException if an internal error occured.
 */
public boolean delist(XAResourceHolderState xaResourceHolderState, int flag) throws XAException, BitronixSystemException {
  if (findXAResourceHolderState(xaResourceHolderState.getXAResource()) != null) {
    if (log.isDebugEnabled()) log.debug("delisting resource " + xaResourceHolderState);
    xaResourceHolderState.end(flag);
    return true;
  }
  log.warn("trying to delist resource that has not been previously enlisted: " + xaResourceHolderState);
  return false;
}

代码示例来源:origin: com.github.marcus-nl.btm/btm

/**
 * Delist the specified {@link XAResourceHolderState}. A reference to the resource is kept anyway.
 * @param xaResourceHolderState the {@link XAResourceHolderState} to be delisted.
 * @param flag the delistment flag.
 * @return true if the resource could be delisted, false otherwise.
 * @throws XAException if the resource threw an exception during delistment.
 * @throws BitronixSystemException if an internal error occured.
 */
public boolean delist(XAResourceHolderState xaResourceHolderState, int flag) throws XAException, BitronixSystemException {
  if (findXAResourceHolderState(xaResourceHolderState.getXAResource()) != null) {
    if (log.isDebugEnabled()) { log.debug("delisting resource " + xaResourceHolderState); }
    xaResourceHolderState.end(flag);
    return true;
  }
  log.warn("trying to delist resource that has not been previously enlisted: " + xaResourceHolderState);
  return false;
}

代码示例来源:origin: bitronix/btm

/**
 * Delist the specified {@link XAResourceHolderState}. A reference to the resource is kept anyway.
 * @param xaResourceHolderState the {@link XAResourceHolderState} to be delisted.
 * @param flag the delistment flag.
 * @return true if the resource could be delisted, false otherwise.
 * @throws XAException if the resource threw an exception during delistment.
 * @throws BitronixSystemException if an internal error occured.
 */
public boolean delist(XAResourceHolderState xaResourceHolderState, int flag) throws XAException, BitronixSystemException {
  if (findXAResourceHolderState(xaResourceHolderState.getXAResource()) != null) {
    if (log.isDebugEnabled()) { log.debug("delisting resource " + xaResourceHolderState); }
    xaResourceHolderState.end(flag);
    return true;
  }
  log.warn("trying to delist resource that has not been previously enlisted: " + xaResourceHolderState);
  return false;
}

代码示例来源:origin: org.mule.btm/mule-btm

/**
 * Delist the specified {@link XAResourceHolderState}. A reference to the resource is kept anyway.
 * @param xaResourceHolderState the {@link XAResourceHolderState} to be delisted.
 * @param flag the delistment flag.
 * @return true if the resource could be delisted, false otherwise.
 * @throws XAException if the resource threw an exception during delistment.
 * @throws BitronixSystemException if an internal error occured.
 */
public boolean delist(XAResourceHolderState xaResourceHolderState, int flag) throws XAException, BitronixSystemException {
  if (findXAResourceHolderState(xaResourceHolderState.getXAResource()) != null) {
    if (log.isDebugEnabled()) log.debug("delisting resource " + xaResourceHolderState);
    xaResourceHolderState.end(flag);
    return true;
  }
  log.warn("trying to delist resource that has not been previously enlisted: " + xaResourceHolderState);
  return false;
}

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