private void readObject(java.io.ObjectInputStream s)
      throws java.io.IOException, ClassNotFoundException {
    // Read in capacity, and any hidden stuff
    s.defaultReadObject();

    count.set(0);
    last = head = new Node<>(null);

    // Read in all elements and place in queue
    for (;;) {
      @SuppressWarnings("unchecked")
      E item = (E) s.readObject();
      if (item == null) {
        break;
      }
      add(item);
    }
  }
Reconstitute this queue instance from a stream (that is, deserialize it).

@param s the stream
geode-core/src/main/java/org/apache/geode/internal/cache/ForceableLinkedBlockingQueue.java