public class

TangosolClusteredFifoBuffer

extends Object
implements FifoBuffer
java.lang.Object
   ↳ com.atlassian.confluence.cluster.coherence.TangosolClusteredFifoBuffer

Summary

Public Constructors
TangosolClusteredFifoBuffer(NamedCache cache)
Public Methods
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.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.core.task.FifoBuffer

Public Constructors

public TangosolClusteredFifoBuffer (NamedCache cache)

Public Methods

public void add (Object oValue)

public void clear ()

public Collection<Object> getItems ()

public Object remove ()

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.

Returns
  • the number of items currently stored in the cache