public class ThreadSafeCacheHolder<T extends Serializable> extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_SIZE |
Constructor and Description |
---|
ThreadSafeCacheHolder() |
ThreadSafeCacheHolder(int maxSize) |
Modifier and Type | Method and Description |
---|---|
void |
addToCache(DocumentModel doc,
String key,
T value) |
void |
addToCache(DocumentRef docRef,
String key,
T value) |
void |
addToCache(String key,
T value) |
T |
getFromCache(DocumentModel doc,
String key) |
T |
getFromCache(DocumentRef docRef,
String key) |
T |
getFromCache(String key) |
void |
removeFromCache(DocumentModel doc,
String key) |
void |
removeFromCache(DocumentRef docRef,
String key) |
void |
removeFromCache(String key) |
public static final int DEFAULT_SIZE
public ThreadSafeCacheHolder()
public ThreadSafeCacheHolder(int maxSize)
public void addToCache(DocumentRef docRef, String key, T value)
public void addToCache(DocumentModel doc, String key, T value)
public T getFromCache(DocumentRef docRef, String key)
public T getFromCache(DocumentModel doc, String key)
public void removeFromCache(DocumentRef docRef, String key)
public void removeFromCache(DocumentModel doc, String key)
public void removeFromCache(String key)
Copyright © 2011 Nuxeo SA. All Rights Reserved.