facets.util.app
Class ProvidingCache

java.lang.Object
  extended by facets.util.Tracer
      extended by facets.util.app.ProvidingCache

public class ProvidingCache
extends Tracer

Cache that encapsulates the creation of items to be stored.


Nested Class Summary
static class ProvidingCache.ItemProvider<T>
          WatchableOperation that creates items for storage and return by ProvidingCache.
 
Field Summary
static int PASS_THROUGH
           
 
Constructor Summary
ProvidingCache(int countMax, AppWatcher watcher)
           
 
Method Summary
protected  boolean checkItemBytes()
           
 void clear()
           
protected  long getBytesAvailable(long itemMems)
           
protected  void processingRequest(boolean starting)
           
protected  boolean trace()
           
protected  void traceOutput(java.lang.String msg)
          Outputs complete trace messages to console or elsewhere.
protected  AppWatcher watcher()
           
 
Methods inherited from class facets.util.Tracer
trace, trace, trace, trace, trace, traceDebug, traceDebug, traceObjectText, traceOutputWithClass
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PASS_THROUGH

public static final int PASS_THROUGH
See Also:
Constant Field Values
Constructor Detail

ProvidingCache

public ProvidingCache(int countMax,
                      AppWatcher watcher)
Method Detail

traceOutput

protected void traceOutput(java.lang.String msg)
Description copied from class: Tracer
Outputs complete trace messages to console or elsewhere.

Default prepends helpful classname to message.

Overrides:
traceOutput in class Tracer
Parameters:
msg - passed from one of the public methods

trace

protected boolean trace()

watcher

protected AppWatcher watcher()

processingRequest

protected void processingRequest(boolean starting)

checkItemBytes

protected boolean checkItemBytes()

getBytesAvailable

protected long getBytesAvailable(long itemMems)

clear

public final void clear()