public static class CamelInternalProcessor.StreamCachingAdvice extends Object implements CamelInternalProcessorAdvice<StreamCache>, Ordered
StreamCachingStrategy| Constructor and Description |
|---|
CamelInternalProcessor.StreamCachingAdvice(StreamCachingStrategy strategy) |
| Modifier and Type | Method and Description |
|---|---|
void |
after(Exchange exchange,
StreamCache sc)
Callback executed after processing a step in the route.
|
StreamCache |
before(Exchange exchange)
Callback executed before processing a step in the route.
|
int |
getOrder()
Gets the order.
|
public CamelInternalProcessor.StreamCachingAdvice(StreamCachingStrategy strategy)
public StreamCache before(Exchange exchange) throws Exception
CamelInternalProcessorAdvicebefore in interface CamelInternalProcessorAdvice<StreamCache>exchange - the current exchangeCamelInternalProcessorAdvice.after(org.apache.camel.Exchange, Object) method, or use null for no state.Exception - is thrown if error during the call.public void after(Exchange exchange, StreamCache sc) throws Exception
CamelInternalProcessorAdviceafter in interface CamelInternalProcessorAdvice<StreamCache>exchange - the current exchangesc - the state, if any, returned in the CamelInternalProcessorAdvice.before(org.apache.camel.Exchange) method.Exception - is thrown if error during the call.public int getOrder()
OrderedInteger.MAX_VALUE or eg Ordered.LOWEST.Apache Camel