Class BatchingFlowController<T> (2.48.1)

public class BatchingFlowController<T>

Wraps a FlowController for use by batching.

Inheritance

java.lang.Object > BatchingFlowController<T>

Type Parameter

Name Description
T

Constructors

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

public BatchingFlowController(FlowController flowController, ElementCounter<T> elementCounter, ElementCounter<T> byteCounter)
Parameters
Name Description
flowController FlowController
elementCounter ElementCounter<T>
byteCounter ElementCounter<T>

Methods

release(T batch)

public void release(T batch)
Parameter
Name Description
batch T

reserve(T batch)

public void reserve(T batch)
Parameter
Name Description
batch T
Exceptions
Type Description
FlowController.FlowControlException