public interface StoreCache
extends javax.persistence.Cache
Modifier and Type | Field and Description |
---|---|
static String |
NAME_DEFAULT |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(Class cls,
Object oid)
Whether the cache contains data for the given oid.
|
boolean |
containsAll(Class cls,
Collection oids)
Whether the cache contains data for the given oids.
|
boolean |
containsAll(Class cls,
Object... oids)
Whether the cache contains data for the given oids.
|
void |
evict(Class cls,
Object oid)
Remove data for the given oid from the cache.
|
void |
evictAll()
Clear the cache.
|
void |
evictAll(Class cls,
Collection oids)
Remove data for the given oids from the cache.
|
void |
evictAll(Class cls,
Object... oids)
Remove data for the given oids from the cache.
|
DataCache |
getDelegate()
Deprecated.
cast to
StoreCacheImpl instead. This
method pierces the published-API boundary, as does the SPI cast. |
CacheStatistics |
getStatistics()
Gets the number of read/write/hit on this receiver in total and per
class basis.
|
void |
pin(Class cls,
Object oid)
Pin the data for the given oid to the cache.
|
void |
pinAll(Class cls,
Collection oids)
Pin the data for the given oids to the cache.
|
void |
pinAll(Class cls,
Object... oids)
Pin the data for the given oids to the cache.
|
void |
unpin(Class cls,
Object oid)
Unpin the data for the given oid from the cache.
|
void |
unpinAll(Class cls,
Collection oids)
Unpin the data for the given oids from the cache.
|
void |
unpinAll(Class cls,
Object... oids)
Unpin the data for the given oids from the cache.
|
static final String NAME_DEFAULT
boolean contains(Class cls, Object oid)
contains
in interface javax.persistence.Cache
boolean containsAll(Class cls, Object... oids)
boolean containsAll(Class cls, Collection oids)
void pinAll(Class cls, Collection oids)
void unpinAll(Class cls, Collection oids)
void evict(Class cls, Object oid)
evict
in interface javax.persistence.Cache
void evictAll(Class cls, Collection oids)
void evictAll()
evictAll
in interface javax.persistence.Cache
CacheStatistics getStatistics()
DataCache getDelegate()
StoreCacheImpl
instead. This
method pierces the published-API boundary, as does the SPI cast.Copyright © 2006–2018 Apache Software Foundation. All rights reserved.