public static class RefreshStrategy.LogOnce extends RefreshStrategy.Timed
RefreshStrategy.Composite, RefreshStrategy.ConditionalRefreshStrategy, RefreshStrategy.LogOnce, RefreshStrategy.Timed
interval
Constructor and Description |
---|
LogOnce(long interval) |
Modifier and Type | Method and Description |
---|---|
boolean |
needsRefresh(long secondsSinceLastAccess)
Log once
|
void |
refreshed() |
String |
toString() |
public LogOnce(long interval)
interval
- Interval in seconds after which a warning is logged if there was no
activity.public boolean needsRefresh(long secondsSinceLastAccess)
needsRefresh
in interface RefreshStrategy
needsRefresh
in class RefreshStrategy.Timed
secondsSinceLastAccess
- seconds since last accessfalse
public void refreshed()
refreshed
in interface RefreshStrategy
refreshed
in class RefreshStrategy.Timed
public String toString()
toString
in class RefreshStrategy.Timed
Copyright © 2012–2017 The Apache Software Foundation. All rights reserved.