Package com.adaptris.core.services.cache
Class CacheConnection
java.lang.Object
com.adaptris.core.AdaptrisConnectionImp
com.adaptris.core.services.cache.CacheConnection
- All Implemented Interfaces:
AdaptrisComponent,AdaptrisConnection,CacheProvider,ComponentLifecycle,ComponentLifecycleExtension,StateManagedComponent
A Connection to a cache instance.
In the adapter configuration file this class is aliased as cache-connection which is the preferred alternative to the fully qualified classname when building your configuration.
-
Field Summary
Fields inherited from class com.adaptris.core.AdaptrisConnectionImp
log -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidClose the underlying connection.protected voidInitialise the underlying connection.protected voidvoidsetCacheInstance(Cache cache) protected voidStart the underlying connection.protected voidStop the underlying connection.withCacheInstance(Cache cache) Methods inherited from class com.adaptris.core.AdaptrisConnectionImp
addExceptionListener, addMessageConsumer, addMessageProducer, changeState, cloneForTesting, close, connectionErrorHandler, connectionStateHandler, getConnectionErrorHandler, getConnectionStateHandler, getRuntimeComponent, getUniqueId, getWorkersFirstOnShutdown, init, prepare, requestClose, requestInit, requestStart, requestStop, retrieveComponentState, retrieveConnection, retrieveExceptionListeners, retrieveMessageConsumers, retrieveMessageProducers, setConnectionErrorHandler, setConnectionStateHandler, setRuntimeComponent, setUniqueId, setWorkersFirstOnShutdown, start, stop, workersFirstOnShutdown
-
Constructor Details
-
CacheConnection
public CacheConnection() -
CacheConnection
-
-
Method Details
-
prepareConnection
- Specified by:
prepareConnectionin classAdaptrisConnectionImp- Throws:
CoreException
-
initConnection
Description copied from class:AdaptrisConnectionImpInitialise the underlying connection.- Specified by:
initConnectionin classAdaptrisConnectionImp- Throws:
CoreException- wrapping any exception.
-
startConnection
Description copied from class:AdaptrisConnectionImpStart the underlying connection.- Specified by:
startConnectionin classAdaptrisConnectionImp- Throws:
CoreException- wrapping any exception.
-
stopConnection
protected void stopConnection()Description copied from class:AdaptrisConnectionImpStop the underlying connection.- Specified by:
stopConnectionin classAdaptrisConnectionImp
-
closeConnection
protected void closeConnection()Description copied from class:AdaptrisConnectionImpClose the underlying connection.- Specified by:
closeConnectionin classAdaptrisConnectionImp
-
getCacheInstance
-
setCacheInstance
-
withCacheInstance
-
retrieveCache
- Specified by:
retrieveCachein interfaceCacheProvider
-