Interface ProcessorRegistration
- All Superinterfaces:
ConsumerRegistration
Generated registration for a synchronous one-to-one message processor.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voiddispatch(MessageBatch<?> batch) Dispatch one immutable delivery batch to the generated invocation adapter.Target channel for the processor result.GenericType<?> Produced message envelope type including generic arguments.GenericType<?> Produced payload type including generic arguments.MessageBatch<?> process(MessageBatch<?> batch) Invoke the processor adapter for one delivery and return one derived batch foroutgoingChannel().Methods inherited from interface ConsumerRegistration
channel, declaredFailurePolicy, envelopeGenericType, handlerId, payloadGenericTypeModifier and TypeMethodDescriptionchannel()Channel name.default Optional<FailurePolicy> Failure policy declared for this registration's incoming logical channel.GenericType<?> Expected message envelope type including generic arguments.default StringStable identity of this generated handler registration.GenericType<?> Expected payload type including generic arguments.
-
Method Details
-
outgoingChannel
-
outgoingPayloadGenericType
GenericType<?> outgoingPayloadGenericType()Produced payload type including generic arguments.- Returns:
- outgoing payload type
-
outgoingEnvelopeGenericType
GenericType<?> outgoingEnvelopeGenericType()Produced message envelope type including generic arguments.- Returns:
- outgoing envelope type
-
process
Invoke the processor adapter for one delivery and return one derived batch foroutgoingChannel().- Parameters:
batch- incoming batch- Returns:
- outgoing batch with preserved delivery lineage
- Throws:
RuntimeException- if processing fails
-
dispatch
Description copied from interface:ConsumerRegistrationDispatch one immutable delivery batch to the generated invocation adapter.- Specified by:
dispatchin interfaceConsumerRegistration- Parameters:
batch- delivery batch
-