@Override
  public void passivate(final boolean accessed) {
    long now = 0L;
    if (accessed) {
      // do this outside the sync
      now = System.nanoTime();
    }
    synchronized (this) {
      if (isDestroyed()) {
        return;
      }
      if (!active) {
        throw new InternalGemFireException("Connection not active");
      }
      active = false;
      if (waitingToSwitch) {
        notifyAll();
      }
      if (accessed) {
        lastAccessed = now; // do this while synchronized
      }
    }
  }
Set the destroy bit if it is not already set.

@return true if we were able to set to bit; false if someone else already did
geode-core/src/main/java/org/apache/geode/cache/client/internal/pooling/PooledConnection.java