org.apache.camel
Interface MultipleConsumersSupport

All Known Implementing Classes:
JmsEndpoint, JmsQueueEndpoint, JmsTemporaryQueueEndpoint, JmsTemporaryTopicEndpoint, MinaEndpoint, QuickfixjEndpoint, RouteboxSedaEndpoint, SedaEndpoint

public interface MultipleConsumersSupport

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

By default endpoints is assumed not to support multiple consumers.

A rare few endpoint does in fact support multiple consumers and thus the purpose of this interface. For example JMS endpoints which has 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 prevent starting up when there was a copy/paste mistakes in the Camel routes.

Version:

Method Summary
 boolean isMultipleConsumersSupported()
          Is multiple consumers supported?
 

Method Detail

isMultipleConsumersSupported

boolean isMultipleConsumersSupported()
Is multiple consumers supported?

Returns:
true if multiple consumers is supported


Apache CAMEL