public class CacheConnection extends AdaptrisConnectionImp implements CacheProvider
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.
log
Constructor and Description |
---|
CacheConnection() |
CacheConnection(Cache cache) |
Modifier and Type | Method and Description |
---|---|
protected void |
closeConnection()
Close the underlying connection.
|
Cache |
getCacheInstance() |
protected void |
initConnection()
Initialise the underlying connection.
|
protected void |
prepareConnection() |
Cache |
retrieveCache() |
void |
setCacheInstance(Cache cache) |
protected void |
startConnection()
Start the underlying connection.
|
protected void |
stopConnection()
Stop the underlying connection.
|
addExceptionListener, addMessageConsumer, addMessageProducer, changeState, cloneForTesting, close, connectionErrorHandler, getConnectionErrorHandler, getLookupName, getUniqueId, getWorkersFirstOnShutdown, init, prepare, requestClose, requestInit, requestStart, requestStop, retrieveComponentState, retrieveConnection, retrieveExceptionListeners, retrieveMessageConsumers, retrieveMessageProducers, setConnectionErrorHandler, setLookupName, setUniqueId, setWorkersFirstOnShutdown, start, stop, workersFirstOnShutdown
public CacheConnection()
public CacheConnection(Cache cache)
protected void prepareConnection() throws CoreException
prepareConnection
in class AdaptrisConnectionImp
CoreException
protected void initConnection() throws CoreException
AdaptrisConnectionImp
initConnection
in class AdaptrisConnectionImp
CoreException
- wrapping any exception.protected void startConnection() throws CoreException
AdaptrisConnectionImp
startConnection
in class AdaptrisConnectionImp
CoreException
- wrapping any exception.protected void stopConnection()
AdaptrisConnectionImp
stopConnection
in class AdaptrisConnectionImp
protected void closeConnection()
AdaptrisConnectionImp
closeConnection
in class AdaptrisConnectionImp
public Cache getCacheInstance()
public void setCacheInstance(Cache cache)
public Cache retrieveCache()
retrieveCache
in interface CacheProvider