Package net.bluemind.lib.vertx.utils
Class Throttle<T>
java.lang.Object
net.bluemind.lib.vertx.utils.Throttle<T>
- All Implemented Interfaces:
io.vertx.core.Handler<io.vertx.core.eventbus.Message<T>>
public class Throttle<T>
extends Object
implements io.vertx.core.Handler<io.vertx.core.eventbus.Message<T>>
-
Constructor Summary
ConstructorDescriptionThrottle
(io.vertx.core.Handler<io.vertx.core.eventbus.Message<T>> wrappedHandler, io.vertx.core.Vertx vertx, int throttleTimeInMs) Throttle
(io.vertx.core.Handler<io.vertx.core.eventbus.Message<T>> wrappedHandler, BinaryOperator<io.vertx.core.eventbus.Message<T>> accu, io.vertx.core.Vertx vertx, IntSupplier throttleTimeInMs) -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> BinaryOperator
<io.vertx.core.eventbus.Message<T>> void
static <T> BinaryOperator
<io.vertx.core.eventbus.Message<T>>
-
Constructor Details
-
Throttle
public Throttle(io.vertx.core.Handler<io.vertx.core.eventbus.Message<T>> wrappedHandler, BinaryOperator<io.vertx.core.eventbus.Message<T>> accu, io.vertx.core.Vertx vertx, IntSupplier throttleTimeInMs) -
Throttle
public Throttle(io.vertx.core.Handler<io.vertx.core.eventbus.Message<T>> wrappedHandler, io.vertx.core.Vertx vertx, int throttleTimeInMs)
-
-
Method Details
-
lastAccumulator
-
firstAccumulator
-
handle
- Specified by:
handle
in interfaceio.vertx.core.Handler<T>
-