|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 TriplestoreSessionPool
public void release(TriplestoreSession session)
TriplestoreSessionPool
release
in interface TriplestoreSessionPool
public java.lang.String[] listTupleLanguages()
listTupleLanguages
in interface TriplestoreSessionPool
public java.lang.String[] listTripleLanguages()
listTripleLanguages
in interface TriplestoreSessionPool
public int getInUseCount()
TriplestoreSessionPool
getInUseCount
in interface TriplestoreSessionPool
public int getFreeCount()
TriplestoreSessionPool
getFreeCount
in interface TriplestoreSessionPool
public void close() throws TrippiException
TriplestoreSessionPool
close
in interface TriplestoreSessionPool
TrippiException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |