org.eclipse.jpt.common.utility.synchronizers
Interface CallbackSynchronizer

All Superinterfaces:
Synchronizer
All Known Implementing Classes:
CallbackSynchronizer.Null

public interface CallbackSynchronizer
extends Synchronizer

Extend Synchronizer to notify listeners when a synchronization "cycle" is complete; i.e. the synchronization has, for the moment, quiesced.


Nested Class Summary
static interface CallbackSynchronizer.Listener
          Interface implemented by listeners to be notified whenever the synchronizer has quiesced.
static class CallbackSynchronizer.Null
          Singleton implementation of the CallbackSynchronizer interface that will do nothing.
 
Method Summary
 void addListener(CallbackSynchronizer.Listener listener)
          Add the specified listener to be notified whenever the synchronizer has quiesced.
 void removeListener(CallbackSynchronizer.Listener listener)
          Remove the specified listener.
 
Methods inherited from interface org.eclipse.jpt.common.utility.synchronizers.Synchronizer
start, stop, synchronize
 

Method Detail

addListener

void addListener(CallbackSynchronizer.Listener listener)
Add the specified listener to be notified whenever the synchronizer has quiesced.

See Also:
removeListener(Listener)

removeListener

void removeListener(CallbackSynchronizer.Listener listener)
Remove the specified listener.

See Also:
addListener(Listener)