public class BootstrapRequest
extends java.lang.Object
限定符和类型 | 类和说明 |
---|---|
static class |
BootstrapRequest.BootstrapStatus
Possible states of a BootstrapRequest
|
构造器和说明 |
---|
BootstrapRequest(com.fr.third.net.sf.ehcache.Ehcache cache,
boolean asynchronous,
int chunkSize)
Create a new bootstrap request for the specified cache
|
限定符和类型 | 方法和说明 |
---|---|
void |
boostrapComplete(BootstrapRequest.BootstrapStatus status)
Signal that bootstrapping is complete
|
void |
countReplication()
Count a received bootstrap replication
|
BootstrapRequest.BootstrapStatus |
getBootstrapStatus() |
com.fr.third.net.sf.ehcache.Ehcache |
getCache() |
int |
getChunkSize() |
long |
getReplicationCount() |
boolean |
isAsynchronous() |
void |
reset()
Reset the replicationCount and waitForBootstrap latch to their initial states
|
void |
setBootstrapStatus(BootstrapRequest.BootstrapStatus bootstrapStatus) |
java.lang.String |
toString() |
boolean |
waitForBoostrap(long timeout,
java.util.concurrent.TimeUnit unit)
Waits for the receiver to signal that the current bootstrap request is complete
|
public BootstrapRequest(com.fr.third.net.sf.ehcache.Ehcache cache, boolean asynchronous, int chunkSize)
public BootstrapRequest.BootstrapStatus getBootstrapStatus()
public void setBootstrapStatus(BootstrapRequest.BootstrapStatus bootstrapStatus)
bootstrapStatus
- The current status of the bootstrap requestpublic boolean isAsynchronous()
public int getChunkSize()
public void reset()
public void boostrapComplete(BootstrapRequest.BootstrapStatus status)
public boolean waitForBoostrap(long timeout, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException
java.lang.InterruptedException
public void countReplication()
public long getReplicationCount()
public com.fr.third.net.sf.ehcache.Ehcache getCache()
public java.lang.String toString()
toString
在类中 java.lang.Object