org.apache.servicemix.bean.support
Class Request
java.lang.Object
org.apache.servicemix.bean.support.Request
public class Request
- extends java.lang.Object
|
Constructor Summary |
Request(java.lang.Object correlationId,
java.lang.Object bean,
javax.jbi.messaging.MessageExchange exchange)
|
|
Method Summary |
void |
addExchange(javax.jbi.messaging.MessageExchange exchange)
Add an exchange to this request. |
java.lang.Object |
getBean()
|
java.util.Map<java.lang.reflect.Method,java.lang.Boolean> |
getCallbacks()
|
java.lang.Object |
getCorrelationId()
|
java.util.Set<javax.jbi.messaging.MessageExchange> |
getExchanges()
Get all the MessageExchanges that are involved in this request |
boolean |
isFinished()
Check if this request is completely finished. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Request
public Request(java.lang.Object correlationId,
java.lang.Object bean,
javax.jbi.messaging.MessageExchange exchange)
getBean
public java.lang.Object getBean()
- Returns:
- the bean
getCorrelationId
public java.lang.Object getCorrelationId()
getCallbacks
public java.util.Map<java.lang.reflect.Method,java.lang.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(javax.jbi.messaging.MessageExchange exchange)
- Add an exchange to this request. All exchanges that are added to the request have to be finished
- Parameters:
exchange -
getExchanges
public java.util.Set<javax.jbi.messaging.MessageExchange> getExchanges()
- Get all the MessageExchanges that are involved in this request
- Returns:
- an unmodifiable list of
MessageExchanges
Copyright © 2005-2012 FuseSource. All Rights Reserved.