|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.modeshape.graph.search.SearchableRepositorySource.AbstractConnection
@NotThreadSafe protected abstract class SearchableRepositorySource.AbstractConnection

| Constructor Summary | |
|---|---|
protected |
SearchableRepositorySource.AbstractConnection()
|
| Method Summary | |
|---|---|
void |
close()
Close this connection to signal that it is no longer needed and that any accumulated resources are to be released. |
protected RepositoryConnection |
delegateConnection()
|
CachePolicy |
getDefaultCachePolicy()
Get the default cache policy for this repository. |
String |
getSourceName()
Get the name for this repository source. |
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 |
| Methods inherited from interface org.modeshape.graph.connector.RepositoryConnection |
|---|
execute |
| Constructor Detail |
|---|
protected SearchableRepositorySource.AbstractConnection()
| Method Detail |
|---|
protected RepositoryConnection delegateConnection()
public boolean ping(long time,
TimeUnit unit)
throws InterruptedException
ping in interface RepositoryConnectiontime - 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 operationRepositoryConnection.ping(long, java.util.concurrent.TimeUnit)public CachePolicy getDefaultCachePolicy()
getDefaultCachePolicy in interface RepositoryConnectionRepositoryConnection.getDefaultCachePolicy()public String getSourceName()
returned
by the same RepositorySource that created this connection.
getSourceName in interface RepositoryConnectionRepositoryConnection.getSourceName()public XAResource getXAResource()
getXAResource in interface RepositoryConnectionRepositoryConnection.getXAResource()public void close()
close in interface RepositoryConnectionRepositoryConnection.close()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||