Class BatchingFlowController<T> (2.20.0)

Stay organized with collections Save and categorize content based on your preferences.
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