|
SolarMetric Kodo JDO 2.5.0 Reverse Schema Tool | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.solarmetric.rd.kodo.runtime.datacache.plugins.TangosolCache
A PersistenceManagerFactory cache that delegates to a Tangosol Coherence cache. This cache can be used to share data among PersistenceManagers created from a single PersistenceManagerFactory. Batch updates are performed atomically.
| Field Summary | |
protected com.tangosol.net.NamedCache |
cache
|
| Constructor Summary | |
TangosolCache()
|
|
| Method Summary | |
void |
batchUpdate(java.util.Map additions,
java.util.Map updates,
java.util.Collection deletes,
java.lang.Object origin)
### We should probably lock the underlying cache here. |
void |
clear()
Remove all data from this cache. |
void |
close()
Close this cache, dropping all hard references and releasing any resources that this cache maintains. |
void |
endConfiguration()
Invoked upon completion of configuration of this object |
java.lang.Object |
get(java.lang.Object key)
Return the cached object for the given key. |
com.tangosol.net.NamedCache |
getTangosolCache()
Returns the underlying NamedCache that this
TangosolCache is using. |
protected com.tangosol.net.NamedCache |
newCache()
Returns a new NamedCache for use as the underlying
data cache. |
boolean |
pin(java.lang.Object key)
Coherence doesn't have a concept of expiring data, so pinning is meaningless. |
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value)
Set the cached value for the given key. |
java.lang.Object |
remove(java.lang.Object key)
Remove the value stored under the given key. |
void |
startConfiguration()
Invoked before configuration is begun on this object |
boolean |
unpin(java.lang.Object key)
Coherence doesn't have a concept of expiring data, so unpinning is meaningless. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected com.tangosol.net.NamedCache cache
| Constructor Detail |
public TangosolCache()
| Method Detail |
public com.tangosol.net.NamedCache getTangosolCache()
NamedCache that this
TangosolCache is using. This is not an unmodifiable
view on the map, so care should be taken with this reference.
Implementations should probably not mess with the contents of
the cache, but should only use this reference to obtain cache
metrics.
protected com.tangosol.net.NamedCache newCache()
NamedCache for use as the underlying
data cache. This implementation returns a NamedCache
obtained by invoking CacheFactory.getDistributedCache().. To implement a more
sophisticated caching strategy, override this method.
public void batchUpdate(java.util.Map additions,
java.util.Map updates,
java.util.Collection deletes,
java.lang.Object origin)
batchUpdate in interface DataCacheorigin - the object that initiated this cache
update. This can be useful for
implementations in which many sources
share a single cache, which in turn
communicates back to the sources on cache
updates.public java.lang.Object get(java.lang.Object key)
DataCacheDataCache.put(java.lang.Object, java.lang.Object)
method should be used to re-cache any changed objects.
get in interface DataCache
public java.lang.Object put(java.lang.Object key,
java.lang.Object value)
DataCacheDataCache.batchUpdate(java.util.Map, java.util.Map, java.util.Collection, java.lang.Object) method.
put in interface DataCachenull if
the key was not previously cached. See Map.put(java.lang.Object, java.lang.Object)
for more information.public java.lang.Object remove(java.lang.Object key)
DataCachebatchUpdate method.
remove in interface DataCachenull if
the key was not previously cached. See Map.remove(java.lang.Object)
for more information.public void clear()
DataCachebatchUpdate method.
clear in interface DataCachepublic boolean pin(java.lang.Object key)
Map.containsKey(java.lang.Object).
pin in interface DataCachetrue if key's value was
pinned into the cache; false if the
key is not in the cache.public boolean unpin(java.lang.Object key)
Map.containsKey(java.lang.Object).
unpin in interface DataCachetrue if key's value was
unpinned from the cache; false if the
key is not in the cache.public void close()
DataCache
close in interface DataCachepublic void startConfiguration()
Configurable
startConfiguration in interface Configurablepublic void endConfiguration()
Configurable
endConfiguration in interface Configurable
|
SolarMetric Kodo JDO 2.5.0 Reverse Schema Tool | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||