@FunctionalInterface
public static interface MatsEndpoint.ProcessSingleLambda<R,I>
ProcessLambda
which does not have a state, and have the same
return-semantics as ProcessReturnLambda
- used for single-stage
endpoints as these does not have multiple stages to transfer state between.
However, since it is possible to send state along with the request, one may still use the
ProcessReturnLambda
for single-stage endpoints, but in this case you
need to code it up yourself by making a multi-stage and then just adding a single lastStage.Modifier and Type | Method and Description |
---|---|
R |
process(MatsEndpoint.ProcessContext<R> ctx,
I msg) |
R process(MatsEndpoint.ProcessContext<R> ctx, I msg) throws MatsEndpoint.MatsRefuseMessageException