Dali Provisional API
Release 3.2

org.eclipse.jpt.common.core.utility.command
Interface NotifyingRepeatingJobCommand

All Superinterfaces:
InterruptibleJobCommand, JobCommand, RepeatingJobCommand
All Known Implementing Classes:
NotifyingRepeatingJobCommand.Null

public interface NotifyingRepeatingJobCommand
extends RepeatingJobCommand

Extend the repeating job command to support listeners that are notified when an execution "cycle" is complete; i.e. the job 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 NotifyingRepeatingJobCommand.Listener
          Interface implemented by listeners to be notified whenever the job command has quiesced.
static class NotifyingRepeatingJobCommand.Null
          Singleton implementation of the notifying repeating command interface that will do nothing when executed.
 
Nested classes/interfaces inherited from interface org.eclipse.jpt.common.core.utility.command.JobCommand
JobCommand.Disabled
 
Nested classes/interfaces inherited from interface org.eclipse.jpt.common.core.utility.command.InterruptibleJobCommand
InterruptibleJobCommand.Interrupted
 
Method Summary
 void addListener(NotifyingRepeatingJobCommand.Listener listener)
          Add the specified listener.
 void removeListener(NotifyingRepeatingJobCommand.Listener listener)
          Remove the specified listener.
 
Methods inherited from interface org.eclipse.jpt.common.core.utility.command.RepeatingJobCommand
start, stop
 
Methods inherited from interface org.eclipse.jpt.common.core.utility.command.JobCommand
execute
 

Method Detail

addListener

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


removeListener

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


Dali Provisional API
Release 3.2

Copyright (c) 2012 Oracle. All rights reserved.