org.apache.camel.processor
Class CamelInternalProcessor.StreamCachingAdvice

java.lang.Object
  extended by org.apache.camel.processor.CamelInternalProcessor.StreamCachingAdvice
All Implemented Interfaces:
CamelInternalProcessorAdvice<StreamCache>
Enclosing class:
CamelInternalProcessor

public static class CamelInternalProcessor.StreamCachingAdvice
extends Object
implements CamelInternalProcessorAdvice<StreamCache>

Advice for StreamCachingStrategy


Constructor Summary
CamelInternalProcessor.StreamCachingAdvice(StreamCachingStrategy strategy)
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CamelInternalProcessor.StreamCachingAdvice

public CamelInternalProcessor.StreamCachingAdvice(StreamCachingStrategy strategy)
Method Detail

before

public StreamCache before(Exchange exchange)
                   throws Exception
Description copied from interface: CamelInternalProcessorAdvice
Callback executed before processing a step in the route.

Specified by:
before in interface CamelInternalProcessorAdvice<StreamCache>
Parameters:
exchange - the current exchange
Returns:
any state to keep and provide as data to the CamelInternalProcessorAdvice.after(org.apache.camel.Exchange, Object) method, or use null for no state.
Throws:
Exception - is thrown if error during the call.

after

public void after(Exchange exchange,
                  StreamCache sc)
           throws Exception
Description copied from interface: CamelInternalProcessorAdvice
Callback executed after processing a step in the route.

Specified by:
after in interface CamelInternalProcessorAdvice<StreamCache>
Parameters:
exchange - the current exchange
sc - the state, if any, returned in the CamelInternalProcessorAdvice.before(org.apache.camel.Exchange) method.
Throws:
Exception - is thrown if error during the call.


Apache Camel