org.apache.servicemix.bean.support
Class Request

java.lang.Object
  extended by org.apache.servicemix.bean.support.Request

public class Request
extends Object


Constructor Summary
Request(Object correlationId, Object bean, javax.jbi.messaging.MessageExchange exchange)
           
 
Method Summary
 void addExchange(javax.jbi.messaging.MessageExchange exchange)
          Add an exchange to this request.
 Object getBean()
           
 Map<Method,Boolean> getCallbacks()
           
 Object getCorrelationId()
           
 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
 

Constructor Detail

Request

public Request(Object correlationId,
               Object bean,
               javax.jbi.messaging.MessageExchange exchange)
Method Detail

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(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 Set<javax.jbi.messaging.MessageExchange> getExchanges()
Get all the MessageExchanges that are involved in this request

Returns:
an unmodifiable list of MessageExchanges


Copyright © 2010 FuseSource. All Rights Reserved.