SolarMetric Kodo JDO 3.3.5 generated on August 31 2005

kodo.event
Interface RemoteCommitListener

All Superinterfaces:
com.solarmetric.util.Closeable
All Known Implementing Classes:
DataCacheImpl, QueryCacheImpl

public interface RemoteCommitListener
extends com.solarmetric.util.Closeable

An entity that wishes to be notified when PersistenceManagers associated with remote PersistenceManagerFactories commit.

A RemoteCommitListener is not notified of commits that originated with a PersistenceManager created from the PersistenceManagerFactory that it is registered with. (Of course, if a listener is registered with multiple factories, this situation might be complicated a bit.)

Usage:

	import kodo.event.*;
	import kodo.conf.*;
	
	JDOConfiguration conf = 
		((KodoPersistenceManagerFactory) pmf).getConfiguraiton ();

	RemoteCommitListener l = new RemoteCommitListener () {
		public void afterCommit (RemoteCommitEvent e) {
			// update a Swing widget when remote PMs make 
			// changes to reference data
		}

		public void close () { }
	};
	
	conf.getRemoteCommitEventManager ().registerListener (l);
	

Since:
2.5.0

Method Summary
 void afterCommit(RemoteCommitEvent event)
          Notification that a transaction associated with a different PersistenceManagerFactory has successfully committed.
 void close()
          Close any resources used by this listener.
 

Method Detail

afterCommit

public void afterCommit(RemoteCommitEvent event)
Notification that a transaction associated with a different PersistenceManagerFactory has successfully committed.

close

public void close()
Close any resources used by this listener.
Specified by:
close in interface com.solarmetric.util.Closeable

SolarMetric Kodo JDO 3.3.5 generated on August 31 2005

Copyright 2001,2002 SolarMetric, Inc. All Rights Reserved.