public interface LocalQCriticalHandler
LocalQCacheOpQueue
can not change. The logic for replacing the file,
clearing should be hidden inside the queue LocalQCacheOpQueue
.
Note it is possible the queue would turn in to /dev/null if this is the only option to keep on going. We should favour
performance and stability over consistency here.Modifier and Type | Method and Description |
---|---|
boolean |
handleCriticalAdd(LocalQCacheOpQueue queue,
LocalQCacheOp toAdd,
Throwable t)
Should try to "somehow" solve the critical situation of adding on this queue, may retry adding to queue.
|
boolean |
handleCriticalPeek(LocalQCacheOpQueue queue,
Throwable t)
Should try to "somehow" solve the critical situation of peeking on this queue.
|
boolean |
handleCriticalRemove(LocalQCacheOpQueue queue,
LocalQCacheOp toRemove,
Throwable t)
Should try to "somehow" solve the critical situation of removing on this queue, may retry removing from queue.
|
boolean handleCriticalAdd(LocalQCacheOpQueue queue, LocalQCacheOp toAdd, Throwable t)
LocalQCacheOp
was successfully addedboolean handleCriticalPeek(LocalQCacheOpQueue queue, Throwable t)
boolean handleCriticalRemove(LocalQCacheOpQueue queue, LocalQCacheOp toRemove, Throwable t)
LocalQCacheOp
was successfully removedCopyright © 2002-2021 Atlassian. All Rights Reserved.