Class HystrixMetricHandler

java.lang.Object
io.vertx.mutiny.circuitbreaker.HystrixMetricHandler
All Implemented Interfaces:
MutinyDelegate, io.vertx.core.Handler<RoutingContext>, Consumer<RoutingContext>

public class HystrixMetricHandler extends Object implements MutinyDelegate, io.vertx.core.Handler<RoutingContext>, Consumer<RoutingContext>
A Vert.x web handler to expose the circuit breaker to the Hystrix dasbboard. The handler listens to the circuit breaker notifications sent on the event bus.

NOTE: This class has been automatically generated from the original non Mutiny-ified interface using Vert.x codegen.

  • Field Details

  • Constructor Details

    • HystrixMetricHandler

      public HystrixMetricHandler(io.vertx.circuitbreaker.HystrixMetricHandler delegate)
    • HystrixMetricHandler

      public HystrixMetricHandler(Object delegate)
  • Method Details

    • getDelegate

      public io.vertx.circuitbreaker.HystrixMetricHandler getDelegate()
      Specified by:
      getDelegate in interface MutinyDelegate
      Returns:
      the delegate used by this Mutiny object of generated type
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • handle

      public void handle(RoutingContext arg0)
      Specified by:
      handle in interface io.vertx.core.Handler<RoutingContext>
    • create

      public static HystrixMetricHandler create(Vertx vertx)
      Parameters:
      vertx - the Vert.x instance
      Returns:
      the handler
    • create

      public static HystrixMetricHandler create(Vertx vertx, String address)
      Parameters:
      vertx - the Vert.x instance
      address - the address to listen on the event bus
      Returns:
      the handler
    • create

      public static HystrixMetricHandler create(Vertx vertx, String address, boolean localOnly)
      Parameters:
      vertx - the Vert.x instance
      address - the address to listen on the event bus
      localOnly - whether the consumer should only receive messages sent from this Vert.x instance
      Returns:
      the handler
    • accept

      public void accept(RoutingContext item)
      Specified by:
      accept in interface Consumer<RoutingContext>
    • newInstance

      public static HystrixMetricHandler newInstance(io.vertx.circuitbreaker.HystrixMetricHandler arg)