public class Cache extends Object
Modifier and Type | Field and Description |
---|---|
protected static StringManager |
sm |
Constructor and Description |
---|
Cache(StandardRoot root) |
Modifier and Type | Method and Description |
---|---|
protected void |
backgroundProcess() |
void |
clear() |
long |
getHitCount() |
long |
getLookupCount() |
long |
getMaxSize() |
int |
getObjectMaxSize() |
int |
getObjectMaxSizeBytes() |
protected WebResource |
getResource(String path,
boolean useClassLoaderResources) |
protected WebResource[] |
getResources(String path,
boolean useClassLoaderResources) |
long |
getSize() |
long |
getTtl() |
void |
setMaxSize(long maxSize) |
void |
setObjectMaxSize(int objectMaxSize) |
void |
setTtl(long ttl) |
protected static final StringManager sm
public Cache(StandardRoot root)
protected WebResource getResource(String path, boolean useClassLoaderResources)
protected WebResource[] getResources(String path, boolean useClassLoaderResources)
protected void backgroundProcess()
public long getTtl()
public void setTtl(long ttl)
public long getMaxSize()
public void setMaxSize(long maxSize)
public long getLookupCount()
public long getHitCount()
public void setObjectMaxSize(int objectMaxSize)
public int getObjectMaxSize()
public int getObjectMaxSizeBytes()
public void clear()
public long getSize()
Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.