|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.sf.swan.xpath.util.SelectorPool
Utility for using Selectors
in a thread-safe
manner. Clients take
a Selector
from the pool when
one is needed and return it
when they are done. The pool
retains one Selector
as a prototype that is used to
create Selectors
as needed.
If no prototype is available, this component invokes create()
on itself to create a new instance.
Constructor Summary | |
SelectorPool()
|
|
SelectorPool(Selector prototype)
|
Method Summary | |
protected Selector |
create()
|
void |
put(Selector freeSelector)
|
Selector |
take()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SelectorPool()
public SelectorPool(Selector prototype)
Method Detail |
public Selector take()
public void put(Selector freeSelector)
protected Selector create()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |