|
|||||||||
| Home >> All >> org >> jgroups >> [ util overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.jgroups.util
Class BoundedList

java.lang.Objectorg.jgroups.util.List
org.jgroups.util.BoundedList
- All Implemented Interfaces:
- java.lang.Cloneable, java.io.Externalizable, java.io.Serializable
- public class BoundedList
- extends List
A bounded subclass of List, oldest elements are removed once max capacity is exceeded
- Version:
- $Id: BoundedList.java,v 1.2 2004/07/26 15:23:26 belaban Exp $
| Nested Class Summary |
| Nested classes inherited from class org.jgroups.util.List |
List.Element, List.ListEnumerator |
| Field Summary | |
(package private) int |
max_capacity
|
| Fields inherited from class org.jgroups.util.List |
head, mutex, size, tail |
| Constructor Summary | |
BoundedList()
|
|
BoundedList(int size)
|
|
| Method Summary | |
void |
add(java.lang.Object obj)
Adds an element at the tail. |
void |
addAtHead(java.lang.Object obj)
Adds an object to the head, removes an element from the tail if capacity has been exceeded |
| Methods inherited from class org.jgroups.util.List |
clone, contains, copy, dump, elements, getContents, main, peek, peekAtHead, readExternal, remove, removeAll, removeElement, removeFromHead, size, toString, writeExternal |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
max_capacity
int max_capacity
| Constructor Detail |
BoundedList
public BoundedList()
BoundedList
public BoundedList(int size)
| Method Detail |
add
public void add(java.lang.Object obj)
- Adds an element at the tail. Removes an object from the head if capacity is exceeded
addAtHead
public void addAtHead(java.lang.Object obj)
- Adds an object to the head, removes an element from the tail if capacity has been exceeded
|
|||||||||
| Home >> All >> org >> jgroups >> [ util overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC