|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.camel.processor.interceptor.StreamCaching
public final class StreamCaching
InterceptStrategy
implementation to configure stream caching on a RouteContext
Constructor Summary | |
---|---|
StreamCaching()
|
Method Summary | |
---|---|
static StreamCaching |
getStreamCaching(CamelContext context)
A helper method to return the StreamCaching instance for a given CamelContext if one is enabled |
static StreamCaching |
getStreamCaching(List<InterceptStrategy> interceptors)
A helper method to return the StreamCaching instance for a given list of interceptors |
static void |
noStreamCaching(List<InterceptStrategy> interceptors)
Remove the StreamCachingInterceptor from the given list of interceptors |
String |
toString()
|
Processor |
wrapProcessorInInterceptors(CamelContext context,
ProcessorDefinition<?> definition,
Processor target,
Processor nextTarget)
This method is invoked by ProcessorDefinition.wrapProcessor(RouteContext, Processor)
to give the implementor an opportunity to wrap the target processor
in a route. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public StreamCaching()
Method Detail |
---|
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 to
Exception
- can be thrownpublic static StreamCaching getStreamCaching(CamelContext context)
CamelContext
if one is enabled
context
- the camel context the stream cache is connected to
public static StreamCaching getStreamCaching(List<InterceptStrategy> interceptors)
interceptors
- the list of interceptors
public static void noStreamCaching(List<InterceptStrategy> interceptors)
StreamCachingInterceptor
from the given list of interceptors
interceptors
- the list of interceptorspublic String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |