org.apache.camel.impl
Class GroupedExchange

java.lang.Object
  extended by org.apache.camel.impl.DefaultExchange
      extended by org.apache.camel.impl.GroupedExchange
All Implemented Interfaces:
Exchange

public class GroupedExchange
extends DefaultExchange

A grouped exchange that groups together other exchanges, as a holder object.

This grouped exchange is useable for the aggregator so multiple exchanges can be grouped into this single exchange and thus only one exchange is sent for further processing.


Field Summary
 
Fields inherited from class org.apache.camel.impl.DefaultExchange
context
 
Fields inherited from interface org.apache.camel.Exchange
AGGREGATED_INDEX, AGGREGATED_SIZE, ASYNC_WAIT, BATCH_COMPLETE, BATCH_INDEX, BATCH_SIZE, BEAN_HOLDER, BEAN_METHOD_NAME, BEAN_MULTI_PARAMETER_ARRAY, CHARSET_NAME, CONTENT_TYPE, DATASET_INDEX, EXCEPTION_CAUGHT, EXCEPTION_HANDLED, FAILURE_HANDLED, FILE_LOCAL_WORK_PATH, FILE_NAME, FILE_NAME_ONLY, FILE_NAME_PRODUCED, FILE_PARENT, FILE_PATH, FILTERED, HTTP_CHARACTER_ENCODING, HTTP_METHOD, HTTP_PATH, HTTP_QUERY, HTTP_RESPONSE_CODE, HTTP_URI, INTERCEPTED_ENDPOINT, LOG_DEBUG_BODY_MAX_CHARS, LOOP_INDEX, LOOP_SIZE, MULTICAST_INDEX, ON_COMPLETION, REDELIVERED, REDELIVERY_COUNTER, ROLLBACK_ONLY, ROUTE_STOP, SPLIT_INDEX, SPLIT_SIZE, TIMER_FIRED_TIME, TIMER_NAME, TIMER_PERIOD, TIMER_TIME, TRANSACTED
 
Constructor Summary
GroupedExchange(CamelContext context)
           
GroupedExchange(CamelContext context, ExchangePattern pattern)
           
GroupedExchange(Endpoint fromEndpoint)
           
GroupedExchange(Endpoint fromEndpoint, ExchangePattern pattern)
           
GroupedExchange(Exchange parent)
           
 
Method Summary
 void addExchange(Exchange exchange)
           
 Exchange get(int index)
           
 List<Exchange> getExchanges()
           
 void setExchanges(List<Exchange> exchanges)
           
 int size()
           
 String toString()
           
 
Methods inherited from class org.apache.camel.impl.DefaultExchange
addOnCompletion, configureMessage, copy, copyFrom, createExchangeId, createFaultMessage, createInMessage, createOutMessage, getContext, getException, getException, getExchangeId, getFault, getFault, getFromEndpoint, getIn, getOut, getOut, getPattern, getProperties, getProperty, getProperty, getUnitOfWork, hasFault, hasOut, isFailed, isRollbackOnly, isTransacted, newCopy, newInstance, removeFault, removeProperty, setException, setExchangeId, setFault, setFromEndpoint, setIn, setOut, setPattern, setProperties, setProperty, setUnitOfWork
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GroupedExchange

public GroupedExchange(CamelContext context)

GroupedExchange

public GroupedExchange(CamelContext context,
                       ExchangePattern pattern)

GroupedExchange

public GroupedExchange(Exchange parent)

GroupedExchange

public GroupedExchange(Endpoint fromEndpoint)

GroupedExchange

public GroupedExchange(Endpoint fromEndpoint,
                       ExchangePattern pattern)
Method Detail

getExchanges

public List<Exchange> getExchanges()

setExchanges

public void setExchanges(List<Exchange> exchanges)

addExchange

public void addExchange(Exchange exchange)

size

public int size()

get

public Exchange get(int index)

toString

public String toString()
Overrides:
toString in class DefaultExchange


Copyright © 2009 Apache Software Foundation. All Rights Reserved.