T - The output type.public class Feeder<T extends Output<T>> extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T extends Output<T>> |
createFeeder(T output)
Creates a new feeder.
|
Feeder<T> |
feedHandler(org.vertx.java.core.Handler<T> handler)
Sets a feed handler on the feeder.
|
long |
getFeedDelay()
Returns the period the feeder will wait after a failed feed handler call.
|
Feeder<T> |
setFeedDelay(long feedDelay)
Sets the period the feeder will wait before calling the feed handler again
if the feed handler is called but no messages are produced.
|
void |
start()
Starts the feeder.
|
void |
stop()
Stops the feeder.
|
public Feeder(T output)
public static <T extends Output<T>> Feeder<T> createFeeder(T output)
output - The output to which to feed messages.public Feeder<T> feedHandler(org.vertx.java.core.Handler<T> handler)
handler - A handler to be called each time a message should be
fed to the feeder.public Feeder<T> setFeedDelay(long feedDelay)
feedDelay - The feed delay in milliseconds.public long getFeedDelay()
10 milliseconds.public void start()
public void stop()
Copyright © 2013-2014. All Rights Reserved.