|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.backsource.xindice.XindicePool
A simple Xindice pool.
This is a pool for a particular base xindice uri, such as xmldb:xindice:///db or xmldb:xindice://server:4080/db/. It pools XincdiceAdapter instances, which is actully an adapter for a connection to a specifyed Collection. It will only ever hold one connection for each collection. So for example: getting an adapter for the collection /latest, will create one new if it was never created or let the caller wait until the one created gets available.
| Constructor Summary | |
XindicePool(java.lang.String url)
Construct a pool for the specifyed base xindice uri. |
|
| Method Summary | |
void |
close()
|
XindiceAdapter |
getAdapter(java.lang.String col)
Get an adapter for the given collection name (relative to the base url), create a new one if newer created or wait until it gets available. |
void |
leaveAdapter(XindiceAdapter ad)
Leave the adapter back to the pool. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public XindicePool(java.lang.String url)
| Method Detail |
public XindiceAdapter getAdapter(java.lang.String col)
throws XindiceException
leaveAdapter(org.backsource.xindice.XindiceAdapter) in a finally when the method ends that uses the returned adapter.
XindiceException
public void leaveAdapter(XindiceAdapter ad)
throws XindiceException
XindiceException
public void close()
throws XindiceException
XindiceException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||