K - V - public abstract class InfinispanCacheWrapper<K,V> extends Object implements InfinispanCacheConnection
| Constructor and Description |
|---|
InfinispanCacheWrapper() |
| Modifier and Type | Method and Description |
|---|---|
Class<?> |
getCacheClassType()
Returns root object class type
that is defined for the cache.
|
Class<?> |
getCacheKeyClassType()
Returns the class type of the key to the cache.
|
String |
getCacheName()
Returns the name of the cache
|
ClassRegistry |
getClassRegistry()
Return the ClassRegistry that contains which classes and their methods.
|
abstract InfinispanManagedConnectionFactory |
getConfig() |
ObjectMaterializeLifeCycle |
getMaterializeLifeCycle()
Implement @link ObjectMaterializeLifeCycle if the translator supports materialization.
|
String |
getPkField()
Returns the name of the primary key to the cache
|
abstract void |
init(InfinispanManagedConnectionFactory config)
Called so the wrapper, with the configuration, can create the cache manager it will use
|
abstract void |
init(InfinispanManagedConnectionFactory config,
Object cacheManager)
Called to pass in the cacheManager it will use.
|
protected abstract void |
shutDownCacheManager()
Provided for testing purposes
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetQueryFactoryadd, cleanUp, clearCache, get, getAll, getCache, getCache, getSearchType, isAlive, remove, updatepublic abstract InfinispanManagedConnectionFactory getConfig()
public abstract void init(InfinispanManagedConnectionFactory config) throws javax.resource.ResourceException
config - javax.resource.ResourceExceptionpublic abstract void init(InfinispanManagedConnectionFactory config, Object cacheManager)
config - cacheManager - objectpublic String getPkField()
getPkField in interface ObjectConnectionObjectConnection.getPkField()public Class<?> getCacheKeyClassType()
getCacheKeyClassType in interface ObjectConnectionObjectConnection.getCacheKeyClassType()public String getCacheName()
getCacheName in interface ObjectConnectionObjectConnection.getCacheName()public Class<?> getCacheClassType()
getCacheClassType in interface ObjectConnectionObjectConnection.getCacheClassType()public ClassRegistry getClassRegistry()
getClassRegistry in interface ObjectConnectionObjectConnection.getClassRegistry()public ObjectMaterializeLifeCycle getMaterializeLifeCycle()
getMaterializeLifeCycle in interface ObjectConnectionObjectConnection.getMaterializeLifeCycle()protected abstract void shutDownCacheManager()
Copyright © 2016 JBoss by Red Hat. All rights reserved.