util
Interface Refreshing

All Known Subinterfaces:
ConditionalRefreshing
All Known Implementing Classes:
FlatGroup, IcatMaster, ImageCache, JAcquireDisplay, JAdapterDisplay, JAllskyChronology, JAllskyDisplay, JAntarcticaNight, JBaycamMosaic, JChronology, JDatabaseDisplay, JEarthNight, JEnvironmentDisplay, JEnvironmentDisplay.Headless, JFitsDisplay, JFocusDisplay, JFrameParameter, JHeaderDisplay, JMasterDisplay, JNight, JObjectDisplay, JOffLimit, JOffLimit.Monitor, JOffLimit.Server, JOffsetDisplay, JOffTails, JOffTails.Server, JParameterDisplay, JPhotometryDisplay, JQuickDisplay, JResultsPanel, JSpectrumDisplay, JStella, JSwitchButton, JTargetTable.JRefreshScrollPane, MasterMind, RobotChoreography, TransferListener, WeatherTrigger

public interface Refreshing

A refreshing object is anything that utilizes TimerTasks for updating. Object that change their internal state and that are not event-driven are the mainly implementors of this interface.
The refreshing object has to provide a period and a method that should be called repeatedly. The isFixedRate() method should return true, if scheduling at fixed rate is needed, otherwise a fixed delay schedule is assumed. Implementing objects work together with the ObjectRefresh class.


Method Summary
 long getRefreshInterval()
          Returns the period in milliseconds of the refresh intervall.
 boolean isFixedRate()
          Returns true if fixed rate scheduling is desired, otherwise fixed delay is assumed.
 void refresh()
          The method that should be invoked on refresh.
 

Method Detail

getRefreshInterval

long getRefreshInterval()
Returns the period in milliseconds of the refresh intervall.


isFixedRate

boolean isFixedRate()
Returns true if fixed rate scheduling is desired, otherwise fixed delay is assumed. Returning false is appropriate for blinking cursors, execution is scheduled relative to the last execution. Returning true here is appropriate for cron job, execution is always relative to the first execution.

See Also:
Timer

refresh

void refresh()
The method that should be invoked on refresh. The method must not take any argument.