|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.modeshape.graph.connector.RepositoryConnectionPool.ConnectionWrapper
protected class RepositoryConnectionPool.ConnectionWrapper
Constructor Summary | |
---|---|
protected |
RepositoryConnectionPool.ConnectionWrapper(RepositoryConnection connection)
|
Method Summary | |
---|---|
void |
close()
Close this connection to signal that it is no longer needed and that any accumulated resources are to be released. |
void |
execute(ExecutionContext context,
Request request)
Execute the supplied commands against this repository source. |
CachePolicy |
getDefaultCachePolicy()
Get the default cache policy for this repository. |
protected RepositoryConnection |
getOriginal()
|
String |
getSourceName()
Get the name for this repository source. |
long |
getTimeCreated()
|
long |
getTimeLastUsed()
|
XAResource |
getXAResource()
Return the transactional resource associated with this connection. |
boolean |
ping(long time,
TimeUnit unit)
Ping the underlying system to determine if the connection is still valid and alive. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected RepositoryConnectionPool.ConnectionWrapper(RepositoryConnection connection)
Method Detail |
---|
protected RepositoryConnection getOriginal()
public long getTimeLastUsed()
public long getTimeCreated()
public String getSourceName()
returned
by the same RepositorySource
that created this connection.
getSourceName
in interface RepositoryConnection
public XAResource getXAResource()
getXAResource
in interface RepositoryConnection
public CachePolicy getDefaultCachePolicy()
getDefaultCachePolicy
in interface RepositoryConnection
public void execute(ExecutionContext context, Request request) throws RepositorySourceException
execute
in interface RepositoryConnection
context
- the environment in which the commands are being executed; never nullrequest
- the request to be executed; never null
RepositorySourceException
- if there is a problem loading the node dataRepositoryConnection.execute(org.modeshape.graph.ExecutionContext,
org.modeshape.graph.request.Request)
public boolean ping(long time, TimeUnit unit) throws InterruptedException
ping
in interface RepositoryConnection
time
- the length of time to wait before timing outunit
- the time unit to use; may not be null
InterruptedException
- if the thread has been interrupted during the operationpublic void close()
close
in interface RepositoryConnection
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |