public interface ProcessorInstructionHandler
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<Boolean> |
mergeSegment(int segmentId)
Instruction to merge the segment with given
segmentId with its counterpart. |
CompletableFuture<Void> |
pauseProcessor()
Instruction to pause the processor for which this handler was registered.
|
CompletableFuture<Boolean> |
releaseSegment(int segmentId)
Instruction to release the segment with given
segmentId. |
CompletableFuture<Boolean> |
splitSegment(int segmentId)
Instruction to split the segment with given
segmentId. |
CompletableFuture<Void> |
startProcessor()
Instruction to start the processor for which this handler was registered.
|
CompletableFuture<Boolean> releaseSegment(int segmentId)
segmentId. If the local node doesn't have the given segment
claimed, it should take precautions to prevent claiming it immediately.
The return future must be completed with a true after the segment has been successfully released. When
failing to release the segment, the CompletableFuture must complete with either false or exceptionally.
segmentId - the id of the segment to releaseCompletableFuture<Boolean> splitSegment(int segmentId)
segmentId. If the local node doesn't have a claim on the
given segment, it must try to claim it.segmentId - the identifier of the segment to splitCompletableFuture<Boolean> mergeSegment(int segmentId)
segmentId with its counterpart. If the local node doesn't
have a claim on the segment with given segmentId or its counterpart, then it must attempt to claim both.segmentId - the identifier of the segment to mergeCompletableFuture<Void> pauseProcessor()
CompletableFuture<Void> startProcessor()
Copyright © 2020–2023 AxonIQ BV. All rights reserved.