T
- connection client typepublic abstract class AbstractCacheFactory<T> extends Object implements CacheFactory, DisposableBean
Modifier | Constructor and Description |
---|---|
protected |
AbstractCacheFactory() |
protected |
AbstractCacheFactory(Map<String,Integer> expiryTimePerCache,
int expiryTime) |
Modifier and Type | Method and Description |
---|---|
protected abstract T |
createConnectionClient(String hostName,
int port) |
void |
destroy() |
protected abstract void |
destroyConnectionClient(T connectionClient) |
protected T |
getConnectionFactory(String hostName,
int port) |
protected int |
getExpiryTime() |
protected int |
getExpiryTime(String cacheName) |
void |
setExpiryTime(int expiryTime) |
void |
setExpiryTimePerCache(Map<String,Integer> expiryTimePerCache) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createCache, isSupportingCacheArchitecture
public void destroy() throws Exception
destroy
in interface DisposableBean
Exception
protected abstract void destroyConnectionClient(T connectionClient) throws Exception
Exception
protected final T getConnectionFactory(String hostName, int port) throws Exception
Exception
protected abstract T createConnectionClient(String hostName, int port) throws IOException
IOException
protected int getExpiryTime()
public void setExpiryTime(int expiryTime)
protected int getExpiryTime(String cacheName)
Copyright © 2021 Pivotal Software, Inc.. All rights reserved.