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