org.apache.camel.processor.aggregate
Interface TimeoutAwareAggregationStrategy

All Superinterfaces:
AggregationStrategy

public interface TimeoutAwareAggregationStrategy
extends AggregationStrategy

A specialized AggregationStrategy which can handle timeouts as well.

Version:

Method Summary
 void timeout(Exchange oldExchange, int index, int total, long timeout)
          A timeout occurred.
 
Methods inherited from interface org.apache.camel.processor.aggregate.AggregationStrategy
aggregate
 

Method Detail

timeout

void timeout(Exchange oldExchange,
             int index,
             int total,
             long timeout)
A timeout occurred.

Important: This method must not throw any exceptions.

Parameters:
oldExchange - the current aggregated exchange, or the original Exchange if no aggregation has been done before the timeout occurred
index - the index, may be -1 if not possible to determine the index
total - the total, may be -1 if not possible to determine the total
timeout - the timeout value in millis, may be -1 if not possible to determine the timeout


Apache CAMEL