| org.apache.openjpa.event.RemoteCommitProvider
All known Subclasses: org.apache.openjpa.event.AbstractRemoteCommitProvider,
RemoteCommitProvider | public interface RemoteCommitProvider extends Closeable(Code) | | An entity that is responsible for communicating commit
notification to other
RemoteCommitEventManager s. Each
event manager creates a remote commit provider, based on
the values of the openjpa.RemoteCommitProvider
configuration property.
An adapter that implements
TransactionListener is
registered with each
org.apache.openjpa.kernel.Broker . This adapter
invokes broadcast , which is responsible for
notifying other remote commit provider objects of the commit changes.
Upon receiving a notification from a different remote commit provider,
a provider must notify all local remote commit listeners via the
RemoteCommitEventManager.fireEvent method.
A remote commit provider must not fire remote events for
commits that originated with a local broker.
author: Patrick Linskey since: 0.2.5.0 |
broadcast | public void broadcast(RemoteCommitEvent event)(Code) | | Notifies other remote event managers in this JVM and on other machines
of changes to the cache. This method must not notify the
event manager associated with the broker that originated this commit.
|
close | public void close()(Code) | | Free the resources used by this provider.
|
setRemoteCommitEventManager | public void setRemoteCommitEventManager(RemoteCommitEventManager mgr)(Code) | | Set the "owning" remote event manager to notify when remote events
are received from remote sources.
|
|
|