|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectno.sesat.search.view.velocity.QuickResourceCacheImpl
public final class QuickResourceCacheImpl
A faster implementation of the resource cache than the default. The default implementation uses a fully synchronized LRUMap.
This implementation only supports an unbounded cache size and will throw IllegalArgumentException if
Velocity is set to anything other than zero.
ResourceCacheImpl| Field Summary | |
|---|---|
static String |
INITIAL_SIZE_PROPERTY
Property name for controlling the initial size of the cache. |
| Constructor Summary | |
|---|---|
QuickResourceCacheImpl()
|
|
| Method Summary | |
|---|---|
Iterator |
enumerateKeys()
|
org.apache.velocity.runtime.resource.Resource |
get(Object o)
|
void |
initialize(org.apache.velocity.runtime.RuntimeServices svc)
|
org.apache.velocity.runtime.resource.Resource |
put(Object o,
org.apache.velocity.runtime.resource.Resource resource)
|
org.apache.velocity.runtime.resource.Resource |
remove(Object o)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String INITIAL_SIZE_PROPERTY
| Constructor Detail |
|---|
public QuickResourceCacheImpl()
| Method Detail |
|---|
public void initialize(org.apache.velocity.runtime.RuntimeServices svc)
initialize in interface org.apache.velocity.runtime.resource.ResourceCachepublic org.apache.velocity.runtime.resource.Resource get(Object o)
get in interface org.apache.velocity.runtime.resource.ResourceCache
public org.apache.velocity.runtime.resource.Resource put(Object o,
org.apache.velocity.runtime.resource.Resource resource)
put in interface org.apache.velocity.runtime.resource.ResourceCachepublic org.apache.velocity.runtime.resource.Resource remove(Object o)
remove in interface org.apache.velocity.runtime.resource.ResourceCachepublic Iterator enumerateKeys()
enumerateKeys in interface org.apache.velocity.runtime.resource.ResourceCache
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||