Dali Provisional API
Release 3.2

org.eclipse.jpt.common.utility.command
Interface NotifyingRepeatingCommand

All Superinterfaces:
Command, InterruptibleCommand, RepeatingCommand

public interface NotifyingRepeatingCommand
extends RepeatingCommand

Extend the repeating command to support listeners that are notified when an execution "cycle" is complete; i.e. the command has, for the moment, handled every execution request and quiesced. This notification is not guaranteed to occur with every execution "cycle"; since other, unrelated, executions can be triggered concurrently, causing the "cycle" to continue.

Provisional API: This interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.


Nested Class Summary
static interface NotifyingRepeatingCommand.Listener
          Interface implemented by listeners to be notified whenever the command has quiesced.
 
Method Summary
 void addListener(NotifyingRepeatingCommand.Listener listener)
          Add the specified listener.
 void removeListener(NotifyingRepeatingCommand.Listener listener)
          Remove the specified listener.
 
Methods inherited from interface org.eclipse.jpt.common.utility.command.RepeatingCommand
start, stop
 
Methods inherited from interface org.eclipse.jpt.common.utility.command.Command
execute
 

Method Detail

addListener

void addListener(NotifyingRepeatingCommand.Listener listener)
Add the specified listener.


removeListener

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


Dali Provisional API
Release 3.2

Copyright (c) 2012 Oracle. All rights reserved.