Class AxonServerConfiguration.FlowControlConfiguration
java.lang.Object
org.axonframework.axonserver.connector.AxonServerConfiguration.FlowControlConfiguration
- Enclosing class:
AxonServerConfiguration
Configuration class for Flow Control of specific message types.
- Since:
- 4.3
- Author:
- Gerlo Hesselink
-
Constructor Summary
ConstructorsConstructorDescriptionFlowControlConfiguration(Integer permits, Integer nrOfNewPermits, Integer newPermitsThreshold) Construct aAxonServerConfiguration.FlowControlConfiguration. -
Method Summary
Modifier and TypeMethodDescriptionThe threshold at which the application sends new permits to server.Additional number of permits send for message streams (events, commands, queries) when application is ready for more messages.The initial number of permits send for message streams (events, commands, queries).voidsetNewPermitsThreshold(Integer newPermitsThreshold) Sets the threshold at which the application sends new permits to server.voidsetNrOfNewPermits(Integer nrOfNewPermits) Sets the additional number of permits send for message streams (events, commands, queries) when application is ready for more messages.voidsetPermits(Integer permits) Sets the initial number of permits send for message streams (events, commands, queries).
-
Constructor Details
-
FlowControlConfiguration
public FlowControlConfiguration(Integer permits, Integer nrOfNewPermits, Integer newPermitsThreshold) Construct aAxonServerConfiguration.FlowControlConfiguration.- Parameters:
permits- Initial nr of new permits.nrOfNewPermits- Additional number of permits when application is ready for message.newPermitsThreshold- Threshold at which application sends new permits to server.
-
-
Method Details
-
getPermits
The initial number of permits send for message streams (events, commands, queries). Defaults to5000permits.- Returns:
- The initial number of permits send for message streams (events, commands, queries).
-
setPermits
Sets the initial number of permits send for message streams (events, commands, queries). Defaults to5000permits.- Parameters:
permits- The initial number of permits send for message streams (events, commands, queries).
-
getNrOfNewPermits
Additional number of permits send for message streams (events, commands, queries) when application is ready for more messages.A value of
null, 0, and negative values will have the client request the number of permits required to get from the "new-permits-threshold" to "initial-nr-of-permits".- Returns:
- The additional number of permits send for message streams (events, commands, queries) when application is ready for more messages.
-
setNrOfNewPermits
Sets the additional number of permits send for message streams (events, commands, queries) when application is ready for more messages.A value of
null, 0, and negative values will have the client request the number of permits required to get from the "new-permits-threshold" to "initial-nr-of-permits".- Parameters:
nrOfNewPermits- The additional number of permits send for message streams (events, commands, queries) when application is ready for more messages.
-
getNewPermitsThreshold
The threshold at which the application sends new permits to server.A value of
null, 0, and negative values will have the threshold set to 50% ofthe initial number of permits.- Returns:
- The threshold at which the application sends new permits to server.
-
setNewPermitsThreshold
Sets the threshold at which the application sends new permits to server.A value of
null, 0, and negative values will have the threshold set to 50% ofthe initial number of permits.- Parameters:
newPermitsThreshold- The threshold at which the application sends new permits to server.
-