Interface Handler

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 Handler
A consume handler: processes one decoded Envelope. It may throw — a thrown handler leaves the message unacknowledged so the runtime redelivers it (the core is codec-only, so an adapter drives the actual consume loop).
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    handle(Envelope envelope)
    Handles one message.
  • Method Details

    • handle

      void handle(Envelope envelope) throws Exception
      Handles one message.
      Parameters:
      envelope - the decoded envelope
      Throws:
      Exception - to signal failure (redelivery / dead-letter per the adapter)