Interface CanaryDeployment.ProbeReader

Enclosing class:
CanaryDeployment
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface CanaryDeployment.ProbeReader
Optional concrete observation adapter; returning null or throwing means missing probes.
  • Method Summary

    Modifier and Type
    Method
    Description
    read(long revision)
    Retrieves candidate observations for this policy revision only.
  • Method Details

    • read

      CanaryDeployment.Probe read(long revision) throws IOException
      Retrieves candidate observations for this policy revision only.
      Parameters:
      revision - active policy revision
      Returns:
      observations, or null when unavailable
      Throws:
      IOException - for unavailable collector