コード例 #1
0
  /** {@inheritDoc} */
  @Override
  public String toString() {
    GridCacheMvccCandidate<?> prev = previous();
    GridCacheMvccCandidate<?> next = next();

    return S.toString(
        GridCacheMvccCandidate.class,
        this,
        "key",
        parent == null ? null : parent.key(),
        "masks",
        Mask.toString(flags()),
        "prevVer",
        (prev == null ? null : prev.version()),
        "nextVer",
        (next == null ? null : next.version()));
  }
コード例 #2
0
  /**
   * Callback for whenever entry lock ownership changes.
   *
   * @param entry Entry whose lock ownership changed.
   */
  @Override
  public boolean onOwnerChanged(GridCacheEntryEx<K, V> entry, GridCacheMvccCandidate<K> owner) {
    if (owner != null && owner.version().equals(lockVer)) {
      onDone(true);

      return true;
    }

    return false;
  }