public class JCacheTransactionalDataRegion extends JCacheRegion implements TransactionalDataRegion
cache
Constructor and Description |
---|
JCacheTransactionalDataRegion(javax.cache.Cache<java.lang.Object,java.lang.Object> cache,
CacheDataDescription metadata,
SessionFactoryOptions options) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
java.lang.Object |
get(java.lang.Object key) |
CacheDataDescription |
getCacheDataDescription()
Get the description of the type of data to be stored here, which would have been given to the RegionFactory
when creating this region
|
SessionFactoryOptions |
getSessionFactoryOptions() |
boolean |
isTransactionAware()
Is the underlying cache implementation aware of (and "participating in")
ongoing JTA transactions?
Regions which report that they are transaction-aware are considered
"synchronous", in that we assume we can immediately (i.e.
|
void |
put(java.lang.Object key,
java.lang.Object value) |
boolean |
putIfAbsent(java.lang.Object key,
java.lang.Object value) |
void |
remove(java.lang.Object key) |
boolean |
replace(java.lang.Object key,
java.lang.Object expected,
java.lang.Object value) |
protected java.util.Set<AccessType> |
supportedAccessTypes() |
protected void |
throwIfAccessTypeUnsupported(AccessType accessType) |
contains, destroy, getElementCountInMemory, getElementCountOnDisk, getName, getSizeInMemory, getTimeout, nextTimestamp, toMap
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
contains, destroy, getElementCountInMemory, getElementCountOnDisk, getName, getSizeInMemory, getTimeout, nextTimestamp, toMap
public JCacheTransactionalDataRegion(javax.cache.Cache<java.lang.Object,java.lang.Object> cache, CacheDataDescription metadata, SessionFactoryOptions options)
public boolean isTransactionAware()
TransactionalDataRegion
isTransactionAware
in interface TransactionalDataRegion
public CacheDataDescription getCacheDataDescription()
TransactionalDataRegion
getCacheDataDescription
in interface TransactionalDataRegion
protected void throwIfAccessTypeUnsupported(AccessType accessType)
protected java.util.Set<AccessType> supportedAccessTypes()
public void clear()
public java.lang.Object get(java.lang.Object key)
public void remove(java.lang.Object key)
public void put(java.lang.Object key, java.lang.Object value)
public boolean putIfAbsent(java.lang.Object key, java.lang.Object value)
public boolean replace(java.lang.Object key, java.lang.Object expected, java.lang.Object value)
public SessionFactoryOptions getSessionFactoryOptions()
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.