public class JGroupsBootstrapCacheLoader
extends java.lang.Object
implements com.fr.third.net.sf.ehcache.bootstrap.BootstrapCacheLoader
限定符和类型 | 字段和说明 |
---|---|
protected boolean |
asynchronous
Whether to load asynchronously
|
protected int |
maximumChunkSizeBytes
The maximum serialized size of the elements to request from a remote cache peer during bootstrap.
|
构造器和说明 |
---|
JGroupsBootstrapCacheLoader(boolean asynchronous,
int maximumChunkSize)
Creates a bootstrap cache loader that will work with RMI based distribution
|
限定符和类型 | 方法和说明 |
---|---|
java.lang.Object |
clone()
Clones this loader
|
int |
getMaximumChunkSizeBytes()
Gets the maximum chunk size
|
boolean |
isAsynchronous() |
void |
load(com.fr.third.net.sf.ehcache.Ehcache cache)
Bootstraps the cache from a random CachePeer.
|
protected boolean asynchronous
protected int maximumChunkSizeBytes
public JGroupsBootstrapCacheLoader(boolean asynchronous, int maximumChunkSize)
asynchronous
- Whether to load asynchronouslypublic void load(com.fr.third.net.sf.ehcache.Ehcache cache) throws com.fr.third.net.sf.ehcache.distribution.RemoteCacheException
load
在接口中 com.fr.third.net.sf.ehcache.bootstrap.BootstrapCacheLoader
com.fr.third.net.sf.ehcache.distribution.RemoteCacheException
- if anything goes wrong with the remote callpublic boolean isAsynchronous()
isAsynchronous
在接口中 com.fr.third.net.sf.ehcache.bootstrap.BootstrapCacheLoader
public int getMaximumChunkSizeBytes()
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
在接口中 com.fr.third.net.sf.ehcache.bootstrap.BootstrapCacheLoader
clone
在类中 java.lang.Object
java.lang.CloneNotSupportedException