Interface MultipleConsumersSupport


  • public interface MultipleConsumersSupport
    Endpoint can optionally implement this interface to indicate whether or not it supports multiple consumers.

    By default endpoints are assumed not to support multiple consumers.

    A rare few endpoints do in fact support multiple consumers and thus the purpose of this interface. For example JMS endpoints which have topics that can be consumed by multiple consumers.

    The purpose of this is to check on startup that we do not have multiple consumers for the same endpoints. This prevents starting up with copy/paste mistakes in the Camel routes.

    • Method Detail

      • isMultipleConsumersSupported

        boolean isMultipleConsumersSupported()
        Are multiple consumers supported?
        Returns:
        true if multiple consumers are supported