|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.cache.ReplicationQueue
public class ReplicationQueue
Periodically (or when certain size is exceeded) takes elements and replicates them.
| Constructor Summary | |
|---|---|
ReplicationQueue()
|
|
ReplicationQueue(CacheImpl cache,
long interval,
long max_elements)
Constructs a new ReplicationQueue. |
|
| Method Summary | |
|---|---|
void |
add(MethodCall job)
Adds a new method call. |
void |
flush()
Flushes existing method calls. |
long |
getInterval()
Returns the flush interval in milliseconds. |
long |
getMax_elements()
Returns the maximum number of elements to hold. |
void |
setInterval(long interval)
Sets the flush interval in milliseconds. |
void |
setMax_elements(long max_elements)
Sets the maximum number of elements to hold. |
void |
start()
Starts the asynchronous flush queue. |
void |
stop()
Stops the asynchronous flush queue. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ReplicationQueue()
public ReplicationQueue(CacheImpl cache,
long interval,
long max_elements)
| Method Detail |
|---|
public long getInterval()
public void setInterval(long interval)
public long getMax_elements()
public void setMax_elements(long max_elements)
public void start()
public void stop()
public void add(MethodCall job)
public void flush()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||