public class ActorEndpoint extends org.apache.camel.impl.DefaultEndpoint implements ActorEndpointConfig
ActorEndpoint is a Camel Endpoint that is used to
receive messages from Camel. Sending messages from the ActorComponent is not supported, a Producer actor should be used instead.
The ActorEndpoints are created by the ActorComponent.
Actors are referenced using actor endpoint URIs of the following format:
[actorPath]?[options]%s,
where [actorPath] refers to the actor path to the actor.
| Constructor and Description |
|---|
ActorEndpoint(java.lang.String uri,
ActorComponent comp,
ActorEndpointPath path,
Camel camel) |
| Modifier and Type | Method and Description |
|---|---|
Camel |
camel() |
org.apache.camel.Consumer |
createConsumer(org.apache.camel.Processor processor)
The ActorEndpoint only supports receiving messages from Camel.
|
ActorProducer |
createProducer()
Creates a new producer which is used send messages into the endpoint.
|
boolean |
isSingleton()
Returns true.
|
ActorEndpointPath |
path() |
configureConsumer, configureProperties, createEndpointConfiguration, createEndpointUri, createExchange, createExchange, createExchange, createPollingConsumer, doStart, doStop, equals, getCamelContext, getComponent, getConsumerProperties, getEndpointConfiguration, getEndpointKey, getEndpointUri, getExchangePattern, getId, hashCode, isLenientProperties, isSynchronous, setCamelContext, setConsumerProperties, setEndpointConfiguration, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setSynchronous, toStringdoResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspended, isSuspending, resume, shutdown, start, stop, suspendclone, finalize, getClass, notify, notifyAll, wait, wait, waitautoAck, getAutoAck, getReplyTimeout, replyTimeout, setAutoAck, setReplyTimeoutpublic ActorEndpoint(java.lang.String uri,
ActorComponent comp,
ActorEndpointPath path,
Camel camel)
public ActorEndpointPath path()
path in interface ActorEndpointConfigpublic Camel camel()
camel in interface ActorEndpointConfigpublic org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor)
Producer Actors can be used for sending messages to some other uri/ component type registered in Camel.createConsumer in interface org.apache.camel.Endpointprocessor - (undocumented)java.lang.UnsupportedOperationException - this method is not supportedpublic ActorProducer createProducer()
createProducer in interface org.apache.camel.Endpointpublic boolean isSingleton()
isSingleton in interface org.apache.camel.IsSingleton