Class DefaultAutoRefreshSupport
- java.lang.Object
-
- org.opennms.features.topology.app.internal.DefaultAutoRefreshSupport
-
- All Implemented Interfaces:
AutoRefreshSupport
public class DefaultAutoRefreshSupport extends Object implements AutoRefreshSupport
-
-
Constructor Summary
Constructors Constructor Description DefaultAutoRefreshSupport()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetInterval()booleanisEnabled()voidsetEnabled(boolean value)voidsetInterval(long secondsToWait)Sets the interval in seconds you have to wait until the next refresh is invoked.booleantoggle()Toggles isEnabled and returns the new value.
-
-
-
Method Detail
-
isEnabled
public boolean isEnabled()
- Specified by:
isEnabledin interfaceAutoRefreshSupport
-
setEnabled
public void setEnabled(boolean value)
- Specified by:
setEnabledin interfaceAutoRefreshSupport
-
toggle
public boolean toggle()
Description copied from interface:AutoRefreshSupportToggles isEnabled and returns the new value.- Specified by:
togglein interfaceAutoRefreshSupport- Returns:
- the value you would get from
AutoRefreshSupport.isEnabled().
-
setInterval
public void setInterval(long secondsToWait)
Description copied from interface:AutoRefreshSupportSets the interval in seconds you have to wait until the next refresh is invoked.- Specified by:
setIntervalin interfaceAutoRefreshSupport- Parameters:
secondsToWait- the delay until the next refresh is performed (in seconds).
-
getInterval
public long getInterval()
- Specified by:
getIntervalin interfaceAutoRefreshSupport
-
-