net.sf.ehcache.distribution
Class RMICacheReplicatorFactory
java.lang.Object
net.sf.ehcache.event.CacheEventListenerFactory
net.sf.ehcache.distribution.RMICacheReplicatorFactory
public final class RMICacheReplicatorFactory
- extends CacheEventListenerFactory
Creates an RMICacheReplicator using properties. Config lines look like:
<cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
properties="
replicateAsynchronously=true,
replicatePuts=true
replicateUpdates=true
replicateUpdatesViaCopy=true
replicateRemovals=true
"/>
- Version:
- $Id: RMICacheReplicatorFactory.java 52 2006-04-24 14:50:03Z gregluck $
- Author:
- Greg Luck
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RMICacheReplicatorFactory
public RMICacheReplicatorFactory()
createCacheEventListener
public final CacheEventListener createCacheEventListener(java.util.Properties properties)
- Create a
CacheEventListener
which is also a CacheReplicator.
The defaults if properties are not specified are:
- replicatePuts=true
- replicateUpdates=true
- replicateUpdatesViaCopy=true
- replicateRemovals=true;
- replicateAsynchronously=true
- Specified by:
createCacheEventListener
in class CacheEventListenerFactory
- Parameters:
properties
- implementation specific properties. These are configured as comma
separated name value pairs in ehcache.xml e.g.
<cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
properties="
replicateAsynchronously=true,
replicatePuts=true
replicateUpdates=true
replicateUpdatesViaCopy=true
replicateRemovals=true
"/>
- Returns:
- a constructed CacheEventListener