public interface ReplicationQueue extends Lifecycle
Modifier and Type | Method and Description |
---|---|
void |
add(ReplicableCommand job)
Adds a new command to the replication queue.
|
int |
flush()
Flushes existing jobs in the replication queue, and returns the number of jobs flushed.
|
int |
getElementsCount() |
boolean |
isEnabled() |
void |
reset()
Resets the replication queue, typically used when a cache is restarted.
|
boolean isEnabled()
void add(ReplicableCommand job)
job
- command to add to the queueint flush()
int getElementsCount()
void reset()
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.