Class ProcessorInstructions
- java.lang.Object
-
- io.axoniq.axonserver.connector.impl.ProcessorInstructions
-
public abstract class ProcessorInstructions extends Object
Utility class providingInstructionHandlerinstances for event processor instructions.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static InstructionHandler<PlatformOutboundInstruction,PlatformInboundInstruction>mergeHandler(Map<String,ProcessorInstructionHandler> instructionHandlers)Provides aInstructionHandlerwhich handles a processor's merge request from AxonServer and sends it to the right client(s).static InstructionHandler<PlatformOutboundInstruction,PlatformInboundInstruction>pauseHandler(Map<String,ProcessorInstructionHandler> instructionHandlers)Provides aInstructionHandlerwhich handles a processor's pause request from AxonServer and sends it to the right client(s).static InstructionHandler<PlatformOutboundInstruction,PlatformInboundInstruction>releaseSegmentHandler(Map<String,ProcessorInstructionHandler> instructionHandlers)Provides aInstructionHandlerwhich handles a processor's release segment request from AxonServer and sends it to the right client(s).static InstructionHandler<PlatformOutboundInstruction,PlatformInboundInstruction>requestInfoHandler(Map<String,Supplier<EventProcessorInfo>> infoSuppliers)Provides aInstructionHandlerwhich handles a processor's information request from AxonServer and sends it to the right client(s).static InstructionHandler<PlatformOutboundInstruction,PlatformInboundInstruction>splitHandler(Map<String,ProcessorInstructionHandler> instructionHandlers)Provides aInstructionHandlerwhich handles a processor's split request from AxonServer and sends it to the right client(s).static InstructionHandler<PlatformOutboundInstruction,PlatformInboundInstruction>startHandler(Map<String,ProcessorInstructionHandler> instructionHandlers)Provides aInstructionHandlerwhich handles a processor's start request from AxonServer and sends it to the right client(s).
-
-
-
Method Detail
-
mergeHandler
public static InstructionHandler<PlatformOutboundInstruction,PlatformInboundInstruction> mergeHandler(Map<String,ProcessorInstructionHandler> instructionHandlers)
Provides aInstructionHandlerwhich handles a processor's merge request from AxonServer and sends it to the right client(s).- Parameters:
instructionHandlers- the collection of instruction handler instances to retrieve theProcessorInstructionHandlerfrom to execute the actualProcessorInstructionHandler.mergeSegment(int)operation- Returns:
- the
InstructionHandlerto delegate the merge request with
-
splitHandler
public static InstructionHandler<PlatformOutboundInstruction,PlatformInboundInstruction> splitHandler(Map<String,ProcessorInstructionHandler> instructionHandlers)
Provides aInstructionHandlerwhich handles a processor's split request from AxonServer and sends it to the right client(s).- Parameters:
instructionHandlers- the collection of instruction handler instances to retrieve theProcessorInstructionHandlerfrom to execute the actualProcessorInstructionHandler.splitSegment(int)operation- Returns:
- the
InstructionHandlerto delegate the split request with
-
startHandler
public static InstructionHandler<PlatformOutboundInstruction,PlatformInboundInstruction> startHandler(Map<String,ProcessorInstructionHandler> instructionHandlers)
Provides aInstructionHandlerwhich handles a processor's start request from AxonServer and sends it to the right client(s).- Parameters:
instructionHandlers- the collection of instruction handler instances to retrieve theProcessorInstructionHandlerfrom to execute the actualProcessorInstructionHandler.startProcessor()operation- Returns:
- the
InstructionHandlerto delegate the start request with
-
pauseHandler
public static InstructionHandler<PlatformOutboundInstruction,PlatformInboundInstruction> pauseHandler(Map<String,ProcessorInstructionHandler> instructionHandlers)
Provides aInstructionHandlerwhich handles a processor's pause request from AxonServer and sends it to the right client(s).- Parameters:
instructionHandlers- the collection of instruction handler instances to retrieve theProcessorInstructionHandlerfrom to execute the actualProcessorInstructionHandler.pauseProcessor()operation- Returns:
- the
InstructionHandlerto delegate the pause request with
-
releaseSegmentHandler
public static InstructionHandler<PlatformOutboundInstruction,PlatformInboundInstruction> releaseSegmentHandler(Map<String,ProcessorInstructionHandler> instructionHandlers)
Provides aInstructionHandlerwhich handles a processor's release segment request from AxonServer and sends it to the right client(s).- Parameters:
instructionHandlers- the collection of instruction handler instances to retrieve theProcessorInstructionHandlerfrom to execute the actualProcessorInstructionHandler.releaseSegment(int)} operation- Returns:
- the
InstructionHandlerto delegate the release segment request with
-
requestInfoHandler
public static InstructionHandler<PlatformOutboundInstruction,PlatformInboundInstruction> requestInfoHandler(Map<String,Supplier<EventProcessorInfo>> infoSuppliers)
Provides aInstructionHandlerwhich handles a processor's information request from AxonServer and sends it to the right client(s).- Parameters:
infoSuppliers- the collection ofEventProcessorInfosupplier instances to retrieve the right instance to pull information from- Returns:
- the
InstructionHandlerto delegate the processor information request with
-
-