Class FlowController (2.83.0)

public class FlowController

Provides flow control capability.

Inheritance

java.lang.Object > FlowController

Constructors

FlowController(DynamicFlowControlSettings settings)

public FlowController(DynamicFlowControlSettings settings)
Parameter
Name Description
settings DynamicFlowControlSettings

FlowController(FlowControlSettings settings)

public FlowController(FlowControlSettings settings)
Parameter
Name Description
settings FlowControlSettings

Methods

decreaseThresholds(long elementSteps, long byteSteps)

public void decreaseThresholds(long elementSteps, long byteSteps)

Decrease flow control limits to allow elementSteps fewer elements and byteSteps fewer request bytes before enforcing flow control.

Parameters
Name Description
elementSteps long
byteSteps long

getCurrentElementCountLimit()

public @Nullable Long getCurrentElementCountLimit()
Returns
Type Description
@org.jspecify.annotations.Nullable java.lang.Long

getCurrentRequestBytesLimit()

public @Nullable Long getCurrentRequestBytesLimit()
Returns
Type Description
@org.jspecify.annotations.Nullable java.lang.Long

getFlowControlEventStats()

public FlowControlEventStats getFlowControlEventStats()
Returns
Type Description
FlowControlEventStats

getMaxElementCountLimit()

public @Nullable Long getMaxElementCountLimit()
Returns
Type Description
@org.jspecify.annotations.Nullable java.lang.Long

getMaxRequestBytesLimit()

public @Nullable Long getMaxRequestBytesLimit()
Returns
Type Description
@org.jspecify.annotations.Nullable java.lang.Long

getMinElementCountLimit()

public @Nullable Long getMinElementCountLimit()
Returns
Type Description
@org.jspecify.annotations.Nullable java.lang.Long

getMinRequestBytesLimit()

public @Nullable Long getMinRequestBytesLimit()
Returns
Type Description
@org.jspecify.annotations.Nullable java.lang.Long

increaseThresholds(long elementSteps, long byteSteps)

public void increaseThresholds(long elementSteps, long byteSteps)

Increase flow control limits to allow extra elementSteps elements and byteSteps request bytes before enforcing flow control.

Parameters
Name Description
elementSteps long
byteSteps long

release(long elements, long bytes)

public void release(long elements, long bytes)
Parameters
Name Description
elements long
bytes long

reserve(long elements, long bytes)

public void reserve(long elements, long bytes)
Parameters
Name Description
elements long
bytes long
Exceptions
Type Description
FlowController.FlowControlException