net.sf.ehcache.distribution.jgroups
Class JGroupsCacheReplicatorFactory

java.lang.Object
  extended by net.sf.ehcache.event.CacheEventListenerFactory
      extended by net.sf.ehcache.distribution.jgroups.JGroupsCacheReplicatorFactory

public class JGroupsCacheReplicatorFactory
extends net.sf.ehcache.event.CacheEventListenerFactory

Version:
$Id$
Author:
Pierre Monestie (pmonestie__REMOVE__THIS__@gmail.com), Greg Luck

Constructor Summary
JGroupsCacheReplicatorFactory()
          Empty arg constructor
 
Method Summary
 net.sf.ehcache.event.CacheEventListener createCacheEventListener(Properties properties)
          
protected  long extractAsynchronousReplicationIntervalMillis(Properties properties)
          Extract the ASYNCHRONOUS_REPLICATION_INTERVAL_MILLIS setting from the properties
protected  boolean extractBooleanProperty(Properties properties, String propertyName, boolean defaultValue)
          Extract a Boolean out of a Property
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JGroupsCacheReplicatorFactory

public JGroupsCacheReplicatorFactory()
Empty arg constructor

Method Detail

createCacheEventListener

public net.sf.ehcache.event.CacheEventListener createCacheEventListener(Properties properties)

Specified by:
createCacheEventListener in class net.sf.ehcache.event.CacheEventListenerFactory

extractAsynchronousReplicationIntervalMillis

protected long extractAsynchronousReplicationIntervalMillis(Properties properties)
Extract the ASYNCHRONOUS_REPLICATION_INTERVAL_MILLIS setting from the properties


extractBooleanProperty

protected boolean extractBooleanProperty(Properties properties,
                                         String propertyName,
                                         boolean defaultValue)
Extract a Boolean out of a Property

Parameters:
properties - the properties
propertyName - the name of the property
defaultValue - the deulat value id none is found
Returns:
the extracted property


Copyright © 2003-2012 Terracotta, Inc.. All Rights Reserved.