org.apache.servicemix.bean.support
Class Request
java.lang.Object
org.apache.servicemix.bean.support.Request
public class Request
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Request
public Request(Object correlationId,
Object bean,
MessageExchange exchange)
getBean
public Object getBean()
- Returns:
- the bean
getCorrelationId
public Object getCorrelationId()
getCallbacks
public Map<Method,Boolean> getCallbacks()
- Returns:
- the callbacks
isFinished
public boolean isFinished()
- Check if this request is completely finished.
- Returns:
true if both the Exchange is DONE and there are no more outstanding sent exchanges
addExchange
public void addExchange(MessageExchange exchange)
- Add an exchange to this request. All exchanges that are added to the request have to be finished
- Parameters:
exchange -
getExchanges
public Set<MessageExchange> getExchanges()
- Get all the MessageExchanges that are involved in this request
- Returns:
- an unmodifiable list of
MessageExchanges
Copyright © 2005-2010 Apache Software Foundation. All Rights Reserved.