public class SessionAwareCache<T> extends Object
Modifier and Type | Class and Description |
---|---|
static class |
SessionAwareCache.CacheID |
static class |
SessionAwareCache.Type |
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_MAX_SIZE_TOTAL |
static String |
REPL |
Constructor and Description |
---|
SessionAwareCache(String cacheName,
CacheFactory cacheFactory,
SessionAwareCache.Type type,
int maxStaleness) |
Modifier and Type | Method and Description |
---|---|
CacheStatisticsMetadata |
buildCacheStats(String name) |
void |
clearAll()
Clear all the cached plans for all the clientConns
|
void |
clearForVDB(String vdbName,
String version) |
void |
clearForVDB(VDBKey vdbKey) |
T |
get(SessionAwareCache.CacheID id) |
int |
getCacheHitCount() |
int |
getCachePutCount() |
static Collection<String> |
getCacheTypes() |
int |
getRequestCount() |
int |
getTotalCacheEntries() |
boolean |
isTransactional() |
void |
put(SessionAwareCache.CacheID id,
FunctionMethod.Determinism determinismLevel,
T t,
Long ttl) |
T |
remove(SessionAwareCache.CacheID id,
FunctionMethod.Determinism determinismLevel) |
void |
setModTime(long modTime) |
void |
setTupleBufferCache(TupleBufferCache bufferManager) |
public static final String REPL
public static final int DEFAULT_MAX_SIZE_TOTAL
public SessionAwareCache(String cacheName, CacheFactory cacheFactory, SessionAwareCache.Type type, int maxStaleness)
public T get(SessionAwareCache.CacheID id)
public int getCacheHitCount()
public int getRequestCount()
public int getCachePutCount()
public int getTotalCacheEntries()
public T remove(SessionAwareCache.CacheID id, FunctionMethod.Determinism determinismLevel)
public void put(SessionAwareCache.CacheID id, FunctionMethod.Determinism determinismLevel, T t, Long ttl)
public void clearAll()
clientConn
- ClientConnectionpublic void clearForVDB(VDBKey vdbKey)
public void setTupleBufferCache(TupleBufferCache bufferManager)
public void setModTime(long modTime)
public static Collection<String> getCacheTypes()
public boolean isTransactional()
public CacheStatisticsMetadata buildCacheStats(String name)
Copyright © 2018 JBoss by Red Hat. All rights reserved.