Direct

Direct

Description: The Direct Component manages DirectEndpoint and holds the list of named direct endpoints.
Scheme: direct
Syntax: direct:name
Maven: org.apache.camel/camel-core/2.16.1

Represents a direct endpoint that synchronously invokes the consumer of the endpoint when a producer sends a message to it.

Name Kind Group Required Default Type Enum Description
name path common true java.lang.String Name of direct endpoint
block parameter producer boolean If sending a message to a direct endpoint which has no active consumer, then we can tell the producer to block and wait for the consumer to become active.
failIfNoConsumers parameter producer boolean Whether the producer should fail by throwing an exception, when sending to a DIRECT endpoint with no active consumers.
timeout parameter producer 30000 long The timeout value to use if block is enabled. @param timeout the timeout value
exchangePattern parameter advanced InOnly org.apache.camel.ExchangePattern InOnly
RobustInOnly
InOut
InOptionalOut
OutOnly
RobustOutOnly
OutIn
OutOptionalIn
Sets the default exchange pattern when creating an exchange.
synchronous parameter advanced false boolean Sets whether synchronous processing should be strictly used, or Camel is allowed to use asynchronous processing (if supported). @param synchronous true to enforce synchronous processing

direct consumer

The direct consumer.