@Deprecated public final class StreamCaching extends Object implements InterceptStrategy
InterceptStrategy
implementation to configure stream caching on a RouteContextConstructor and Description |
---|
StreamCaching()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static StreamCaching |
getStreamCaching(CamelContext context)
Deprecated.
A helper method to return the StreamCaching instance
for a given
CamelContext if one is enabled |
static StreamCaching |
getStreamCaching(List<InterceptStrategy> interceptors)
Deprecated.
A helper method to return the StreamCaching instance
for a given list of interceptors
|
static void |
noStreamCaching(List<InterceptStrategy> interceptors)
Deprecated.
Remove the
StreamCachingInterceptor from the given list of interceptors |
String |
toString()
Deprecated.
|
Processor |
wrapProcessorInInterceptors(CamelContext context,
ProcessorDefinition<?> definition,
Processor target,
Processor nextTarget)
Deprecated.
This method is invoked by
ProcessorDefinition.wrapProcessor(RouteContext, Processor)
to give the implementor an opportunity to wrap the target processor
in a route. |
public StreamCaching()
public Processor wrapProcessorInInterceptors(CamelContext context, ProcessorDefinition<?> definition, Processor target, Processor nextTarget) throws Exception
InterceptStrategy
ProcessorDefinition.wrapProcessor(RouteContext, Processor)
to give the implementor an opportunity to wrap the target processor
in a route.
Important: See the class javadoc for advice on letting interceptor be compatible with the
asynchronous routing engine.wrapProcessorInInterceptors
in interface InterceptStrategy
context
- Camel contextdefinition
- the model this interceptor representstarget
- the processor to be wrappednextTarget
- the next processor to be routed toException
- can be thrownpublic static StreamCaching getStreamCaching(CamelContext context)
CamelContext
if one is enabledcontext
- the camel context the stream cache is connected topublic static StreamCaching getStreamCaching(List<InterceptStrategy> interceptors)
interceptors
- the list of interceptorspublic static void noStreamCaching(List<InterceptStrategy> interceptors)
StreamCachingInterceptor
from the given list of interceptorsinterceptors
- the list of interceptorsApache Camel