|
||||||||||
| 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
|
+--java.util.Vector
|
+--java.util.Stack
|
+--jason.service.pool.PassivePool
This class represents the passive pool of threads which are waiting to service clients.
This class is implemented over a java.util.Stack and is more of a data oriented class.
Author - Sanjay"Ironluca"Debnath Ironluca@yahoo.com
Last Modified - 9/03/2001
| Field Summary | |
protected int |
presentSize
Present size of the PassivePool. |
protected java.lang.Class |
threadClass
The class for which the Passive Pool is being maintained. |
| Fields inherited from class java.util.Vector |
capacityIncrement, elementCount, elementData |
| Fields inherited from class java.util.AbstractList |
modCount |
| Constructor Summary | |
PassivePool(java.lang.Class threadClass)
The only visible constructor for the class. |
|
| Method Summary | |
int |
getPresentSize()
Returns the presentSize of the PassivePool. |
java.lang.Class |
getThreadClass()
This method returns the class for which the pool is being maintained. |
java.lang.Object |
pop()
This method is overridden to decrement the presentSize when an object is popped. |
java.lang.Object |
push(java.lang.Object threadCapsuleObj)
This method is overridden to increment the presentSize when an object is pushed. |
void |
setSize(int newSize)
This method of Stack class is being overridden - the functionality remains the same as in Vector this method reduces the size of the passivePool. |
| Methods inherited from class java.util.Stack |
empty, peek, search |
| Methods inherited from class java.util.Vector |
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, size, subList, toArray, toArray, toString, trimToSize |
| Methods inherited from class java.util.AbstractList |
iterator, listIterator, listIterator |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
iterator, listIterator, listIterator |
| Field Detail |
protected int presentSize
protected java.lang.Class threadClass
| Constructor Detail |
public PassivePool(java.lang.Class threadClass)
threadClass - The Class for which the passive pool is maintained.| Method Detail |
public int getPresentSize()
getPresentSize in interface PassivePoolIntpublic java.lang.Object pop()
pop in interface PassivePoolIntpop in class java.util.Stackpublic java.lang.Object push(java.lang.Object threadCapsuleObj)
push in interface PassivePoolIntpush in class java.util.Stackpublic java.lang.Class getThreadClass()
getThreadClass in interface PassivePoolIntpublic void setSize(int newSize)
setSize in interface PassivePoolIntsetSize in class java.util.Vector
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||