public interface IntervalAdapter extends IntervalListener
IntervalListener with empty default method
implementations| Modifier and Type | Method and Description |
|---|---|
default long |
getInterval()
Return desired interval width in nanoseconds.
|
default void |
onInterval()
Called with frequency set by
IntervalListener.getInterval(). |
default long getInterval()
IntervalListenerIntervals.MIN_INTERVAL. You can use other constants in
Intervals class for common intervals, but you are not required to.getInterval in interface IntervalListenerdefault void onInterval()
IntervalListenerIntervalListener.getInterval(). Useful as replacement
for
BarDataListener#onBar(velox.api.layer1.layers.utils.OrderBook, Bar)
when you don't really need the bar itself and just want a timer functionality
(keep in mind, that indicator time is not bound to computer clock, so using
general-purpose timers won't work in many cases)onInterval in interface IntervalListener