/** * Fetch the array from the segment because we need to include *ALL* keys, especially those on * cooldown queues. This is important when unregistering. */ @Override public long countAllKeys(ObjectContainer container, ClientContext context) { if (persistent) { container.activate(this, 1); container.activate(segment, 1); } // j16sdiz (22-DEC-2008): // ClientRequestSchedular.removePendingKeys() call this to get a list of request to be removed // FIXME ClientRequestSchedular.removePendingKeys() is leaking, what's missing here? return segment.getKeyNumbersAtRetryLevel(retryCount).length; }