ehcache

net.sf.ehcache.distribution
Class RMICacheReplicatorFactory

java.lang.Object
  extended by net.sf.ehcache.event.CacheEventListenerFactory
      extended by 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

Constructor Summary
RMICacheReplicatorFactory()
           
 
Method Summary
 CacheEventListener createCacheEventListener(java.util.Properties properties)
          Create a CacheEventListener which is also a CacheReplicator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RMICacheReplicatorFactory

public RMICacheReplicatorFactory()
Method Detail

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:

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

ehcache