public class NullLevel2Cache extends AbstractLevel2Cache
Modifier and Type | Field and Description |
---|---|
static String |
NAME |
cacheName, clearAtClose, expiryMillis, maxSize, nucleusCtx
Constructor and Description |
---|
NullLevel2Cache(NucleusContext nucleusCtx) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Method to close the cache when no longer needed.
|
boolean |
containsOid(Object oid)
Accessor for whether an object with the specified id is in the cache
|
void |
evict(Object oid)
Evict the parameter instance from the second-level cache.
|
void |
evictAll()
Evict the parameter instances from the second-level cache.
|
void |
evictAll(Class pcClass,
boolean subclasses)
Evict the parameter instances from the second-level cache.
|
void |
evictAll(Collection oids)
Evict the parameter instances from the second-level cache.
|
void |
evictAll(Object[] oids)
Evict the parameter instances from the second-level cache.
|
CachedPC |
get(Object oid)
Accessor for an object from the cache
|
int |
getSize()
Accessor for the total number of objects in the L2 cache.
|
boolean |
isEmpty()
Accessor for whether the cache is empty.
|
CachedPC |
put(Object oid,
CachedPC pc)
Method to put an object in the L2 cache
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAll, getNumberOfPinnedObjects, getNumberOfUnpinnedObjects, getUnique, pin, pinAll, pinAll, pinAll, putAll, putUnique, putUniqueAll, removeUnique, unpin, unpinAll, unpinAll, unpinAll
public static final String NAME
public NullLevel2Cache(NucleusContext nucleusCtx)
public void close()
public void evict(Object oid)
oid
- the object id of the instance to evict.public void evictAll()
public void evictAll(Class pcClass, boolean subclasses)
pcClass
- the class to evictsubclasses
- Whether to evict all subclasses of this class alsopublic void evictAll(Collection oids)
oids
- the object ids of the instance to evict.public void evictAll(Object[] oids)
oids
- the object ids of the instances to evictpublic boolean containsOid(Object oid)
oid
- The object idpublic CachedPC get(Object oid)
oid
- The identitypublic int getSize()
Level2Cache
Level2Cache.getSize()
public boolean isEmpty()
Level2Cache
Level2Cache.isEmpty()
Copyright © 2020. All rights reserved.