public class DefaultEntityCache extends Object implements EntityCache
Constructor and Description |
---|
DefaultEntityCache() |
Modifier and Type | Method and Description |
---|---|
Boolean |
exists(Key<?> k) |
void |
flush() |
<T> T |
getEntity(Key<T> k) |
<T> T |
getProxy(Key<T> k) |
void |
notifyExists(Key<?> k,
boolean exists) |
<T> void |
putEntity(Key<T> k,
T t) |
<T> void |
putProxy(Key<T> k,
T t) |
EntityCacheStatistics |
stats() |
public Boolean exists(Key<?> k)
exists
in interface EntityCache
public void notifyExists(Key<?> k, boolean exists)
notifyExists
in interface EntityCache
public <T> T getEntity(Key<T> k)
getEntity
in interface EntityCache
public <T> T getProxy(Key<T> k)
getProxy
in interface EntityCache
public <T> void putProxy(Key<T> k, T t)
putProxy
in interface EntityCache
public <T> void putEntity(Key<T> k, T t)
putEntity
in interface EntityCache
public void flush()
flush
in interface EntityCache
public EntityCacheStatistics stats()
stats
in interface EntityCache
Copyright © 2016. All rights reserved.