facets.util.app
Class ProvidingCache.ItemProvider<T>
java.lang.Object
facets.util.app.WatchableOperation
facets.util.app.ProvidingCache.ItemProvider<T>
- Enclosing class:
- ProvidingCache
public abstract static class ProvidingCache.ItemProvider<T>
- extends WatchableOperation
WatchableOperation
that creates items for storage and return by
ProvidingCache
.
Note: In contrast to the superclass, cancelStyle()
returns true
by default.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ProvidingCache.ItemProvider
public ProvidingCache.ItemProvider(ProvidingCache c,
java.lang.Object source,
java.lang.String title)
cancelStyle
public WatchableOperation.CancelStyle cancelStyle()
- Re-implementation.
- Overrides:
cancelStyle
in class WatchableOperation
- Returns:
true
by default .
passThrough
protected boolean passThrough()
doReturnableOperation
public java.lang.Object doReturnableOperation()
- Overrides:
doReturnableOperation
in class WatchableOperation
getForValues
public final T getForValues(java.lang.Object... values)
getNewForValues
public final T getNewForValues(java.lang.Object... values)
hasForValues
public final boolean hasForValues(java.lang.Object... values)
removeForValues
public final void removeForValues(java.lang.Object... values)
removeAll
public final void removeAll()
maximumSharePct
protected int maximumSharePct()
advanceByteCount
protected long advanceByteCount()
newItem
protected abstract T newItem()
finalByteCount
protected long finalByteCount(java.lang.Object storeReady)
packsItems
protected boolean packsItems()
packItem
protected java.lang.Object packItem(T item)
unpackItem
protected T unpackItem(java.lang.Object packed)