Interface ChenileMessageHandler


public interface ChenileMessageHandler
A transport-neutral consumer for a logical Chenile pub/sub topic.

This is deliberately smaller than a service controller. It is useful for infrastructure messages, such as process-manager commands, where an application needs a role-specific consumer without exposing an HTTP service. Implementations must be idempotent: a broker can deliver a message again before its checkpoint is committed.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    handle(String topic, String payload, Map<String,String> headers)
    Handle one message.
    boolean
    True when this handler owns the supplied logical topic.
  • Method Details

    • supports

      boolean supports(String topic)
      True when this handler owns the supplied logical topic.
    • handle

      void handle(String topic, String payload, Map<String,String> headers)
      Handle one message. Throwing prevents the transport from checkpointing it.