public class RMICacheManagerPeerListenerFactory extends CacheManagerPeerListenerFactory
<cachePeerListenerFactory class="net.sf.ehcache.distribution.RMICacheManagerPeerListenerFactory"
properties="hostName=localhost, port=5000" />
Modifier and Type | Field and Description |
---|---|
static Integer |
DEFAULT_SOCKET_TIMEOUT_MILLIS
The default timeout for cache replication for a single replication action.
|
Constructor and Description |
---|
RMICacheManagerPeerListenerFactory() |
Modifier and Type | Method and Description |
---|---|
CacheManagerPeerListener |
createCachePeerListener(CacheManager cacheManager,
Properties properties)
Creates a peer provider.
|
protected CacheManagerPeerListener |
doCreateCachePeerListener(String hostName,
Integer port,
Integer remoteObjectPort,
CacheManager cacheManager,
Integer socketTimeoutMillis)
A template method to actually create the factory
|
public static final Integer DEFAULT_SOCKET_TIMEOUT_MILLIS
public final CacheManagerPeerListener createCachePeerListener(CacheManager cacheManager, Properties properties) throws CacheException
CacheManagerPeerListenerFactory
createCachePeerListener
in class CacheManagerPeerListenerFactory
properties
- implementation specific properties. These are configured as comma
separated name value pairs in ehcache.xmlcacheManager
- the CacheManager instance connected to this peer providerCacheException
protected CacheManagerPeerListener doCreateCachePeerListener(String hostName, Integer port, Integer remoteObjectPort, CacheManager cacheManager, Integer socketTimeoutMillis)
hostName
- port
- remoteObjectPort
- cacheManager
- socketTimeoutMillis
- @return a crate CacheManagerPeerListenerCopyright © 2003–2016 Terracotta, Inc.. All rights reserved.