com.atlassian.confluence.cluster.coherence
Class TangosolClusteredFifoBuffer<T>

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

public class TangosolClusteredFifoBuffer<T>
extends java.lang.Object
implements com.atlassian.core.task.FifoBuffer<T>


Constructor Summary
TangosolClusteredFifoBuffer(com.tangosol.net.NamedCache cache)
           
 
Method Summary
 void add(java.lang.Object oValue)
           
 void clear()
           
 java.util.Collection<T> getItems()
           
 T 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<T>
Returns:
the number of items currently stored in the cache

getItems

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

clear

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

add

public void add(java.lang.Object oValue)
Specified by:
add in interface com.atlassian.core.task.FifoBuffer<T>

remove

public T remove()
Specified by:
remove in interface com.atlassian.core.task.FifoBuffer<T>


Copyright © 2003-2014 Atlassian. All Rights Reserved.