Class BatchingFlowController<T> (2.14.0)

public class BatchingFlowController<T>

Wraps a FlowController for use by batching.

Inheritance

java.lang.Object > BatchingFlowController<T>

Type Parameter

NameDescription
T

Constructors

BatchingFlowController(FlowController flowController, ElementCounter<T> elementCounter, ElementCounter<T> byteCounter)

public BatchingFlowController(FlowController flowController, ElementCounter<T> elementCounter, ElementCounter<T> byteCounter)
Parameters
NameDescription
flowControllerFlowController
elementCounterElementCounter<T>
byteCounterElementCounter<T>

Methods

release(T batch)

public void release(T batch)
Parameter
NameDescription
batchT

reserve(T batch)

public void reserve(T batch)
Parameter
NameDescription
batchT
Exceptions
TypeDescription
FlowController.FlowControlException