public interface Consumer extends Actor, CamelSupport
Actor.emptyBehavior$, Actor.ignoringBehavior$
Modifier and Type | Method and Description |
---|---|
scala.concurrent.duration.FiniteDuration |
activationTimeout()
How long the actor should wait for activation before it fails.
|
boolean |
autoAck()
Determines whether one-way communications between an endpoint and this consumer actor
should be auto-acknowledged or application-acknowledged.
|
java.lang.String |
endpointUri()
Must return the Camel endpoint URI that the consumer wants to consume messages from.
|
Mapper<org.apache.camel.model.RouteDefinition,org.apache.camel.model.ProcessorDefinition<?>> |
getRouteDefinitionHandler()
Java API: Returns the
Mapper function that will be used as a route definition handler
for creating custom route to this consumer. |
scala.Function1<org.apache.camel.model.RouteDefinition,org.apache.camel.model.ProcessorDefinition<?>> |
onRouteDefinition()
Returns the route definition handler for creating a custom route to this consumer.
|
void |
preStart()
Registers the consumer endpoint.
|
void |
register() |
scala.concurrent.duration.FiniteDuration |
replyTimeout()
When endpoint is out-capable (can produce responses) replyTimeout is the maximum time
the endpoint can take to send the response before the message exchange fails.
|
aroundPostRestart, aroundPostStop, aroundPreRestart, aroundPreStart, aroundReceive, context, postRestart, postStop, preRestart, receive, self, sender, supervisorStrategy, unhandled
camel, camelContext
java.lang.String endpointUri()
void preStart()
void register()
scala.concurrent.duration.FiniteDuration activationTimeout()
scala.concurrent.duration.FiniteDuration replyTimeout()
boolean autoAck()
scala.Function1<org.apache.camel.model.RouteDefinition,org.apache.camel.model.ProcessorDefinition<?>> onRouteDefinition()
Mapper<org.apache.camel.model.RouteDefinition,org.apache.camel.model.ProcessorDefinition<?>> getRouteDefinitionHandler()
Mapper
function that will be used as a route definition handler
for creating custom route to this consumer. By default it returns an identity function, override this method to
return a custom route definition handler. The Mapper
is not allowed to close over 'this', meaning it is
not allowed to refer to the actor instance itself, since that can easily cause concurrent shared state issues.