org.jboss.cache.cluster
Class ReplicationQueue

java.lang.Object
  extended by org.jboss.cache.cluster.ReplicationQueue

public class ReplicationQueue
extends Object

Periodically (or when certain size is exceeded) takes elements and replicates them.

Version:
$Revision: 5197 $
Author:
Bela Ban May 24, 2003

Constructor Summary
ReplicationQueue()
           
 
Method Summary
 void add(MethodCall job)
          Adds a new method call.
 void flush()
          Flushes existing method calls.
 boolean isEnabled()
           
 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

ReplicationQueue

public ReplicationQueue()
Method Detail

isEnabled

public boolean isEnabled()

start

public void start()
Starts the asynchronous flush queue.


stop

public void stop()
Stops the asynchronous flush queue.


add

public void add(MethodCall job)
Adds a new method call.


flush

public void flush()
Flushes existing method calls.



Copyright © 2008 JBoss, a division of Red Hat. All Rights Reserved.