Class ThrottleMessages<T>

java.lang.Object
net.bluemind.lib.vertx.utils.ThrottleMessages<T>
All Implemented Interfaces:
io.vertx.core.Handler<io.vertx.core.eventbus.Message<T>>

public class ThrottleMessages<T> extends Object implements io.vertx.core.Handler<io.vertx.core.eventbus.Message<T>>
  • Constructor Details

    • ThrottleMessages

      public ThrottleMessages(Function<io.vertx.core.eventbus.Message<T>,Object> eventToKey, io.vertx.core.Handler<io.vertx.core.eventbus.Message<T>> wrappedHandler, io.vertx.core.Vertx vertx, IntSupplier throttleTimeInMs)
  • Method Details

    • handle

      public void handle(io.vertx.core.eventbus.Message<T> event)
      Specified by:
      handle in interface io.vertx.core.Handler<T>