org.shiftone.cache.decorator.cluster
Class AbstractClusterCacheFactory
java.lang.Object
org.shiftone.cache.decorator.cluster.AbstractClusterCacheFactory
- All Implemented Interfaces:
- CacheFactory, NotificationListener
- Direct Known Subclasses:
- JGroupsClusterCacheFactory, JmsClusterCacheFactory
- public abstract class AbstractClusterCacheFactory
- extends java.lang.Object
- implements CacheFactory, NotificationListener
- Version:
- $Revision: 1.3 $
- Author:
- Jeff Drost
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AbstractClusterCacheFactory
public AbstractClusterCacheFactory()
createTransport
protected abstract Transport createTransport()
throws java.lang.Exception
- Throws:
java.lang.Exception
getTransport
public Transport getTransport()
throws java.lang.Exception
- Throws:
java.lang.Exception
newInstance
public Cache newInstance(java.lang.String cacheName,
long timeoutMilliSeconds,
int maxSize)
- Specified by:
newInstance
in interface CacheFactory
getInstanceId
public long getInstanceId()
setDelegate
public void setDelegate(CacheFactory delegate)
toString
public java.lang.String toString()
sendRemoveNotification
public void sendRemoveNotification(java.lang.String cacheName,
java.lang.Object key)
sendClearNotification
public void sendClearNotification(java.lang.String cacheName)
onNotification
public void onNotification(Notification notification)
- Specified by:
onNotification
in interface NotificationListener