| 
ehcache | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.ehcache.event.CacheEventListenerFactory
net.sf.ehcache.distribution.RMICacheReplicatorFactory
public class RMICacheReplicatorFactory
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 "/>
| Field Summary | |
|---|---|
protected static int | 
DEFAULT_ASYNCHRONOUS_REPLICATION_INTERVAL_MILLIS
A default for the amount of time the replication thread sleeps after it detects the replicationQueue is empty before checking again.  | 
protected static int | 
DEFAULT_ASYNCHRONOUS_REPLICATION_MAXIMUM_BATCH_SIZE
A default for the maximum number of operations in an RMI message.  | 
| Constructor Summary | |
|---|---|
RMICacheReplicatorFactory()
 | 
|
| Method Summary | |
|---|---|
 CacheEventListener | 
createCacheEventListener(Properties properties)
Create a CacheEventListener which is also a CacheReplicator. | 
protected  int | 
extractMaximumBatchSize(Properties properties)
Extracts the value of maximumBatchSize.  | 
protected  boolean | 
extractReplicateAsynchronously(Properties properties)
Extracts the value of replicateAsynchronously from the properties  | 
protected  boolean | 
extractReplicatePuts(Properties properties)
Extracts the value of replicatePuts from the properties  | 
protected  boolean | 
extractReplicatePutsViaCopy(Properties properties)
Extracts the value of replicatePutsViaCopy from the properties  | 
protected  boolean | 
extractReplicateRemovals(Properties properties)
Extracts the value of replicateRemovals from the properties  | 
protected  boolean | 
extractReplicateUpdates(Properties properties)
Extracts the value of replicateUpdates from the properties  | 
protected  boolean | 
extractReplicateUpdatesViaCopy(Properties properties)
Extracts the value of replicateUpdatesViaCopy from the properties  | 
protected  int | 
extractReplicationIntervalMilis(Properties properties)
Extracts the value of asynchronousReplicationIntervalMillis.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
protected static final int DEFAULT_ASYNCHRONOUS_REPLICATION_INTERVAL_MILLIS
protected static final int DEFAULT_ASYNCHRONOUS_REPLICATION_MAXIMUM_BATCH_SIZE
| Constructor Detail | 
|---|
public RMICacheReplicatorFactory()
| Method Detail | 
|---|
public final CacheEventListener createCacheEventListener(Properties properties)
CacheEventListener which is also a CacheReplicator.
 
 The defaults if properties are not specified are:
 
createCacheEventListener in class CacheEventListenerFactoryproperties - 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
                   asynchronousReplicationIntervalMillis=1000
                   "/>
protected int extractReplicationIntervalMilis(Properties properties)
properties - protected int extractMaximumBatchSize(Properties properties)
properties - protected boolean extractReplicateAsynchronously(Properties properties)
properties - protected boolean extractReplicateRemovals(Properties properties)
properties - protected boolean extractReplicateUpdatesViaCopy(Properties properties)
properties - protected boolean extractReplicatePutsViaCopy(Properties properties)
properties - protected boolean extractReplicateUpdates(Properties properties)
properties - protected boolean extractReplicatePuts(Properties properties)
properties - 
  | 
ehcache | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||