Uses of Interface
org.apache.camel.Endpoint
-
Packages that use Endpoint 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. -
-
Uses of Endpoint in org.apache.camel
Subinterfaces of Endpoint in org.apache.camel Modifier and Type Interface Description interface
ApiEndpoint
Marks theEndpoint
as an endpoint from an API based component.interface
AsyncEndpoint
Marks theEndpoint
as support asynchronous non-blocking routing in its consumer and producer.interface
DelegateEndpoint
An interface to represent anEndpoint
which are delegated.Methods in org.apache.camel with type parameters of type Endpoint Modifier and Type Method Description <T extends Endpoint>
TCamelContext. getEndpoint(String name, Class<T> endpointType)
Resolves the given name to anEndpoint
of the specified type.<T extends Endpoint>
TEndpointConsumerResolver. resolve(CamelContext context, Class<T> endpointType)
Resolves this object as an endpoint.<T extends Endpoint>
TEndpointProducerResolver. resolve(CamelContext context, Class<T> endpointType)
Resolves this object as an endpoint.Methods in org.apache.camel that return Endpoint Modifier and Type Method Description Endpoint
CamelContext. addEndpoint(String uri, Endpoint endpoint)
Adds and starts the endpoint to theEndpointRegistry
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 specifiedEndpoint
ProducerTemplate. getDefaultEndpoint()
Get the default endpoint to use if none is specifiedEndpoint
CamelContext. getEndpoint(String uri)
Resolves the given name to anEndpoint
of the specified type.Endpoint
CamelContext. getEndpoint(String uri, Map<String,Object> parameters)
Resolves the given name to anEndpoint
of the specified type.Endpoint
DelegateEndpoint. getEndpoint()
Gets the delegatedEndpoint
.Endpoint
EndpointAware. getEndpoint()
Gets the endpoint associated with an object.Endpoint
ExtendedCamelContext. getEndpoint(NormalizedEndpointUri uri)
Resolves the given name to anEndpoint
of the specified type.Endpoint
ExtendedCamelContext. getEndpoint(NormalizedEndpointUri uri, Map<String,Object> parameters)
Resolves the given name to anEndpoint
of the specified type.Endpoint
ProxyInstantiationException. getEndpoint()
Endpoint
Route. getEndpoint()
Gets the input endpoint for this route.Endpoint
Exchange. getFromEndpoint()
Returns the endpoint which originated this message exchange if a consumer on an endpoint created the message exchange, otherwise his property will be null.Endpoint
ExtendedCamelContext. getPrototypeEndpoint(String uri)
Resolves the given name to anEndpoint
of the specified type (scope is prototype).Endpoint
ExtendedCamelContext. getPrototypeEndpoint(NormalizedEndpointUri uri)
Resolves the given name to anEndpoint
of the specified type (scope is prototype).Endpoint
CamelContext. hasEndpoint(String uri)
Is the given endpoint already registered in theEndpointRegistry
Endpoint
ExtendedCamelContext. hasEndpoint(NormalizedEndpointUri uri)
Is the given endpoint already registered in theEndpointRegistry
Endpoint
EndpointConsumerResolver. resolve(CamelContext context)
Resolves this object as an endpoint.Endpoint
EndpointProducerResolver. resolve(CamelContext context)
Resolves this object as an endpoint.Methods in org.apache.camel that return types with arguments of type Endpoint Modifier and Type Method Description Map<String,Endpoint>
CamelContext. getEndpointMap()
Deprecated.Collection<Endpoint>
CamelContext. getEndpoints()
Returns a read-onlyCollection
of all of the endpoints from theEndpointRegistry
Collection<Endpoint>
CamelContext. removeEndpoints(String pattern)
Removes all endpoints with the given URI from theEndpointRegistry
.Methods in org.apache.camel with parameters of type Endpoint Modifier and Type Method Description Endpoint
CamelContext. addEndpoint(String uri, Endpoint endpoint)
Adds and starts the endpoint to theEndpointRegistry
using the given URI.CompletableFuture<Exchange>
ProducerTemplate. asyncCallback(Endpoint endpoint, Exchange exchange, Synchronization onCompletion)
Deprecated.CompletableFuture<Exchange>
ProducerTemplate. asyncCallback(Endpoint endpoint, Processor processor, Synchronization onCompletion)
Deprecated.CompletableFuture<Object>
ProducerTemplate. asyncCallbackRequestBody(Endpoint endpoint, Object body, Synchronization onCompletion)
Deprecated.CompletableFuture<Object>
ProducerTemplate. asyncCallbackSendBody(Endpoint endpoint, Object body, Synchronization onCompletion)
Deprecated.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 occursObject
ConsumerTemplate. receiveBody(Endpoint endpoint)
Receives from the endpoint, waiting until there is a responseObject
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<T> T
ConsumerTemplate. receiveBody(Endpoint endpoint, Class<T> type)
Receives from the endpoint, waiting until there is a responseObject
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 theEndpointRegistry
.Exchange
ProducerTemplate. request(Endpoint endpoint, Processor processor)
Sends an exchange to an endpoint using a supplied processor Uses anExchangePattern.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
Exchange
ProducerTemplate. send(Endpoint endpoint, ExchangePattern pattern, Processor processor)
Sends an exchange to an endpoint using a supplied processor
Exchange
ProducerTemplate. send(Endpoint endpoint, ExchangePattern pattern, Processor processor, Processor resultProcessor)
Sends an exchange to an endpoint using a supplied processor
Exchange
ProducerTemplate. send(Endpoint endpoint, Processor processor)
Sends an exchange to an endpoint using a supplied processor
void
ProducerTemplate. sendBody(Endpoint endpoint, Object body)
Send the body to an endpoint
Object
ProducerTemplate. sendBody(Endpoint endpoint, ExchangePattern pattern, Object body)
void
ProducerTemplate. sendBodyAndHeader(Endpoint endpoint, Object body, String header, Object headerValue)
Sends the body to an endpoint with a specified header and header value
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
void
ProducerTemplate. sendBodyAndHeaders(Endpoint endpoint, Object body, Map<String,Object> headers)
Sends the body to an endpoint with the specified headers and header values
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
void
ProducerTemplate. sendBodyAndProperty(Endpoint endpoint, Object body, String property, Object propertyValue)
Sends the body to an endpoint with a specified property and property value
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
void
FluentProducerTemplate. setDefaultEndpoint(Endpoint defaultEndpoint)
Sets the default endpoint to use if none is specifiedvoid
ProducerTemplate. setDefaultEndpoint(Endpoint defaultEndpoint)
Sets the default endpoint to use if none is specifiedvoid
ExtendedExchange. setFromEndpoint(Endpoint fromEndpoint)
Sets the endpoint which originated this message exchange.FluentProducerTemplate
FluentProducerTemplate. to(Endpoint endpoint)
Endpoint to send toFluentProducerTemplate
FluentProducerTemplate. withDefaultEndpoint(Endpoint endpoint)
Sets the default endpointConstructors in org.apache.camel with parameters of type Endpoint Constructor 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)
-
Uses of Endpoint in org.apache.camel.spi
Subinterfaces of Endpoint in org.apache.camel.spi Modifier and Type Interface Description interface
BrowsableEndpoint
An optional interface anEndpoint
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).Methods in org.apache.camel.spi that return Endpoint Modifier and Type Method Description Endpoint
InterceptEndpointFactory. createInterceptSendToEndpoint(CamelContext camelContext, Endpoint endpoint, boolean skip, Processor before, Processor after)
Creates an endpoint when intercepting sending to an endpoint (detour).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.Methods in org.apache.camel.spi that return types with arguments of type Endpoint Modifier and Type Method Description Collection<Endpoint>
EndpointRegistry. getReadOnlyValues()
Gets a read-only collection of the endpoints currently in the registry.Methods in org.apache.camel.spi with parameters of type Endpoint Modifier and Type Method Description PollingConsumer
ConsumerCache. acquirePollingConsumer(Endpoint endpoint)
Acquires a pooled polling consumer which you must release back again after usage using theConsumerCache.releasePollingConsumer(Endpoint, PollingConsumer)
method.AsyncProducer
ProducerCache. acquireProducer(Endpoint endpoint)
Acquires a pooled producer which you must release back again after usage using theProducerCache.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 suppliedProcessor
to populate the exchangeboolean
PollingConsumerPollStrategy. begin(Consumer consumer, Endpoint endpoint)
Called when poll is about to beginvoid
PollingConsumerPollStrategy. commit(Consumer consumer, Endpoint endpoint, int polledMessages)
Called when poll is completed successfullyExchange
ExchangeFactory. create(Endpoint fromEndpoint, boolean autoRelease)
Gets a newExchange
Exchange
ProcessorExchangeFactory. create(Endpoint fromEndpoint, ExchangePattern exchangePattern)
Gets a newExchange
CamelEvent
EventFactory. createExchangeSendingEvent(Exchange exchange, Endpoint endpoint)
Creates anCamelEvent
when anExchange
is about to be sent to the endpoint (eg before).CamelEvent
EventFactory. createExchangeSentEvent(Exchange exchange, Endpoint endpoint, long timeTaken)
Creates anCamelEvent
when anExchange
has completely been sent to the endpoint (eg after).Endpoint
InterceptEndpointFactory. createInterceptSendToEndpoint(CamelContext camelContext, Endpoint endpoint, boolean skip, Processor before, Processor after)
Creates an endpoint when intercepting sending to an endpoint (detour).AsyncProducer
InternalProcessorFactory. createInterceptSendToEndpointProcessor(InterceptSendToEndpoint endpoint, Endpoint delegate, AsyncProducer producer, boolean skip)
Producer
DeferServiceFactory. createProducer(Endpoint endpoint)
Creates theProducer
which is deferred started untilCamelContext
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.Route
RouteFactory. createRoute(CamelContext camelContext, NamedNode routeDefinition, String routeId, String routeDescription, Endpoint endpoint, Resource resource)
Creates the route which should be configured afterwards with more configurations.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 anEndpoint
.void
LifecycleStrategy. onEndpointRemove(Endpoint endpoint)
Notification on removing anEndpoint
.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 failedExchange
ProducerCache. send(Endpoint endpoint, Exchange exchange, Processor resultProcessor)
Sends the exchange to the given endpoint.
-