|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
java.util.AbstractCollection
java.util.AbstractList
com.tangosol.util.SafeLinkedList
com.tangosol.util.RecyclingLinkedList
public class RecyclingLinkedList
Extends SafeLinkedList and adds recycling of Node objects.
| Nested Class Summary | |
|---|---|
protected class |
RecyclingLinkedList.NodeA Node in the List. |
| Field Summary | |
|---|---|
protected static int |
DEFAULT_RECYCLE_MAXThe default maximum number of Nodes to recycle. |
protected RecyclingLinkedList.Node[] |
m_anodeRecycledThe Nodes to recycle. |
protected int |
m_cRecycleMaxThe maximum number of Nodes to recycle. |
protected int |
m_cRecycleNodesThe current number of Nodes being recycle. |
| Fields inherited from class com.tangosol.util.SafeLinkedList |
|---|
m_cNodes, m_current, m_head, m_iPos, m_tail |
| Fields inherited from class java.util.AbstractList |
|---|
modCount |
| Constructor Summary | |
|---|---|
RecyclingLinkedList()Construct an empty List. |
|
RecyclingLinkedList(java.util.Collection collection)Construct a List containing the elements of the specified Collection. |
|
RecyclingLinkedList(java.util.Collection collection, int cMaxRecycle)Construct a List containing the elements of the specified Collection. |
|
RecyclingLinkedList(int cMaxRecycle)Construct an empty List. |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()Create a deep clone of the list. |
protected void |
initRecycling(int cMaxRecycle)Initializing the recycling data structures. |
protected SafeLinkedList.Node |
instantiateNode(java.lang.Object o)Instantiate a Node. |
protected void |
recycleNode(RecyclingLinkedList.Node node)Recycle the passed Node. |
| Methods inherited from class com.tangosol.util.SafeLinkedList |
|---|
add, add, addAll, addAll, clear, contains, containsAll, get, getFirst, getNode, indexOf, lastIndexOf, main, markPosition, remove, remove, removeFirst, reset, set, size, toArray, toArray |
| Methods inherited from class java.util.AbstractList |
|---|
equals, hashCode, iterator, listIterator, listIterator, removeRange, subList |
| Methods inherited from class java.util.AbstractCollection |
|---|
isEmpty, removeAll, retainAll, toString |
| Methods inherited from interface java.util.List |
|---|
equals, hashCode, isEmpty, iterator, listIterator, listIterator, removeAll, retainAll, subList |
| Field Detail |
|---|
protected transient RecyclingLinkedList.Node[] m_anodeRecycled
protected transient int m_cRecycleNodes
protected int m_cRecycleMax
protected static final int DEFAULT_RECYCLE_MAX
| Constructor Detail |
|---|
public RecyclingLinkedList()
public RecyclingLinkedList(int cMaxRecycle)
cMaxRecycle - the maximum number of Nodes to recycle at any given timepublic RecyclingLinkedList(java.util.Collection collection)
collection - the Collection to fill this List from
public RecyclingLinkedList(java.util.Collection collection,
int cMaxRecycle)
collection - the Collection to fill this List fromcMaxRecycle - the maximum number of Nodes to recycle at any given time| Method Detail |
|---|
protected void initRecycling(int cMaxRecycle)
cMaxRecycle - the maximum number of Nodes to recycle at any given timeprotected SafeLinkedList.Node instantiateNode(java.lang.Object o)
instantiateNode in class SafeLinkedListo - the value for the Nodeprotected void recycleNode(RecyclingLinkedList.Node node)
node - the Node object to recyclepublic java.lang.Object clone()
clone in class SafeLinkedList
|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||