public static class AxonServerConfiguration.FlowControlConfiguration extends Object
Constructor and Description |
---|
FlowControlConfiguration(Integer permits,
Integer nrOfNewPermits,
Integer newPermitsThreshold)
Construct a
AxonServerConfiguration.FlowControlConfiguration . |
Modifier and Type | Method and Description |
---|---|
Integer |
getInitialNrOfPermits()
Deprecated.
In favor of
getPermits() . |
Integer |
getNewPermitsThreshold()
The threshold at which the application sends new permits to server.
|
Integer |
getNrOfNewPermits()
Additional number of permits send for message streams (events, commands, queries) when application is ready
for more messages.
|
Integer |
getPermits()
The initial number of permits send for message streams (events, commands, queries).
|
void |
setInitialNrOfPermits(Integer initialNrOfPermits)
Deprecated.
In favor of
setPermits(Integer) . |
void |
setNewPermitsThreshold(Integer newPermitsThreshold)
Sets the threshold at which the application sends new permits to server.
|
void |
setNrOfNewPermits(Integer nrOfNewPermits)
Sets the additional number of permits send for message streams (events, commands, queries) when application
is ready for more messages.
|
void |
setPermits(Integer permits)
Sets the initial number of permits send for message streams (events, commands, queries).
|
public FlowControlConfiguration(Integer permits, Integer nrOfNewPermits, Integer newPermitsThreshold)
AxonServerConfiguration.FlowControlConfiguration
.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.@Deprecated public Integer getInitialNrOfPermits()
getPermits()
.@Deprecated public void setInitialNrOfPermits(Integer initialNrOfPermits)
setPermits(Integer)
.public Integer getPermits()
5000
permits.public void setPermits(Integer permits)
5000
permits.permits
- The initial number of permits send for message streams (events, commands, queries).public Integer getNrOfNewPermits()
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".
public void setNrOfNewPermits(Integer nrOfNewPermits)
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".
nrOfNewPermits
- The additional number of permits send for message streams (events, commands, queries)
when application is ready for more messages.public Integer getNewPermitsThreshold()
A value of null
, 0, and negative values will have the threshold set to 50% of
the initial number of permits
.
public void setNewPermitsThreshold(Integer newPermitsThreshold)
A value of null
, 0, and negative values will have the threshold set to 50% of
the initial number of permits
.
newPermitsThreshold
- The threshold at which the application sends new permits to server.Copyright © 2010–2024. All rights reserved.