com.arjuna.ats.txoj.Lock.getCurrentOwner()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(11.7k)|赞(0)|评价(0)|浏览(212)

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

Lock.getCurrentOwner介绍

暂无

代码示例

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

protected final boolean isAncestorOf (Lock heldLock)
{
  if (txojLogger.logger.isTraceEnabled()) {
    txojLogger.logger.trace("LockManager::isAncestorOf(" + heldLock.getCurrentOwner()
        + ")");
  }
  BasicAction action = BasicAction.Current();
  if (action == null)
    return false; /* no action no ancestry! */
  return action.isAncestor(heldLock.getCurrentOwner());
}

代码示例来源:origin: jbosstm/narayana

protected final boolean isAncestorOf (Lock heldLock)
{
  if (txojLogger.logger.isTraceEnabled()) {
    txojLogger.logger.trace("LockManager::isAncestorOf(" + heldLock.getCurrentOwner()
        + ")");
  }
  BasicAction action = BasicAction.Current();
  if (action == null)
    return false; /* no action no ancestry! */
  return action.isAncestor(heldLock.getCurrentOwner());
}

代码示例来源:origin: org.jboss.narayana.jts/narayana-jts-idlj

protected final boolean isAncestorOf (Lock heldLock)
{
  if (txojLogger.logger.isTraceEnabled()) {
    txojLogger.logger.trace("LockManager::isAncestorOf(" + heldLock.getCurrentOwner()
        + ")");
  }
  BasicAction action = BasicAction.Current();
  if (action == null)
    return false; /* no action no ancestry! */
  return action.isAncestor(heldLock.getCurrentOwner());
}

代码示例来源:origin: org.jboss.narayana.arjunacore/arjunacore

protected final boolean isAncestorOf (Lock heldLock)
{
  if (txojLogger.logger.isTraceEnabled()) {
    txojLogger.logger.trace("LockManager::isAncestorOf(" + heldLock.getCurrentOwner()
        + ")");
  }
  BasicAction action = BasicAction.Current();
  if (action == null)
    return false; /* no action no ancestry! */
  return action.isAncestor(heldLock.getCurrentOwner());
}

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

private final boolean isAncestorOf (Lock heldLock)
{
  if (txojLogger.logger.isTraceEnabled()) {
    txojLogger.logger.trace("LockManager::isAncestorOf(" + heldLock.getCurrentOwner()
        + ")");
  }
  BasicAction action = BasicAction.Current();
  if (action == null)
    return false; /* no action no ancestry! */
  return action.isAncestor(heldLock.getCurrentOwner());
}

代码示例来源:origin: jbosstm/narayana

protected final boolean isAncestorOf (Lock heldLock)
{
  if (txojLogger.logger.isTraceEnabled()) {
    txojLogger.logger.trace("LockManager::isAncestorOf(" + heldLock.getCurrentOwner()
        + ")");
  }
  BasicAction action = BasicAction.Current();
  if (action == null)
    return false; /* no action no ancestry! */
  return action.isAncestor(heldLock.getCurrentOwner());
}

代码示例来源:origin: org.jboss.jbossts.jta/narayana-jta

protected final boolean isAncestorOf (Lock heldLock)
{
  if (txojLogger.logger.isTraceEnabled()) {
    txojLogger.logger.trace("LockManager::isAncestorOf(" + heldLock.getCurrentOwner()
        + ")");
  }
  BasicAction action = BasicAction.Current();
  if (action == null)
    return false; /* no action no ancestry! */
  return action.isAncestor(heldLock.getCurrentOwner());
}

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

protected final boolean isAncestorOf (Lock heldLock)
{
  if (txojLogger.logger.isTraceEnabled()) {
    txojLogger.logger.trace("LockManager::isAncestorOf(" + heldLock.getCurrentOwner()
        + ")");
  }
  BasicAction action = BasicAction.Current();
  if (action == null)
    return false; /* no action no ancestry! */
  return action.isAncestor(heldLock.getCurrentOwner());
}

代码示例来源:origin: jbosstm/narayana

protected final boolean isAncestorOf (Lock heldLock)
{
  if (txojLogger.logger.isTraceEnabled()) {
    txojLogger.logger.trace("LockManager::isAncestorOf(" + heldLock.getCurrentOwner()
        + ")");
  }
  BasicAction action = BasicAction.Current();
  if (action == null)
    return false; /* no action no ancestry! */
  return action.isAncestor(heldLock.getCurrentOwner());
}

代码示例来源:origin: org.jboss.jbossts.jta/narayana-jta

/**
 * Implementation of Lock conflict check. Returns TRUE if there is conflict
 * FALSE otherwise. Does not take account of relationship in the atomic
 * action hierarchy since this is a function of LockManager.
 * 
 * @return <code>true</code> if this lock conflicts with the parameter,
 *         <code>false</code> otherwise.
 */
public boolean conflictsWith (Lock otherLock)
{
  if (txojLogger.logger.isTraceEnabled()) {
    txojLogger.logger.trace("Lock::conflictsWith(" + otherLock + ")\n" + "\tLock 1:\n"
        + this + "\n" + "\tLock 2:\n" + otherLock);
  }
  if (!(getCurrentOwner().equals(otherLock.getCurrentOwner())))
  {
    switch (lMode)
    {
    case LockMode.WRITE:
      return true; /* WRITE conflicts always */
    case LockMode.READ:
      if (otherLock.getLockMode() != LockMode.READ)
        return true;
      break;
    }
  }
  return false; /* no conflict between these locks */
}

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

/**
 * Implementation of Lock conflict check. Returns TRUE if there is conflict
 * FALSE otherwise. Does not take account of relationship in the atomic
 * action hierarchy since this is a function of LockManager.
 * 
 * @return <code>true</code> if this lock conflicts with the parameter,
 *         <code>false</code> otherwise.
 */
public boolean conflictsWith (Lock otherLock)
{
  if (txojLogger.logger.isTraceEnabled()) {
    txojLogger.logger.trace("Lock::conflictsWith(" + otherLock + ")\n" + "\tLock 1:\n"
        + this + "\n" + "\tLock 2:\n" + otherLock);
  }
  if (!(getCurrentOwner().equals(otherLock.getCurrentOwner())))
  {
    switch (lMode)
    {
    case LockMode.WRITE:
      return true; /* WRITE conflicts always */
    case LockMode.READ:
      if (otherLock.getLockMode() != LockMode.READ)
        return true;
      break;
    }
  }
  return false; /* no conflict between these locks */
}

代码示例来源:origin: org.jboss.narayana.jts/narayana-jts-idlj

/**
 * Implementation of Lock conflict check. Returns TRUE if there is conflict
 * FALSE otherwise. Does not take account of relationship in the atomic
 * action hierarchy since this is a function of LockManager.
 * 
 * @return <code>true</code> if this lock conflicts with the parameter,
 *         <code>false</code> otherwise.
 */
public boolean conflictsWith (Lock otherLock)
{
  if (txojLogger.logger.isTraceEnabled()) {
    txojLogger.logger.trace("Lock::conflictsWith(" + otherLock + ")\n" + "\tLock 1:\n"
        + this + "\n" + "\tLock 2:\n" + otherLock);
  }
  if (!(getCurrentOwner().equals(otherLock.getCurrentOwner())))
  {
    switch (lMode)
    {
    case LockMode.WRITE:
      return true; /* WRITE conflicts always */
    case LockMode.READ:
      if (otherLock.getLockMode() != LockMode.READ)
        return true;
      break;
    }
  }
  return false; /* no conflict between these locks */
}

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

/**
 * Implementation of Lock conflict check. Returns TRUE if there is conflict
 * FALSE otherwise. Does not take account of relationship in the atomic
 * action hierarchy since this is a function of LockManager.
 * 
 * @return <code>true</code> if this lock conflicts with the parameter,
 *         <code>false</code> otherwise.
 */
public boolean conflictsWith (Lock otherLock)
{
  if (txojLogger.logger.isTraceEnabled()) {
    txojLogger.logger.trace("Lock::conflictsWith(" + otherLock + ")\n" + "\tLock 1:\n"
        + this + "\n" + "\tLock 2:\n" + otherLock);
  }
  if (!(getCurrentOwner().equals(otherLock.getCurrentOwner())))
  {
    switch (lMode)
    {
    case LockMode.WRITE:
      return true; /* WRITE conflicts always */
    case LockMode.READ:
      if (otherLock.getLockMode() != LockMode.READ)
        return true;
      break;
    }
  }
  return false; /* no conflict between these locks */
}

代码示例来源:origin: jbosstm/narayana

/**
 * Implementation of Lock conflict check. Returns TRUE if there is conflict
 * FALSE otherwise. Does not take account of relationship in the atomic
 * action hierarchy since this is a function of LockManager.
 * 
 * @return <code>true</code> if this lock conflicts with the parameter,
 *         <code>false</code> otherwise.
 */
public boolean conflictsWith (Lock otherLock)
{
  if (txojLogger.logger.isTraceEnabled()) {
    txojLogger.logger.trace("Lock::conflictsWith(" + otherLock + ")\n" + "\tLock 1:\n"
        + this + "\n" + "\tLock 2:\n" + otherLock);
  }
  if (!(getCurrentOwner().equals(otherLock.getCurrentOwner())))
  {
    switch (lMode)
    {
    case LockMode.WRITE:
      return true; /* WRITE conflicts always */
    case LockMode.READ:
      if (otherLock.getLockMode() != LockMode.READ)
        return true;
      break;
    }
  }
  return false; /* no conflict between these locks */
}

代码示例来源:origin: jbosstm/narayana

/**
 * Implementation of Lock conflict check. Returns TRUE if there is conflict
 * FALSE otherwise. Does not take account of relationship in the atomic
 * action hierarchy since this is a function of LockManager.
 * 
 * @return <code>true</code> if this lock conflicts with the parameter,
 *         <code>false</code> otherwise.
 */
public boolean conflictsWith (Lock otherLock)
{
  if (txojLogger.logger.isTraceEnabled()) {
    txojLogger.logger.trace("Lock::conflictsWith(" + otherLock + ")\n" + "\tLock 1:\n"
        + this + "\n" + "\tLock 2:\n" + otherLock);
  }
  if (!(getCurrentOwner().equals(otherLock.getCurrentOwner())))
  {
    switch (lMode)
    {
    case LockMode.WRITE:
      return true; /* WRITE conflicts always */
    case LockMode.READ:
      if (otherLock.getLockMode() != LockMode.READ)
        return true;
      break;
    }
  }
  return false; /* no conflict between these locks */
}

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

/**
 * Implementation of Lock conflict check. Returns TRUE if there is conflict
 * FALSE otherwise. Does not take account of relationship in the atomic
 * action hierarchy since this is a function of LockManager.
 * 
 * @return <code>true</code> if this lock conflicts with the parameter,
 *         <code>false</code> otherwise.
 */
public boolean conflictsWith (Lock otherLock)
{
  if (txojLogger.logger.isTraceEnabled()) {
    txojLogger.logger.trace("Lock::conflictsWith(" + otherLock + ")\n" + "\tLock 1:\n"
        + this + "\n" + "\tLock 2:\n" + otherLock);
  }
  if (!(getCurrentOwner().equals(otherLock.getCurrentOwner())))
  {
    switch (lMode)
    {
    case LockMode.WRITE:
      return true; /* WRITE conflicts always */
    case LockMode.READ:
      if (otherLock.getLockMode() != LockMode.READ)
        return true;
      break;
    }
  }
  return false; /* no conflict between these locks */
}

代码示例来源:origin: org.jboss.narayana.arjunacore/arjunacore

/**
 * Implementation of Lock conflict check. Returns TRUE if there is conflict
 * FALSE otherwise. Does not take account of relationship in the atomic
 * action hierarchy since this is a function of LockManager.
 * 
 * @return <code>true</code> if this lock conflicts with the parameter,
 *         <code>false</code> otherwise.
 */
public boolean conflictsWith (Lock otherLock)
{
  if (txojLogger.logger.isTraceEnabled()) {
    txojLogger.logger.trace("Lock::conflictsWith(" + otherLock + ")\n" + "\tLock 1:\n"
        + this + "\n" + "\tLock 2:\n" + otherLock);
  }
  if (!(getCurrentOwner().equals(otherLock.getCurrentOwner())))
  {
    switch (lMode)
    {
    case LockMode.WRITE:
      return true; /* WRITE conflicts always */
    case LockMode.READ:
      if (otherLock.getLockMode() != LockMode.READ)
        return true;
      break;
    }
  }
  return false; /* no conflict between these locks */
}

代码示例来源:origin: jbosstm/narayana

/**
 * Implementation of Lock conflict check. Returns TRUE if there is conflict
 * FALSE otherwise. Does not take account of relationship in the atomic
 * action hierarchy since this is a function of LockManager.
 * 
 * @return <code>true</code> if this lock conflicts with the parameter,
 *         <code>false</code> otherwise.
 */
public boolean conflictsWith (Lock otherLock)
{
  if (txojLogger.logger.isTraceEnabled()) {
    txojLogger.logger.trace("Lock::conflictsWith(" + otherLock + ")\n" + "\tLock 1:\n"
        + this + "\n" + "\tLock 2:\n" + otherLock);
  }
  if (!(getCurrentOwner().equals(otherLock.getCurrentOwner())))
  {
    switch (lMode)
    {
    case LockMode.WRITE:
      return true; /* WRITE conflicts always */
    case LockMode.READ:
      if (otherLock.getLockMode() != LockMode.READ)
        return true;
      break;
    }
  }
  return false; /* no conflict between these locks */
}

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

private final boolean isAncestorOf (Lock heldLock)
{
  if (txojLogger.aitLogger.isDebugEnabled())
  {
    txojLogger.aitLogger.debug(DebugLevel.FUNCTIONS,
        VisibilityLevel.VIS_PRIVATE,
        FacilityCode.FAC_CONCURRENCY_CONTROL,
        "LockManager::isAncestorOf(" + heldLock.getCurrentOwner()
            + ")");
  }
  BasicAction action = BasicAction.Current();
  if (action == null)
    return false; /* no action no ancestry! */
  return action.isAncestor(heldLock.getCurrentOwner());
}

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

if (!(getCurrentOwner().equals(otherLock.getCurrentOwner())))

相关文章