Interface ProcessorRegistration

All Superinterfaces:
ConsumerRegistration

@Contract public interface ProcessorRegistration extends ConsumerRegistration
Generated registration for a synchronous one-to-one message processor.
  • Method Details

    • outgoingChannel

      String outgoingChannel()
      Target channel for the processor result.
      Returns:
      outgoing channel
    • 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

      MessageBatch<?> process(MessageBatch<?> batch)
      Invoke the processor adapter for one delivery and return one derived batch for outgoingChannel().
      Parameters:
      batch - incoming batch
      Returns:
      outgoing batch with preserved delivery lineage
      Throws:
      RuntimeException - if processing fails
    • dispatch

      default void dispatch(MessageBatch<?> batch)
      Description copied from interface: ConsumerRegistration
      Dispatch one immutable delivery batch to the generated invocation adapter.
      Specified by:
      dispatch in interface ConsumerRegistration
      Parameters:
      batch - delivery batch