Class HttpProbeSpec

  • All Implemented Interfaces:
    com.intershop.gradle.icm.utils.ProbeSpec , java.io.Serializable

    
    public final class HttpProbeSpec
     implements ProbeSpec
                        

    Describes a HttpProbe.

    • Method Detail

      • createProbe

         Probe createProbe(Logger logger, ProgressLoggerFactory progressLoggerFactory, Function1<Unit, Unit> onSuccess, Function1<Unit, Unit> onFailure)

        Creates the described Probe.

        The callbacks are parameters rather than properties of the description on purpose: they are behaviour, they close over the state of the executing task and they are not Serializable, so keeping them in the description would make it unusable as a task input.

        Returns:

        the probe to execute