public class ControllerBase extends Object implements Cache.Controller
Modifier and Type | Field and Description |
---|---|
protected Map<String,Cache> |
caches |
protected com.epimorphics.lda.cache.CacheNewer |
factory |
protected int |
identity |
Modifier | Constructor and Description |
---|---|
protected |
ControllerBase(com.epimorphics.lda.cache.CacheNewer m) |
Modifier and Type | Method and Description |
---|---|
Cache |
cacheFor(Source s,
String policyValue)
Answer a Cache associated with the given Source.
|
void |
clear(Source s)
Clear and remove the cache associated with the given source.
|
void |
clearAll()
Clear and remove all the caches that this maker knows about.
|
void |
resetCounts()
Reset the counts of all the caches in this controller.
|
void |
showAll(StringBuilder sb)
Answer an HTML description of all the cache's states.
|
String |
summary()
Answer a summary of this cache controller's state.
|
protected final com.epimorphics.lda.cache.CacheNewer factory
protected final int identity
public String summary()
Cache.Controller
summary
in interface Cache.Controller
public void clear(Source s)
Cache.Controller
clear
in interface Cache.Controller
public void resetCounts()
Cache.Controller
resetCounts
in interface Cache.Controller
public void showAll(StringBuilder sb)
Cache.Controller
showAll
in interface Cache.Controller
public void clearAll()
Cache.Controller
clearAll
in interface Cache.Controller
public Cache cacheFor(Source s, String policyValue)
Cache.Controller
cacheFor
in interface Cache.Controller
Copyright © 2014. All Rights Reserved.