Package org.apache.camel.support
package org.apache.camel.support
Base classes that help to implement the camel API and are expected to be extended by the user
-
ClassDescriptionAsyncCallback that provides a
CompletableFuture
completed when async action is doneA simple converter that can convert anyProcessor
to anAsyncProcessor
.Helper methods forAsyncProcessor
objects.A support class forBreakpoint
implementations to use as base class.AnExceptionHandler
that uses theDefaultConsumer
to process the caused exception to send the message into the Camel routing engine which allows to let the routing engine handle the exception.A resource which will cache the content of the input stream on first read.A number of helper methodsBase class to control lifecycle for a set of childService
s.The classic (Camel 2.x)UuidGenerator
optimized for Camel usage.A helper class for developers wishing to implement anExpression
using Java code with a minimum amount of code to write so that the developer only needs to implement one of theExpressionAdapter.evaluate(Exchange, Class)
orExpressionSupport.evaluate(Exchange)
methods.AComponentCustomizer.Policy
that uses a hierarchical lists of properties to determine if customization is enabled for the givenComponent
.ADataFormatCustomizer.Policy
that uses a hierarchical lists of properties to determine if customization is enabled for the givenDataFormat
.ALanguageCustomizer.Policy
that uses a hierarchical lists of properties to determine if customization is enabled for the givenLanguage
.A default implementation ofProducer
for implementation inheritance, which can processExchange
s asynchronously.Default component to use for base for components implementations.A default consumer useful for implementation inheritance.DefaultContextReloadStrategy
.A default dataformat useful for implementation inheritance.DefaultEndpoint
.The default and only implementation ofExchange
.Holder object for sending an exchange over a remote wire as a serialized object.The default header filtering strategy.This is an endpoint when sending to it, is intercepted and is routed in a detour (before and optionally after).DefaultLRUCacheFactory
which uses aLinkedHashMap
based implementation.The default implementation ofMessage
DefaultMessageHistory
.A default implementation that will not retry on rollback.A base class for an endpoint which the default consumer mode is to use aPollingConsumer
The default and only implementation ofPooledExchange
.A default implementation ofProducer
for implementation inheritance.The defaultRegistry
which supports using a given first-choice repository to lookup the beans, such as Spring, JNDI, OSGi etc.A default implementation of an event drivenConsumer
which uses thePollingConsumer
The default scheduler forScheduledPollConsumer
.Factory for thread pools that uses the JDKExecutors
for creating the thread pools.DefaultTimeoutMap<K,V> Default implementation of theTimeoutMap
.DefaultUuidGenerator
(32 chars) optimized for Camel usage.AProducer
that defers being started, untilCamelContext
has been started, this ensures that the producer is able to adapt to changes that may otherwise occur during starting CamelContext.An emptyAsyncCallback
which allows to share the same instance instead of creating a new instance for each message.Some helper methods for working withEndpoint
instancesA default implementation of thePollingConsumer
which uses the normal asynchronous consumer mechanism along with aBlockingQueue
to allow the caller to pull messages on demand.Helper for easily sending event notifications in a single line of codeBase class to extend for customEventNotifier
implementations.Some helper methods for working withExchange
objectsA helper class for developers wishing to implement anExpression
using Java code with a minimum amount of code to write so that the developer only needs to implement one of theExpressionAdapter.evaluate(org.apache.camel.Exchange, Class)
orExpressionSupport.evaluate(org.apache.camel.Exchange)
methods.An implementation ofComparator
that takes anExpression
which is evaluated on each exchange to be comparedAn implementation ofComparator
which takes a list ofExpression
objects which is evaluated on each exchange to compare themA useful base class forPredicate
andExpression
implementationsTo adaptExpression
as aPredicate
A file basedResourceReloadStrategy
which watches a file folder for modified files and reload on file changes.Helper class to help wrapping content into GZIP input and output streams.Base class for components to support configuring aHeaderFilterStrategy
.A selector-based producer which uses a header value to determine which processor should be invoked.Base class for components to support configuringHealthCheck
.AnInputStream
that wraps anIterator
which reads iterations as byte array data.Base language forLanguage
implementations.AProducer
which is created and started lazy, on the first message processed.A useful base class forLifecycleStrategy
implementations.A special registry which is used for local beans.Helper for logging purposes.A default implementation ofExceptionHandler
which uses aCamelLogger
to log the exception.LRUCache<K,V> A least-recently-used cache.Factory to createLRUCache
instances.Some helper methods when working withMessage
.A base class for implementation inheritance providing the coreMessage
body handling features but letting the derived class deal with headers.Empty lock implementationImplementation ofNormalizedEndpointUri
.A number of useful helper methods for working with ObjectsUuidGenerator
which is turned off for exchange ids, but generated UUIDs for everything else.A comparator to sortOrdered
Convenient helper to get easy access to various extensions fromExtendedCamelContext
.A useful base class for implementations ofPollingConsumer
Base class for buildingPooledObjectFactory
based factories.Represents utilization statisticsA helper for doingPredicate
assertions.To adaptPredicate
as anExpression
An endpoint which allows exchanges to be sent into it which just invokes a givenProcessor
.A simple implementation ofPollingConsumer
which just uses aProcessor
.Listener when using Camel property binding (org.apache.camel.support.PropertyBinding).A convenient support class for binding String valued properties to an instance which uses a set of conventions: property placeholders - Keys and values using Camels property placeholder will be resolved nested - Properties can be nested using the dot syntax (OGNL and builder pattern using with as prefix), eg foo.bar=123 map - Properties can lookup in Map's using map syntax, eg foo[bar] where foo is the name of the property that is a Map instance, and bar is the name of the key. list - Properties can refer or add to in List's using list syntax, eg foo[0] where foo is the name of the property that is a List instance, and 0 is the index.To use a fluent builder style to configure this property binding support.Helper class for dealing with configurers.PooledObjectFactory
that creates a new instance (does not pool).Represents utilization statisticsSome helper methods for new resolvers (likeComponentResolver
,DataFormatResolver
, etc.).Helper class for loading resources on the classpath or file system.Base class for implementing customResourceReloadStrategy
SPI plugins.Base class forResourceResolver
implementations.Base class forResource
implementations.Helper class for rest-dsl components.A context path matcher when using rest-dsl that allows components to reuse the same matching logic.Consumer path details which must be implemented and provided by the components.Helper for creating configuredComponent
s used by theRestProducerFactory
contract.Strategy for triggering on-demand reloading of Camel routes in a running Camel application.A base class for developing customRoutePolicy
implementations.Base class forRoutesBuilderLoader
implementations.Helper for working with route templates.Watcher strategy for triggering reloading of Camel routes in a running Camel application.A useful base class for any consumer which is polling batch basedA useful base class for any consumer which is polling basedHealthCheck
that uses the last polling state fromScheduledPollConsumer
when reporting the health.A base class forEndpoint
which creates aScheduledPollConsumer
UuidGenerator
that is 50% the size of the default (16 chars) optimized for Camel usage.Base class to extend for customEventNotifier
implementations.AMap
-based registry.Another base class forTypeConverter
implementations.This implementation uses a counter which increments by one.Base class forLanguage
implementations that support different sources of input data.Base class forLanguage
implementations that support a result type and different sources of input data.Used for storing beans that are supplied via aSupplier
.SimpleSynchronization
adapter with empty methods for easier overriding of single methods.To process the delegated producer in synchronous mode.TimeoutMapEntry<K,V> Represents an entry in aTimeoutMap
ATimerListener
manager which triggers theTimerListener
listeners once every second.Base class forTypeConverter
implementations.Base class forLanguage
implementations that support a result type.TypedProcessorFactory<T extends org.apache.camel.NamedNode>Utility methods forUnitOfWork