|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Consumer
Mixed in by Actor implementations that consume message from Camel endpoints.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface akka.actor.Actor |
---|
Actor.emptyBehavior$ |
Method Summary | |
---|---|
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, |
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, |
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. |
Methods inherited from interface akka.actor.Actor |
---|
aroundPostRestart, aroundPostStop, aroundPreRestart, aroundPreStart, aroundReceive, context, postRestart, postStop, preRestart, receive, self, sender, supervisorStrategy, unhandled |
Methods inherited from interface akka.camel.CamelSupport |
---|
camel, camelContext |
Method Detail |
---|
java.lang.String endpointUri()
void preStart()
preStart
in interface Actor
void register()
scala.concurrent.duration.FiniteDuration activationTimeout()
scala.concurrent.duration.FiniteDuration replyTimeout()
boolean autoAck()
scala.Function1<org.apache.camel.model.RouteDefinition,> onRouteDefinition()
Mapper<org.apache.camel.model.RouteDefinition,> 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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |