public class CacheHints extends Object
LoadingStrategy
for entries, the priority with which
to enqueue entries to the BlockingFetchQueues
(if they are enqueued)
and whether they should be enqueued to the front (most recent requests are
handled first) or back (requests are handled in order) of the respective
priority level.
The number of priority levels n is fixed when the cache is constructed. Priorities are consecutive integers 0 ... n-1, where 0 is the highest priority.
In BigDataViewer, priorities usually correspond to resolution levels in some way. For example this can be used to load low-resolution data first.
Constructor and Description |
---|
CacheHints(LoadingStrategy loadingStrategy,
int queuePriority,
boolean enqueuToFront) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
LoadingStrategy |
getLoadingStrategy()
Get the
LoadingStrategy to use when accessing data that is not in
the cache yet. |
int |
getQueuePriority()
Get the priority with which entry requests are enqueued (if they are
enqueued).
|
int |
hashCode() |
boolean |
isEnqueuToFront()
Return true if cell requests should be enqueued to the front (most recent
requests are handled first) of the respective
priority level . |
String |
toString() |
public CacheHints(LoadingStrategy loadingStrategy, int queuePriority, boolean enqueuToFront)
loadingStrategy
- queuePriority
- enqueuToFront
- public LoadingStrategy getLoadingStrategy()
LoadingStrategy
to use when accessing data that is not in
the cache yet.LoadingStrategy
to use when accessing data that is not in
the cache yet.public int getQueuePriority()
public boolean isEnqueuToFront()
priority level
. Return false, if cell requests should be enqueued to the
back (requests are handled in order).Copyright © 2015–2022 ImgLib2. All rights reserved.