|Modifier and Type||Method and Description|
Get the cell at a specified index.
Load a cell into memory (eventually) and put it into the cache at the specified index.
VolatileCell<A> get(long index)
VolatileCell<A> load(long index, int cellDims, long cellMin)
VolatileAccessof the returned cell may be invalid for a while.
index- cell is stored at this index in the cache.
cellDims- dimensions of the cell.
cellMin- offset of the cell in image coordinates.
void setCacheHints(CacheHints cacheHints)
hintson how to handle cell requests for this cache. The hints comprise
LoadingStrategy, queue priority, and queue order.
Whenever a cell is requested (
load(long, int, long)) its data may be
invalid, meaning that the cell data
has not been loaded yet. In this case, the
determines when the data should be loaded:
LoadingStrategy.VOLATILE: Enqueue the cell for asynchronous loading by a fetcher thread, if it has not been enqueued in the current frame already.
LoadingStrategy.BLOCKING: Load the cell data immediately.
LoadingStrategy.BUDGETED: Load the cell data immediately if there is enough
CacheIoTiming.IoTimeBudgetleft for the current thread group. Otherwise enqueue for asynchronous loading, if it has not been enqueued in the current frame already.
LoadingStrategy.DONTLOAD: Do nothing.
If a cell is enqueued, it is enqueued in the queue with the specified
queue priority. Priorities are
consecutive integers 0 ... n-1, where 0 is the highest
priority. Requests with priority i < j will be handled
before requests with priority j.
determines whether the cell is enqueued to the front or to the back
of the queue with the specified priority.
cacheHints- describe handling of cell requests for this cache.
Copyright © 2015–2017 Fiji. All rights reserved.