Package io.axoniq.framework.springboot
Class WorkflowProperties.HistoryProcessorProperties
java.lang.Object
io.axoniq.framework.springboot.WorkflowProperties.HistoryProcessorProperties
- Enclosing class:
WorkflowProperties
The properties of the history projector's own, dedicated event processor.
Mirrors the same settings WorkflowProperties exposes for the workflow engine's own processor - see there
for what each property means and what it defaults to.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the maximum number of events read from the event store per source poll.longReturns the duration, in milliseconds, after which the history processor extends a segment claim.booleanReturns whether the history processor's coordinator also extends segment claims.intReturns the number of segments to initialize the history projector's event processor with.intReturns the number of threads the history processor uses to process events concurrently.longReturns the interval, in milliseconds, at which the history processor's coordinator attempts to claim unclaimed segments.voidsetBatchSize(int batchSize) Sets the maximum number of events read from the event store per source poll.voidsetClaimExtensionThreshold(long claimExtensionThreshold) Sets the duration, in milliseconds, after which the history processor extends a segment claim.voidsetCoordinatorClaimExtension(boolean coordinatorClaimExtension) Sets whether the history processor's coordinator also extends segment claims.voidsetInitialSegmentCount(int initialSegmentCount) Sets the number of segments to initialize the history projector's event processor with.voidsetThreadCount(int threadCount) Sets the number of threads the history processor uses to process events concurrently.voidsetTokenClaimInterval(long tokenClaimInterval) Sets the interval, in milliseconds, at which the history processor's coordinator attempts to claim unclaimed segments.
-
Constructor Details
-
HistoryProcessorProperties
public HistoryProcessorProperties()
-
-
Method Details
-
getInitialSegmentCount
public int getInitialSegmentCount()Returns the number of segments to initialize the history projector's event processor with.- Returns:
- the number of segments to initialize the history projector's event processor with
-
setInitialSegmentCount
public void setInitialSegmentCount(int initialSegmentCount) Sets the number of segments to initialize the history projector's event processor with.- Parameters:
initialSegmentCount- the number of segments to initialize the history projector's event processor with
-
getBatchSize
public int getBatchSize()Returns the maximum number of events read from the event store per source poll.- Returns:
- the maximum number of events read from the event store per source poll
-
setBatchSize
public void setBatchSize(int batchSize) Sets the maximum number of events read from the event store per source poll.- Parameters:
batchSize- the maximum number of events read from the event store per source poll
-
getThreadCount
public int getThreadCount()Returns the number of threads the history processor uses to process events concurrently.- Returns:
- the number of threads the history processor uses to process events concurrently
-
setThreadCount
public void setThreadCount(int threadCount) Sets the number of threads the history processor uses to process events concurrently.- Parameters:
threadCount- the number of threads the history processor uses to process events concurrently
-
getTokenClaimInterval
public long getTokenClaimInterval()Returns the interval, in milliseconds, at which the history processor's coordinator attempts to claim unclaimed segments.- Returns:
- the segment-claim interval, in milliseconds
-
setTokenClaimInterval
public void setTokenClaimInterval(long tokenClaimInterval) Sets the interval, in milliseconds, at which the history processor's coordinator attempts to claim unclaimed segments.- Parameters:
tokenClaimInterval- the segment-claim interval, in milliseconds
-
getClaimExtensionThreshold
public long getClaimExtensionThreshold()Returns the duration, in milliseconds, after which the history processor extends a segment claim.- Returns:
- the claim extension threshold, in milliseconds
-
setClaimExtensionThreshold
public void setClaimExtensionThreshold(long claimExtensionThreshold) Sets the duration, in milliseconds, after which the history processor extends a segment claim.- Parameters:
claimExtensionThreshold- the claim extension threshold, in milliseconds
-
getCoordinatorClaimExtension
public boolean getCoordinatorClaimExtension()Returns whether the history processor's coordinator also extends segment claims.- Returns:
- whether the history processor's coordinator also extends segment claims
-
setCoordinatorClaimExtension
public void setCoordinatorClaimExtension(boolean coordinatorClaimExtension) Sets whether the history processor's coordinator also extends segment claims.- Parameters:
coordinatorClaimExtension- whether the history processor's coordinator also extends segment claims
-