Class HeartbeatDiscoveryClientCondition

java.lang.Object
io.micronaut.health.HeartbeatDiscoveryClientCondition
All Implemented Interfaces:
Condition, Predicate<ConditionContext>

@Introspected public final class HeartbeatDiscoveryClientCondition extends Object implements Condition
Custom condition to conditionally enable the heart beat.
Since:
1.1
Author:
graemerocher
  • Constructor Details

    • HeartbeatDiscoveryClientCondition

      public HeartbeatDiscoveryClientCondition()
  • Method Details

    • matches

      public boolean matches(ConditionContext context)
      Description copied from interface: Condition
      Check whether a specific condition is met.
      Specified by:
      matches in interface Condition
      Parameters:
      context - The condition context
      Returns:
      True if has been met