Class SampleMode


  • public class SampleMode
    extends Object
    Archive engine sample mode description
    Author:
    Kay Kasemir
    • Constructor Detail

      • SampleMode

        public SampleMode​(boolean monitor,
                          double delta,
                          double period)
        Initialize
        Parameters:
        monitor - Monitor/subscription or active scan?
        delta - Value change threshold
        period - (Expected) update period in seconds
    • Method Detail

      • isMonitor

        public boolean isMonitor()
        Returns:
        true for monitored mode, otherwise scan
      • getDelta

        public double getDelta()
        Returns:
        Sample delta for monitored mode
      • getPeriod

        public double getPeriod()
        Returns:
        Scan period resp. expected monitor period in seconds
      • toString

        public String toString()
        Overrides:
        toString in class Object
        Returns:
        Debug representation