|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.trippi.impl.base.SingleSessionPool
public class SingleSessionPool
A pool providing access to a single session.
| Constructor Summary | |
|---|---|
SingleSessionPool(TriplestoreSession session,
java.lang.String[] tupleLanguages,
java.lang.String[] tripleLanguages)
|
|
| Method Summary | |
|---|---|
void |
close()
Close all sessions. |
TriplestoreSession |
get()
Get a connection from the pool. |
int |
getFreeCount()
Get the number of sessions not currently in use. |
int |
getInUseCount()
Get the number of sessions currently in use. |
java.lang.String[] |
listTripleLanguages()
|
java.lang.String[] |
listTupleLanguages()
|
void |
release(TriplestoreSession session)
Release a connection 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 SingleSessionPool(TriplestoreSession session,
java.lang.String[] tupleLanguages,
java.lang.String[] tripleLanguages)
| Method Detail |
|---|
public TriplestoreSession get()
TriplestoreSessionPool
get in interface TriplestoreSessionPoolpublic void release(TriplestoreSession session)
TriplestoreSessionPool
release in interface TriplestoreSessionPoolpublic java.lang.String[] listTupleLanguages()
listTupleLanguages in interface TriplestoreSessionPoolpublic java.lang.String[] listTripleLanguages()
listTripleLanguages in interface TriplestoreSessionPoolpublic int getInUseCount()
TriplestoreSessionPool
getInUseCount in interface TriplestoreSessionPoolpublic int getFreeCount()
TriplestoreSessionPool
getFreeCount in interface TriplestoreSessionPool
public void close()
throws TrippiException
TriplestoreSessionPool
close in interface TriplestoreSessionPoolTrippiException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||