| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface RemoteCommitListener
An entity that wishes to be notified when Brokers
 associated with remote BrokerFactories commit.
  A RemoteCommitListener is not notified of commits that originated
 with a Broker created from the BrokerFactory that it is
 registered with. (Of course, if a listener is registered with multiple
 factories, this situation might be complicated a bit.)
  Usage:
  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);
 
| Method Summary | |
|---|---|
|  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. | 
| Method Detail | 
|---|
void afterCommit(RemoteCommitEvent event)
void close()
close in interface Closeable| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||