RejectionBinding
One @OnRejected handler of a saga, bound to its processor instance: what the compiler generates for each @OnRejected function of a @Saga. It belongs to the saga's ProcessorBindings (ProcessorBinding.rejections), since it takes the rejections of the commands the saga's own handlers derive, not entries of the log; like them, it knows no runtime.
commandType is the
Cof theCommandReceipt.Rejected<C>it takes: it handles the rejections of the commands of that class (or a subclass); null forCommandReceipt.Rejected<*>, every command the saga derives (handles).blocking (
@Blocking) asks the runtime to run the call on virtual threads instead of inline.sends are the commands it declares it derives, schedules and calls (
@Sends, its return type for what it derives): its context holds it to them.invoke calls the handler directly and returns the commands that compensate, of the requests it returns (requestsOf), as a saga's handler derives its commands.
Built with of.
Properties
Functions
Calls the handler with rejected, of a command it handles, and the context the rejection is handled in (rejectionContextOf), in the caller's coroutine: running a blocking one elsewhere is the runtime's.