Class UriTrigger
java.lang.Object
com.arpnetworking.configuration.triggers.UriTrigger
- All Implemented Interfaces:
Trigger
Trigger
implementation based on a uri's last modified date and
ETag. Either can trigger a reload; the last modified if is later than the
previous value or the ETag if it differs from the previous value. If
the uri is unavailable it is not considered changed to prevent flickering
caused by connectivity or server issues.- Author:
- Ville Koskela (ville dot koskela at inscopemetrics dot com)
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Evaluate the trigger.Generate a Steno log compatible representation.toString()
-
Method Details
-
evaluateAndReset
public boolean evaluateAndReset()Description copied from interface:Trigger
Evaluate the trigger. True indicates the trigger has been tripped. Evaluating the trigger will reset its state and the trigger will not return true again until it is tripped again.- Specified by:
evaluateAndReset
in interfaceTrigger
- Returns:
- True if and only if the trigger has been tripped.
-
toLogValue
Generate a Steno log compatible representation.- Returns:
- Steno log compatible representation.
-
toString
-