Package io.axoniq.axonserver.connector
Interface InstructionHandler<I,R>
-
- Type Parameters:
I- the type of the instruction handled by this handlerR- the type of response used byhandle(Object, ReplyChannel)'sReplyChannel
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface InstructionHandler<I,R>
Interface describing a component that is capable of handling instructions coming from AxonServer.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidhandle(I instruction, ReplyChannel<R> replyChannel)Handle the giveninstruction, usingreplyChannelto acknowledge the instruction and reply to AxonServer.
-
-
-
Method Detail
-
handle
void handle(I instruction, ReplyChannel<R> replyChannel)
Handle the giveninstruction, usingreplyChannelto acknowledge the instruction and reply to AxonServer.- Parameters:
instruction- the instruction to handlereplyChannel- the channel onto which replies and acknowledgements to send
-
-