|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
@NotThreadSafe public interface RepositoryConnection

A connection to a repository source.
These connections need not support concurrent operations by multiple threads.
| 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. |
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. |
void |
setListener(RepositorySourceListener listener)
Set the listener that is to receive notifications to changes to content within this source. |
| Method Detail |
|---|
String getSourceName()
returned
by the same RepositorySource that created this connection.
XAResource getXAResource()
boolean ping(long time,
TimeUnit unit)
throws InterruptedException
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 operationvoid setListener(RepositorySourceListener listener)
listener - the new listener, or null if no component is interested in the change notificationsCachePolicy getDefaultCachePolicy()
void execute(ExecutionContext context,
Request request)
throws RepositorySourceException
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 datavoid close()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||