Class JpaEventStorageEngineConfigurationProperties
java.lang.Object
org.axonframework.extension.springboot.JpaEventStorageEngineConfigurationProperties
@ConfigurationProperties("axon.eventstorage.jpa")
public class JpaEventStorageEngineConfigurationProperties
extends Object
Properties describing configuration of Aggregate-based JPA Event Storage engine.
- Since:
- 5.0.0
- Author:
- Simon Zambrovski, John Hendrikx
-
Constructor Summary
ConstructorsConstructorDescriptionJpaEventStorageEngineConfigurationProperties(int batchSize, int gapCleaningThreshold, int gapTimeout, long lowestGlobalSequence, int maxGapOffset, long pollingInterval) -
Method Summary
Modifier and TypeMethodDescriptionintBatch size to retrieve events from the storage.intRetrieves the threshold for number of gaps in a gap-aware token before a cleanup takes place.intRetrieves the time until a gap in global index is considered as timed out.longRetrieves the minimum value for the global index auto generation.intRetrieves the maximum distance in sequence numbers between a gap and the event with the highest known index.longRetries the polling interval in milliseconds to detect new appended events.
-
Constructor Details
-
JpaEventStorageEngineConfigurationProperties
@ConstructorBinding public JpaEventStorageEngineConfigurationProperties(@DefaultValue("100") int batchSize, @DefaultValue("250") int gapCleaningThreshold, @DefaultValue("10000") int gapTimeout, @DefaultValue("1") long lowestGlobalSequence, @DefaultValue("60000") int maxGapOffset, @DefaultValue("1000") long pollingInterval)
-
-
Method Details
-
batchSize
public int batchSize()Batch size to retrieve events from the storage.- Returns:
- The batch size to retrieve events from the storage.
-
gapCleaningThreshold
public int gapCleaningThreshold()Retrieves the threshold for number of gaps in a gap-aware token before a cleanup takes place.- Returns:
- The threshold for number of gaps in a gap-aware token before a cleanup takes place.
-
gapTimeout
public int gapTimeout()Retrieves the time until a gap in global index is considered as timed out.- Returns:
- The time until a gap in global index is considered as timed out.
-
lowestGlobalSequence
public long lowestGlobalSequence()Retrieves the minimum value for the global index auto generation.- Returns:
- The minimum value for the global index auto generation.
-
maxGapOffset
public int maxGapOffset()Retrieves the maximum distance in sequence numbers between a gap and the event with the highest known index.- Returns:
- The maximum distance in sequence numbers between a gap and the event with the highest known index.
-
pollingInterval
public long pollingInterval()Retries the polling interval in milliseconds to detect new appended events.- Returns:
- The polling interval. Defaults to 1000 ms.
-