org.jboss.resteasy.plugins.cache.server
Class JBossCache
java.lang.Object
org.jboss.resteasy.plugins.cache.server.JBossCache
- All Implemented Interfaces:
- ServerCache
public class JBossCache
- extends java.lang.Object
- implements ServerCache
An HTTP cache that behaves somewhat the same way as a proxy (like Squid)
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
maxSize
protected int maxSize
wakeupInterval
protected long wakeupInterval
cache
protected org.jboss.cache.Cache cache
providerFactory
protected ResteasyProviderFactory providerFactory
JBossCache
public JBossCache()
getMaxSize
public int getMaxSize()
setMaxSize
public void setMaxSize(int maxSize)
getWakeupInterval
public long getWakeupInterval()
setWakeupInterval
public void setWakeupInterval(long wakeupInterval)
getProviderFactory
public ResteasyProviderFactory getProviderFactory()
setProviderFactory
public void setProviderFactory(ResteasyProviderFactory providerFactory)
start
public void start()
stop
public void stop()
get
public ServerCache.Entry get(java.lang.String uri,
MediaType accept)
- Specified by:
get
in interface ServerCache
add
public ServerCache.Entry add(java.lang.String uri,
MediaType mediaType,
CacheControl cc,
MultivaluedMap<java.lang.String,java.lang.Object> headers,
byte[] entity,
java.lang.String etag)
- Specified by:
add
in interface ServerCache
remove
public void remove(java.lang.String key)
- Specified by:
remove
in interface ServerCache
clear
public void clear()
- Specified by:
clear
in interface ServerCache
Copyright © 2010. All Rights Reserved.