|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.ehcache.distribution.jgroups.JGroupsBootstrapCacheLoader
public class JGroupsBootstrapCacheLoader
Loads Elements from a random Cache Peer
| Field Summary | |
|---|---|
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. |
| Constructor Summary | |
|---|---|
JGroupsBootstrapCacheLoader(boolean asynchronous,
int maximumChunkSize)
Creates a bootstrap cache loader that will work with RMI based distribution |
|
| Method Summary | |
|---|---|
Object |
clone()
Clones this loader |
int |
getMaximumChunkSizeBytes()
Gets the maximum chunk size |
boolean |
isAsynchronous()
|
void |
load(net.sf.ehcache.Ehcache cache)
Bootstraps the cache from a random CachePeer. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected boolean asynchronous
protected int maximumChunkSizeBytes
| Constructor Detail |
|---|
public JGroupsBootstrapCacheLoader(boolean asynchronous,
int maximumChunkSize)
asynchronous - Whether to load asynchronously| Method Detail |
|---|
public void load(net.sf.ehcache.Ehcache cache)
throws net.sf.ehcache.distribution.RemoteCacheException
load in interface net.sf.ehcache.bootstrap.BootstrapCacheLoadernet.sf.ehcache.distribution.RemoteCacheException - if anything goes wrong with the remote callpublic boolean isAsynchronous()
isAsynchronous in interface net.sf.ehcache.bootstrap.BootstrapCacheLoaderpublic int getMaximumChunkSizeBytes()
public Object clone()
throws CloneNotSupportedException
clone in interface net.sf.ehcache.bootstrap.BootstrapCacheLoaderclone in class ObjectCloneNotSupportedException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||