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, waitcreateCache, isSupportingCacheArchitecturepublic void destroy()
throws Exception
destroy in interface DisposableBeanExceptionprotected abstract void destroyConnectionClient(T connectionClient) throws Exception
Exceptionprotected final T getConnectionFactory(String hostName, int port) throws Exception
Exceptionprotected abstract T createConnectionClient(String hostName, int port) throws IOException
IOExceptionprotected int getExpiryTime()
public void setExpiryTime(int expiryTime)
protected int getExpiryTime(String cacheName)
Copyright © 2021 Pivotal Software, Inc.. All rights reserved.