org.jboss.cache
Class ReplicationQueue

java.lang.Object
  extended byorg.jboss.cache.ReplicationQueue

public class ReplicationQueue
extends java.lang.Object

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


Nested Class Summary
 class ReplicationQueue.MyTask (src)
           
 
Constructor Summary
ReplicationQueue()
           
ReplicationQueue(TreeCache (src)  cache, long interval, long max_elements)
           
 
Method Summary
 void add(MethodCall job)
           
 void flush()
           
 long getInterval()
           
 long getMax_elements()
           
 void setInterval(long interval)
           
 void setMax_elements(long max_elements)
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReplicationQueue

public ReplicationQueue()

ReplicationQueue

public ReplicationQueue(TreeCache (src)  cache,
                        long interval,
                        long max_elements)
Method Detail

getInterval

public long getInterval()

setInterval

public void setInterval(long interval)

getMax_elements

public long getMax_elements()

setMax_elements

public void setMax_elements(long max_elements)

start

public void start()

stop

public void stop()

add

public void add(MethodCall job)

flush

public void flush()