public interface InputBatch extends MessageBatch<InputBatch>, Input<InputBatch>, InputGroupSupport<InputBatch>
Input batches are received when an output batch is created and sent. Each input batch has a beginning and end, and Vertigo guarantees that a batch will not receive messages until its start handler is called and will not receive messages after its end handler is called.
| Modifier and Type | Method and Description |
|---|---|
<T> InputBatch |
endHandler(org.vertx.java.core.Handler<T> handler)
Registers an end handler on the batch.
|
<T> InputBatch |
startHandler(org.vertx.java.core.Handler<T> handler)
Registers a start handler on the batch.
|
idmessageHandler, pause, resume, vertxgroupHandler, groupHandler<T> InputBatch startHandler(org.vertx.java.core.Handler<T> handler)
handler - A handler to be called when the batch is started.<T> InputBatch endHandler(org.vertx.java.core.Handler<T> handler)
handler - A handler to be called when the batch is ended.Copyright © 2013-2014. All Rights Reserved.