org.shiftone.cache.decorator.cluster
Class AbstractClusterCacheFactory

java.lang.Object
  extended byorg.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

Constructor Summary
AbstractClusterCacheFactory()
           
 
Method Summary
protected abstract  Transport createTransport()
           
 long getInstanceId()
           
 Transport getTransport()
           
 Cache newInstance(java.lang.String cacheName, long timeoutMilliSeconds, int maxSize)
           
 void onNotification(Notification notification)
           
 void sendClearNotification(java.lang.String cacheName)
           
 void sendRemoveNotification(java.lang.String cacheName, java.lang.Object key)
           
 void setDelegate(CacheFactory delegate)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractClusterCacheFactory

public AbstractClusterCacheFactory()
Method Detail

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