public interface RemoteCommitListener extends Closeable
import org.apache.openjpa.event.*;
import org.apache.openjpa.conf.*;
OpenJPAConfiguration
conf =
factory.getConfiguraiton ();
RemoteCommitListener l = new RemoteCommitListener () {
public void afterCommit (RemoteCommitEvent
e) {
// update a Swing widget when remote brokers make
// changes to reference data }
public void close () { } };
conf.getRemoteCommitEventManager ().addListener (l);
Modifier and Type | Method and Description |
---|---|
void |
afterCommit(RemoteCommitEvent event)
Notification that a transaction associated with a different
BrokerFactory has successfully committed.
|
void |
close()
Free the resources used by this listener.
|
void afterCommit(RemoteCommitEvent event)
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.