Package | Description |
---|---|
org.apache.camel |
The core Camel API.
|
org.apache.camel.spi |
Service Provider Interfaces used by the Camel runtime which are plugin strategies.
|
Modifier and Type | Interface and Description |
---|---|
interface |
AsyncEndpoint
Marks the
Endpoint as support asynchronous non-blocking routing in its consumer and producer. |
interface |
DelegateEndpoint
An interface to represent an
Endpoint which are delegated. |
Modifier and Type | Method and Description |
---|---|
<T extends Endpoint> |
CamelContext.getEndpoint(String name,
Class<T> endpointType)
Resolves the given name to an
Endpoint of the specified type. |
<T extends Endpoint> |
EndpointConsumerResolver.resolve(CamelContext context,
Class<T> endpointType)
Resolves this object as an endpoint.
|
<T extends Endpoint> |
EndpointProducerResolver.resolve(CamelContext context,
Class<T> endpointType)
Resolves this object as an endpoint.
|
Modifier and Type | Method and Description |
---|---|
Endpoint |
CamelContext.addEndpoint(String uri,
Endpoint endpoint)
Adds and starts the endpoint to the
EndpointRegistry using the given URI. |
Endpoint |
Component.createEndpoint(String uri)
Attempt to resolve an endpoint for the given URI if the component is
capable of handling the URI.
|
Endpoint |
Component.createEndpoint(String uri,
Map<String,Object> parameters)
Attempt to resolve an endpoint for the given URI if the component is
capable of handling the URI.
|
Endpoint |
FluentProducerTemplate.getDefaultEndpoint()
Get the default endpoint to use if none is specified
|
Endpoint |
ProducerTemplate.getDefaultEndpoint()
Get the default endpoint to use if none is specified
|
Endpoint |
Route.getEndpoint()
Gets the input endpoint for this route.
|
Endpoint |
DelegateEndpoint.getEndpoint()
Gets the delegated
Endpoint . |
Endpoint |
EndpointAware.getEndpoint()
Gets the endpoint associated with an object.
|
Endpoint |
ProxyInstantiationException.getEndpoint() |
Endpoint |
ExtendedCamelContext.getEndpoint(NormalizedEndpointUri uri)
Resolves the given name to an
Endpoint of the specified type. |
Endpoint |
ExtendedCamelContext.getEndpoint(NormalizedEndpointUri uri,
Map<String,Object> parameters)
Resolves the given name to an
Endpoint of the specified type. |
Endpoint |
CamelContext.getEndpoint(String uri)
Resolves the given name to an
Endpoint of the specified type. |
Endpoint |
CamelContext.getEndpoint(String uri,
Map<String,Object> parameters)
Resolves the given name to an
Endpoint of the specified type. |
Endpoint |
Exchange.getFromEndpoint()
Returns the endpoint which originated this message exchange if a consumer on an endpoint
created the message exchange, otherwise this property will be null
|
Endpoint |
ExtendedCamelContext.getPrototypeEndpoint(NormalizedEndpointUri uri)
Resolves the given name to an
Endpoint of the specified type (scope is prototype). |
Endpoint |
ExtendedCamelContext.getPrototypeEndpoint(String uri)
Resolves the given name to an
Endpoint of the specified type (scope is prototype). |
Endpoint |
ExtendedCamelContext.hasEndpoint(NormalizedEndpointUri uri)
Is the given endpoint already registered in the
EndpointRegistry |
Endpoint |
CamelContext.hasEndpoint(String uri)
Is the given endpoint already registered in the
EndpointRegistry |
Endpoint |
EndpointConsumerResolver.resolve(CamelContext context)
Resolves this object as an endpoint.
|
Endpoint |
EndpointProducerResolver.resolve(CamelContext context)
Resolves this object as an endpoint.
|
Modifier and Type | Method and Description |
---|---|
Map<String,Endpoint> |
CamelContext.getEndpointMap()
Deprecated.
|
Collection<Endpoint> |
CamelContext.getEndpoints()
Returns a new
Collection of all of the endpoints from the EndpointRegistry |
Collection<Endpoint> |
CamelContext.removeEndpoints(String pattern)
Removes all endpoints with the given URI from the
EndpointRegistry . |
Modifier and Type | Method and Description |
---|---|
Endpoint |
CamelContext.addEndpoint(String uri,
Endpoint endpoint)
Adds and starts the endpoint to the
EndpointRegistry using the given URI. |
CompletableFuture<Exchange> |
ProducerTemplate.asyncCallback(Endpoint endpoint,
Exchange exchange,
Synchronization onCompletion)
Sends an asynchronous exchange to the given endpoint.
|
CompletableFuture<Exchange> |
ProducerTemplate.asyncCallback(Endpoint endpoint,
Processor processor,
Synchronization onCompletion)
Sends an asynchronous exchange to the given endpoint using a supplied processor.
|
CompletableFuture<Object> |
ProducerTemplate.asyncCallbackRequestBody(Endpoint endpoint,
Object body,
Synchronization onCompletion)
Sends an asynchronous body to the given endpoint.
|
CompletableFuture<Object> |
ProducerTemplate.asyncCallbackSendBody(Endpoint endpoint,
Object body,
Synchronization onCompletion)
Sends an asynchronous body to the given endpoint.
|
CompletableFuture<Object> |
ProducerTemplate.asyncRequestBody(Endpoint endpoint,
Object body)
Sends an asynchronous body to the given endpoint.
|
<T> CompletableFuture<T> |
ProducerTemplate.asyncRequestBody(Endpoint endpoint,
Object body,
Class<T> type)
Sends an asynchronous body to the given endpoint.
|
CompletableFuture<Object> |
ProducerTemplate.asyncRequestBodyAndHeader(Endpoint endpoint,
Object body,
String header,
Object headerValue)
Sends an asynchronous body to the given endpoint.
|
<T> CompletableFuture<T> |
ProducerTemplate.asyncRequestBodyAndHeader(Endpoint endpoint,
Object body,
String header,
Object headerValue,
Class<T> type)
Sends an asynchronous body to the given endpoint.
|
CompletableFuture<Object> |
ProducerTemplate.asyncRequestBodyAndHeaders(Endpoint endpoint,
Object body,
Map<String,Object> headers)
Sends an asynchronous body to the given endpoint.
|
<T> CompletableFuture<T> |
ProducerTemplate.asyncRequestBodyAndHeaders(Endpoint endpoint,
Object body,
Map<String,Object> headers,
Class<T> type)
Sends an asynchronous body to the given endpoint.
|
CompletableFuture<Exchange> |
ProducerTemplate.asyncSend(Endpoint endpoint,
Exchange exchange)
Sends an asynchronous exchange to the given endpoint.
|
CompletableFuture<Exchange> |
ProducerTemplate.asyncSend(Endpoint endpoint,
Processor processor)
Sends an asynchronous exchange to the given endpoint.
|
CompletableFuture<Object> |
ProducerTemplate.asyncSendBody(Endpoint endpoint,
Object body)
Sends an asynchronous body to the given endpoint.
|
Exchange |
ConsumerTemplate.receive(Endpoint endpoint)
Receives from the endpoint, waiting until there is a response.
|
Exchange |
ConsumerTemplate.receive(Endpoint endpoint,
long timeout)
Receives from the endpoint, waiting until there is a response
or the timeout occurs
Important: See
ConsumerTemplate.doneUoW(Exchange) |
Object |
ConsumerTemplate.receiveBody(Endpoint endpoint)
Receives from the endpoint, waiting until there is a response
|
<T> T |
ConsumerTemplate.receiveBody(Endpoint endpoint,
Class<T> type)
Receives from the endpoint, waiting until there is a response
|
Object |
ConsumerTemplate.receiveBody(Endpoint endpoint,
long timeout)
Receives from the endpoint, waiting until there is a response
or the timeout occurs
|
<T> T |
ConsumerTemplate.receiveBody(Endpoint endpoint,
long timeout,
Class<T> type)
Receives from the endpoint, waiting until there is a response
or the timeout occurs
|
Object |
ConsumerTemplate.receiveBodyNoWait(Endpoint endpoint)
Receives from the endpoint, not waiting for a response if non exists.
|
<T> T |
ConsumerTemplate.receiveBodyNoWait(Endpoint endpoint,
Class<T> type)
Receives from the endpoint, not waiting for a response if non exists.
|
Exchange |
ConsumerTemplate.receiveNoWait(Endpoint endpoint)
Receives from the endpoint, not waiting for a response if non exists.
|
void |
CamelContext.removeEndpoint(Endpoint endpoint)
Removes the endpoint from the
EndpointRegistry . |
Exchange |
ProducerTemplate.request(Endpoint endpoint,
Processor processor)
Sends an exchange to an endpoint using a supplied processor
Uses an
ExchangePattern.InOut message exchange pattern. |
Object |
ProducerTemplate.requestBody(Endpoint endpoint,
Object body)
Send the body to an endpoint returning any result output body.
|
<T> T |
ProducerTemplate.requestBody(Endpoint endpoint,
Object body,
Class<T> type)
Send the body to an endpoint returning any result output body.
|
Object |
ProducerTemplate.requestBodyAndHeader(Endpoint endpoint,
Object body,
String header,
Object headerValue)
Send the body to an endpoint returning any result output body.
|
<T> T |
ProducerTemplate.requestBodyAndHeader(Endpoint endpoint,
Object body,
String header,
Object headerValue,
Class<T> type)
Send the body to an endpoint returning any result output body.
|
Object |
ProducerTemplate.requestBodyAndHeaders(Endpoint endpoint,
Object body,
Map<String,Object> headers)
Sends the body to an endpoint with the specified headers and header values.
|
<T> T |
ProducerTemplate.requestBodyAndHeaders(Endpoint endpoint,
Object body,
Map<String,Object> headers,
Class<T> type)
Sends the body to an endpoint with the specified headers and header values.
|
Exchange |
ProducerTemplate.send(Endpoint endpoint,
Exchange exchange)
Sends the exchange to the given endpoint
Notice: that if the processing of the exchange failed with an Exception it is not thrown from this method, but you can access it from the returned exchange using Exchange.getException() . |
Exchange |
ProducerTemplate.send(Endpoint endpoint,
ExchangePattern pattern,
Processor processor)
Sends an exchange to an endpoint using a supplied processor
Notice: that if the processing of the exchange failed with an Exception it is not thrown from this method, but you can access it from the returned exchange using Exchange.getException() . |
Exchange |
ProducerTemplate.send(Endpoint endpoint,
ExchangePattern pattern,
Processor processor,
Processor resultProcessor)
Sends an exchange to an endpoint using a supplied processor
Notice: that if the processing of the exchange failed with an Exception it is not thrown from this method, but you can access it from the returned exchange using Exchange.getException() . |
Exchange |
ProducerTemplate.send(Endpoint endpoint,
Processor processor)
Sends an exchange to an endpoint using a supplied processor
Notice: that if the processing of the exchange failed with an Exception it is not thrown from this method, but you can access it from the returned exchange using Exchange.getException() . |
Object |
ProducerTemplate.sendBody(Endpoint endpoint,
ExchangePattern pattern,
Object body)
Send the body to an endpoint with the given
ExchangePattern
returning any result output body
Notice: that if the processing of the exchange failed with an Exception it is thrown from this method as a CamelExecutionException with
the caused exception wrapped. |
void |
ProducerTemplate.sendBody(Endpoint endpoint,
Object body)
Send the body to an endpoint
Notice: that if the processing of the exchange failed with an Exception it is thrown from this method as a CamelExecutionException with
the caused exception wrapped. |
Object |
ProducerTemplate.sendBodyAndHeader(Endpoint endpoint,
ExchangePattern pattern,
Object body,
String header,
Object headerValue)
Sends the body to an endpoint with a specified header and header value
Notice: that if the processing of the exchange failed with an Exception it is thrown from this method as a CamelExecutionException with
the caused exception wrapped. |
void |
ProducerTemplate.sendBodyAndHeader(Endpoint endpoint,
Object body,
String header,
Object headerValue)
Sends the body to an endpoint with a specified header and header value
Notice: that if the processing of the exchange failed with an Exception it is thrown from this method as a CamelExecutionException with
the caused exception wrapped. |
Object |
ProducerTemplate.sendBodyAndHeaders(Endpoint endpoint,
ExchangePattern pattern,
Object body,
Map<String,Object> headers)
Sends the body to an endpoint with the specified headers and header values
Notice: that if the processing of the exchange failed with an Exception it is thrown from this method as a CamelExecutionException with
the caused exception wrapped. |
void |
ProducerTemplate.sendBodyAndHeaders(Endpoint endpoint,
Object body,
Map<String,Object> headers)
Sends the body to an endpoint with the specified headers and header values
Notice: that if the processing of the exchange failed with an Exception it is thrown from this method as a CamelExecutionException with
the caused exception wrapped. |
Object |
ProducerTemplate.sendBodyAndProperty(Endpoint endpoint,
ExchangePattern pattern,
Object body,
String property,
Object propertyValue)
Sends the body to an endpoint with a specified property and property value
Notice: that if the processing of the exchange failed with an Exception it is thrown from this method as a CamelExecutionException with
the caused exception wrapped. |
void |
ProducerTemplate.sendBodyAndProperty(Endpoint endpoint,
Object body,
String property,
Object propertyValue)
Sends the body to an endpoint with a specified property and property value
Notice: that if the processing of the exchange failed with an Exception it is thrown from this method as a CamelExecutionException with
the caused exception wrapped. |
void |
FluentProducerTemplate.setDefaultEndpoint(Endpoint defaultEndpoint)
Sets the default endpoint to use if none is specified
|
void |
ProducerTemplate.setDefaultEndpoint(Endpoint defaultEndpoint)
Sets the default endpoint to use if none is specified
|
void |
ExtendedExchange.setFromEndpoint(Endpoint fromEndpoint)
Sets the endpoint which originated this message exchange.
|
FluentProducerTemplate |
FluentProducerTemplate.to(Endpoint endpoint)
Endpoint to send to
|
Constructor and Description |
---|
FailedToCreateConsumerException(Endpoint endpoint,
String message) |
FailedToCreateConsumerException(Endpoint endpoint,
String message,
Throwable cause) |
FailedToCreateConsumerException(Endpoint endpoint,
Throwable cause) |
FailedToCreateProducerException(Endpoint endpoint,
Throwable cause) |
ProxyInstantiationException(Class<?> type,
Endpoint endpoint,
Throwable cause) |
Modifier and Type | Interface and Description |
---|---|
interface |
BrowsableEndpoint
An optional interface an
Endpoint may choose to implement which allows it to
expose a way of browsing the exchanges available. |
interface |
InterceptSendToEndpoint
This is an endpoint when sending to it, is intercepted and is routed in a detour, with the following flow:
before, send to original endpoint (can be skipped), after (optional).
|
Modifier and Type | Method and Description |
---|---|
Endpoint |
CamelEvent.ExchangeSendingEvent.getEndpoint() |
Endpoint |
CamelEvent.ExchangeSentEvent.getEndpoint() |
Endpoint |
InterceptSendToEndpoint.getOriginalEndpoint()
The original endpoint which was intercepted.
|
Endpoint |
EndpointStrategy.registerEndpoint(String uri,
Endpoint endpoint)
Register the endpoint.
|
Modifier and Type | Method and Description |
---|---|
PollingConsumer |
ConsumerCache.acquirePollingConsumer(Endpoint endpoint)
Acquires a pooled polling consumer which you must release back again after usage using the
ConsumerCache.releasePollingConsumer(Endpoint, PollingConsumer) method. |
AsyncProducer |
ProducerCache.acquireProducer(Endpoint endpoint)
Acquires a pooled producer which you must release back again after usage using the
ProducerCache.releaseProducer(org.apache.camel.Endpoint, org.apache.camel.AsyncProducer) method. |
CompletableFuture<Exchange> |
ProducerCache.asyncSendExchange(Endpoint endpoint,
ExchangePattern pattern,
Processor processor,
Processor resultProcessor,
Exchange exchange,
CompletableFuture<Exchange> future)
Asynchronously sends an exchange to an endpoint using a supplied
Processor to populate the exchange |
boolean |
PollingConsumerPollStrategy.begin(Consumer consumer,
Endpoint endpoint)
Called when poll is about to begin
|
void |
PollingConsumerPollStrategy.commit(Consumer consumer,
Endpoint endpoint,
int polledMessages)
Called when poll is completed successfully
|
CamelEvent |
EventFactory.createExchangeSendingEvent(Exchange exchange,
Endpoint endpoint)
Creates an
CamelEvent when an Exchange is about to be sent to the endpoint (eg before). |
CamelEvent |
EventFactory.createExchangeSentEvent(Exchange exchange,
Endpoint endpoint,
long timeTaken)
Creates an
CamelEvent when an Exchange has completely been sent to the endpoint (eg after). |
Producer |
DeferServiceFactory.createProducer(Endpoint endpoint)
Creates the
Producer which is deferred started until CamelContext is being started. |
<T> T |
BeanProxyFactory.createProxy(Endpoint endpoint,
boolean binding,
Class<T>... interfaceClasses)
Creates a proxy bean facaded with the interfaces that when invoked will send the data as a message to a Camel endpoint.
|
boolean |
ProducerCache.doInAsyncProducer(Endpoint endpoint,
Exchange exchange,
AsyncCallback callback,
ProducerCache.AsyncProducerCallback producerCallback)
Sends an exchange to an endpoint using a supplied callback supporting the asynchronous routing engine.
|
Object |
ManagementObjectStrategy.getManagedObjectForEndpoint(CamelContext context,
Endpoint endpoint) |
ObjectName |
ManagementObjectNameStrategy.getObjectNameForEndpoint(Endpoint endpoint) |
void |
LifecycleStrategy.onEndpointAdd(Endpoint endpoint)
Notification on adding an
Endpoint . |
void |
LifecycleStrategy.onEndpointRemove(Endpoint endpoint)
Notification on removing an
Endpoint . |
Exchange |
ConsumerCache.receive(Endpoint endpoint)
Waits until a message is available and then returns it.
|
Exchange |
ConsumerCache.receive(Endpoint endpoint,
long timeout)
Attempts to receive a message exchange, waiting up to the given timeout
to expire if a message is not yet available.
|
Exchange |
ConsumerCache.receiveNoWait(Endpoint endpoint)
Attempts to receive a message exchange immediately without waiting and
returning null if a message exchange is not available yet.
|
Endpoint |
EndpointStrategy.registerEndpoint(String uri,
Endpoint endpoint)
Register the endpoint.
|
void |
ConsumerCache.releasePollingConsumer(Endpoint endpoint,
PollingConsumer pollingConsumer)
Releases an acquired polling consumer back after usage.
|
void |
ProducerCache.releaseProducer(Endpoint endpoint,
AsyncProducer producer)
Releases an acquired producer back after usage.
|
boolean |
PollingConsumerPollStrategy.rollback(Consumer consumer,
Endpoint endpoint,
int retryCounter,
Exception cause)
Called when poll failed
|
Exchange |
ProducerCache.send(Endpoint endpoint,
Exchange exchange,
Processor resultProcessor)
Sends the exchange to the given endpoint.
|
Apache Camel