public class Throttle<T>
extends java.lang.Object
implements io.vertx.core.Handler<io.vertx.core.eventbus.Message<T>>
Constructor and Description |
---|
Throttle(io.vertx.core.Handler<io.vertx.core.eventbus.Message<T>> wrappedHandler,
java.util.function.BiFunction<io.vertx.core.eventbus.Message<T>,io.vertx.core.eventbus.Message<T>,io.vertx.core.eventbus.Message<T>> accu,
io.vertx.core.Vertx vertx,
int throttleTimeInMs) |
Throttle(io.vertx.core.Handler<io.vertx.core.eventbus.Message<T>> wrappedHandler,
io.vertx.core.Vertx vertx,
int throttleTimeInMs) |
Modifier and Type | Method and Description |
---|---|
static <T> java.util.function.BiFunction<io.vertx.core.eventbus.Message<T>,io.vertx.core.eventbus.Message<T>,io.vertx.core.eventbus.Message<T>> |
firstAccumulator() |
void |
handle(io.vertx.core.eventbus.Message<T> event) |
static <T> java.util.function.BiFunction<io.vertx.core.eventbus.Message<T>,io.vertx.core.eventbus.Message<T>,io.vertx.core.eventbus.Message<T>> |
lastAccumulator() |
public Throttle(io.vertx.core.Handler<io.vertx.core.eventbus.Message<T>> wrappedHandler, java.util.function.BiFunction<io.vertx.core.eventbus.Message<T>,io.vertx.core.eventbus.Message<T>,io.vertx.core.eventbus.Message<T>> accu, io.vertx.core.Vertx vertx, int throttleTimeInMs)
public Throttle(io.vertx.core.Handler<io.vertx.core.eventbus.Message<T>> wrappedHandler, io.vertx.core.Vertx vertx, int throttleTimeInMs)
public static <T> java.util.function.BiFunction<io.vertx.core.eventbus.Message<T>,io.vertx.core.eventbus.Message<T>,io.vertx.core.eventbus.Message<T>> lastAccumulator()
public static <T> java.util.function.BiFunction<io.vertx.core.eventbus.Message<T>,io.vertx.core.eventbus.Message<T>,io.vertx.core.eventbus.Message<T>> firstAccumulator()
Copyright © 2021. All Rights Reserved.