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>
    Within
    within​(Wrapper<T> t, int millis, com.fluxtion.api.partition.LambdaReflection.SerializableFunction<E,​S> supplier)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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()
      Specified by:
      passed in interface Test
    • within

      public static <T,​ S extends java.lang.Integer,​ E> Within within​(Wrapper<T> t, int millis, com.fluxtion.api.partition.LambdaReflection.SerializableFunction<E,​S> supplier)