|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.dna.connector.inmemory.InMemoryRepositoryConnection
public class InMemoryRepositoryConnection
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,
GraphCommand... commands)
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public String getSourceName()
returned
by the same RepositorySource
that created this connection.
getSourceName
in interface RepositoryConnection
public CachePolicy getDefaultCachePolicy()
getDefaultCachePolicy
in interface RepositoryConnection
public XAResource getXAResource()
getXAResource
in interface RepositoryConnection
public boolean ping(long time, TimeUnit unit)
ping
in interface RepositoryConnection
time
- the length of time to wait before timing outunit
- the time unit to use; may not be null
public void setListener(RepositorySourceListener listener)
setListener
in interface RepositoryConnection
listener
- the new listener, or null if no component is interested in the change notificationspublic void close()
close
in interface RepositoryConnection
public void execute(ExecutionContext context, GraphCommand... commands) throws RepositorySourceException
execute
in interface RepositoryConnection
context
- the environment in which the commands are being executed; never nullcommands
- the commands to be executed; never null
RepositorySourceException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |