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
-
ClassDescriptionBase class for
VariableRepositoryimplementations that store variables in memory.AsyncCallback that provides aCompletableFuturecompleted when async action is doneA simple converter that can convert anyProcessorto anAsyncProcessor.Helper methods forAsyncProcessorobjects.A support class forBreakpointimplementations to use as base class.AnExceptionHandlerthat uses theDefaultConsumerto 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 childServices.The classic (Camel 2.x)UuidGeneratoroptimized for Camel usage.A helper class for developers wishing to implement anExpressionusing 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.Policythat uses a hierarchical lists of properties to determine if customization is enabled for the givenComponent.ADataFormatCustomizer.Policythat uses a hierarchical lists of properties to determine if customization is enabled for the givenDataFormat.ALanguageCustomizer.Policythat uses a hierarchical lists of properties to determine if customization is enabled for the givenLanguage.A default implementation ofProducerfor implementation inheritance, which can processExchanges 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).DefaultLRUCacheFactorywhich uses aLinkedHashMapbased implementation.The default implementation ofMessageDefaultMessageHistory.A default implementation that will not retry on rollback.A base class for an endpoint which the default consumer mode is to use aPollingConsumerThe default and only implementation ofPooledExchange.A default implementation ofProducerfor implementation inheritance.The defaultRegistrywhich supports using a given first-choice repository to lookup the beans, such as Spring, JNDI, OSGi etc.A default implementation of an event drivenConsumerwhich uses thePollingConsumerThe default scheduler forScheduledPollConsumer.Factory for thread pools that uses the JDKExecutorsfor creating the thread pools.DefaultTimeoutMap<K,V> Default implementation of theTimeoutMap.DefaultUuidGenerator(32 chars) optimized for Camel usage.AProducerthat defers being started, untilCamelContexthas been started, this ensures that the producer is able to adapt to changes that may otherwise occur during starting CamelContext.An emptyAsyncCallbackwhich allows to share the same instance instead of creating a new instance for each message.Some helper methods for working withEndpointinstancesA default implementation of thePollingConsumerwhich uses the normal asynchronous consumer mechanism along with aBlockingQueueto allow the caller to pull messages on demand.Helper for easily sending event notifications in a single line of codeBase class to extend for customEventNotifierimplementations.Some helper methods for working withExchangeobjectsA helper class for developers wishing to implement anExpressionusing 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 ofComparatorthat takes anExpressionwhich is evaluated on each exchange to be comparedAn implementation ofComparatorwhich takes a list ofExpressionobjects which is evaluated on each exchange to compare themA useful base class forPredicateandExpressionimplementationsTo adaptExpressionas aPredicateA file basedResourceReloadStrategywhich watches a file folder for modified files and reload on file changes.GlobalVariableRepositorywhich stores variables in-memory in aMap.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.AnInputStreamthat wraps anIteratorwhich reads iterations as byte array data.Wraps anIteratorso its returned values are automatically converted to a given type.Base language forLanguageimplementations.AProducerwhich is created and started lazy, on the first message processed.A useful base class forLifecycleStrategyimplementations.A special registry which is used for local beans.Helper for logging purposes.A default implementation ofExceptionHandlerwhich uses aCamelLoggerto log the exception.LRUCache<K,V> A least-recently-used cache.Factory to createLRUCacheinstances.Some helper methods when working withMessage.A base class for implementation inheritance providing the coreMessagebody handling features but letting the derived class deal with headers.A clock that increases monotonically (i.e.: does not go back in time)Empty lock implementationImplementation ofNormalizedEndpointUri.A number of useful helper methods for working with ObjectsUuidGeneratorwhich is turned off for exchange ids, but generated UUIDs for everything else.A comparator to sortOrderedConvenient helper to get easy access to various extensions fromExtendedCamelContext.A useful base class for implementations ofPollingConsumerBase class for buildingPooledObjectFactorybased factories.Represents utilization statisticsA helper for doingPredicateassertions.To adaptPredicateas anExpressionAn endpoint which allows exchanges to be sent into it which just invokes a givenProcessor.A simple implementation ofPollingConsumerwhich 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.PooledObjectFactorythat creates a new instance (does not pool).Represents utilization statisticsA clock that can be reset.Some helper methods for new resolvers (likeComponentResolver,DataFormatResolver, etc.).Helper class for loading resources on the classpath or file system.Base class for implementing customResourceReloadStrategySPI plugins.Base class forResourceResolverimplementations.Base class forResourceimplementations.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 configuredComponents used by theRestProducerFactorycontract.Strategy for triggering on-demand reloading of Camel routes in a running Camel application.A base class for developing customRoutePolicyimplementations.Base class forRoutesBuilderLoaderimplementations.Helper for working with route templates.RouteVariableRepositorywhich stores variables in-memory per route.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 basedHealthCheckthat uses the last polling state fromScheduledPollConsumerwhen reporting the health.A base class forEndpointwhich creates aScheduledPollConsumerUuidGeneratorthat is 50% the size of the default (16 chars) optimized for Camel usage.Base class to extend for customEventNotifierimplementations.AMap-based registry.Another base class forTypeConverterimplementations.This implementation uses a counter which increments by one.Base class forLanguageimplementations that support a result type and different sources of input data.Used for storing beans that are supplied via aSupplier.SimpleSynchronizationadapter with empty methods for easier overriding of single methods.To process the delegated producer in synchronous mode.TimeoutMapEntry<K,V> Represents an entry in aTimeoutMapATimerListenermanager which triggers theTimerListenerlisteners once every second.Base class forTypeConverterimplementations.Base class forLanguageimplementations that support a result type.TypedProcessorFactory<T extends org.apache.camel.NamedNode>Utility methods forUnitOfWork