public interface KeysFetchingLocally
Modifier and Type | Method and Description |
---|---|
long |
checkRecentlyFailed(Key key,
boolean realTime)
If we are fairly sure we'd like to send this request, we need to route it
and determine whether it would be rejected with RecentlyFailed.
|
boolean |
hasInsert(SendableRequestItemKey token)
Is this request:token pair being executed? FIXME this should be tracked by the inserter
itself.
|
boolean |
hasKey(Key key,
BaseSendableGet getterWaiting)
Is this key currently being fetched locally?
LOCKING: This should be safe just about anywhere, the lock protecting it is always taken last.
|
long checkRecentlyFailed(Key key, boolean realTime)
key
- The key to check.boolean hasKey(Key key, BaseSendableGet getterWaiting)
boolean hasInsert(SendableRequestItemKey token)