Class StreamProbe

  • All Implemented Interfaces:
    Probe

    public class StreamProbe
    extends Object
    implements Probe
    A probe to detect when computation has been terminated due to failure. A delay is applied before returning the failure code.
    Since:
    11.1
    • Field Detail

      • STREAM_PROBE_DELAY_DEFAULT

        public static final Duration STREAM_PROBE_DELAY_DEFAULT
      • globalFailureCount

        protected io.dropwizard.metrics5.Counter globalFailureCount
      • detected

        protected Long detected
    • Constructor Detail

      • StreamProbe

        public StreamProbe()
    • Method Detail

      • getTimeout

        protected Duration getTimeout()
      • getFailures

        protected long getFailures()
      • getCounter

        protected io.dropwizard.metrics5.Counter getCounter()
      • reset

        public void reset()
        Reset failure counter for testing purpose.
        Since:
        11.1