public String toString(boolean displayPendingRequests) {
      StringBuilder sb = new StringBuilder("DLockGrantToken");
      sb.append("@").append(Integer.toHexString(hashCode()));
      synchronized (this) {
        sb.append(" {name: ").append(getName());
        sb.append(", isGranted: ").append(isLeaseHeld());
        sb.append(", isDestroyed: ").append(destroyed);
        sb.append(", accessCount: ").append(accessCount);
        sb.append(", lessee: ").append(lessee);
        sb.append(", leaseExpireTime: ").append(leaseExpireTime);
        sb.append(", leaseId: ").append(leaseId);
        sb.append(", lesseeThread: ").append(lesseeThread);
        if (displayPendingRequests) {
          sb.append(", pendingRequests: ").append(pendingRequestsToString());
        }
        sb.append("}");
      }
      return sb.toString();
    }
Returns string representation of this object.
<p>
Synchronizes on this grant token.
<p>

@param displayPendingRequests true if string should include pendingRequests
geode-core/src/main/java/org/apache/geode/distributed/internal/locks/DLockGrantor.java