com.atlassian.confluence.cluster.coherence
Class TangosolClusteredFifoBuffer

java.lang.Object
  extended by com.atlassian.confluence.cluster.coherence.TangosolClusteredFifoBuffer
All Implemented Interfaces:
com.atlassian.core.task.FifoBuffer

public class TangosolClusteredFifoBuffer
extends Object
implements com.atlassian.core.task.FifoBuffer


Constructor Summary
TangosolClusteredFifoBuffer(com.tangosol.net.NamedCache cache)
           
 
Method Summary
 void add(Object oValue)
           
 void clear()
           
 Collection<Object> getItems()
           
 Object remove()
           
 int size()
          Note that this method will return the number of items currently in the buffer, which is not necessarily the numbers of items added - number of items removed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TangosolClusteredFifoBuffer

public TangosolClusteredFifoBuffer(com.tangosol.net.NamedCache cache)
Method Detail

size

public int size()
Note that this method will return the number of items currently in the buffer, which is not necessarily the numbers of items added - number of items removed.

Specified by:
size in interface com.atlassian.core.task.FifoBuffer
Returns:
the number of items currently stored in the cache

getItems

public Collection<Object> getItems()
Specified by:
getItems in interface com.atlassian.core.task.FifoBuffer

clear

public void clear()
Specified by:
clear in interface com.atlassian.core.task.FifoBuffer

add

public void add(Object oValue)
Specified by:
add in interface com.atlassian.core.task.FifoBuffer

remove

public Object remove()
Specified by:
remove in interface com.atlassian.core.task.FifoBuffer


Copyright © 2003-2012 Atlassian. All Rights Reserved.