Class Within
java.lang.Object
com.fluxtion.ext.streaming.api.test.Within
- All Implemented Interfaces:
Test
public class Within extends java.lang.Object implements Test
A
Test
that reports true if the monitored object has notified a
change within the window specified. The window can be any numeric value
although it is expected usually to be time.- Author:
- Greg Higgins [email protected]
-
Constructor Summary
Constructors Constructor Description Within(int expireMillis, java.lang.Object monitored)
-
Method Summary
Modifier and Type Method Description boolean
expireTest()
void
monitoredUpdate(java.lang.Object monitored)
boolean
passed()
void
setTime(int lastTs)
static <T, S extends java.lang.Integer, E>
Withinwithin(Wrapper<T> t, int millis, com.fluxtion.api.partition.LambdaReflection.SerializableFunction<E,S> supplier)
-
Constructor Details
-
Within
public Within(int expireMillis, java.lang.Object monitored)
-
-
Method Details
-
setTime
public void setTime(int lastTs) -
monitoredUpdate
public void monitoredUpdate(java.lang.Object monitored) -
expireTest
public boolean expireTest() -
passed
public boolean passed() -
within
-