public class AsyncBridge extends EIPEndpoint
Pipeline.
Pipeline| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CORRID |
lockManager, store, storeFactory, timerManager, wsdlExchangeTarget, wsdlResourcedefinition, description, endpoint, interfaceName, service, serviceUnit| Constructor and Description |
|---|
AsyncBridge() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.servicemix.expression.Expression |
getRequestCorrId() |
org.apache.servicemix.expression.Expression |
getResponseCorrId() |
java.lang.String |
getResponseCorrIdProperty() |
ExchangeTarget |
getTarget() |
long |
getTimeout() |
protected java.util.Date |
getTimeout(javax.jbi.messaging.MessageExchange exchange) |
boolean |
isUseRobustInOnly() |
protected void |
onTimeout(java.lang.String correlationId) |
void |
process(javax.jbi.messaging.MessageExchange exchange) |
protected void |
processAsync(javax.jbi.messaging.MessageExchange exchange) |
protected void |
processSync(javax.jbi.messaging.MessageExchange exchange) |
void |
setRequestCorrId(org.apache.servicemix.expression.Expression requestCorrId)
The expression used to compute the correlation id used to correlate the response and
the request.
|
void |
setResponseCorrId(org.apache.servicemix.expression.Expression responseCorrId)
The expression used to compute the correlation id from the response exchange.
|
void |
setResponseCorrIdProperty(java.lang.String responseCorrIdProperty)
Name of the property used by default to compute the correlation id on the response
exchange.
|
void |
setTarget(ExchangeTarget target)
The target which will be used to send an In-Only or Robust-In-Only exchange to.
|
void |
setTimeout(long timeout)
The timeout property controls the amount of time that the async bridge will wait for the response
after having sent the request.
|
void |
setUseRobustInOnly(boolean useRobustInOnly)
Boolean flag to control if In-Only or Robust-In-Only exchange should be used
when sending the request.
|
void |
start() |
chooseFirstEndpointWithDescriptor, copyAttachments, copyProperties, getDefinition, getDefinitionFromDescription, getDefinitionFromWsdlExchangeTarget, getDefinitionFromWsdlResource, getDescription, getDescriptionForExchangeTarget, getEndpointsForExchangeTarget, getLockManager, getStore, getStoreFactory, getTimerManager, getWsdlExchangeTarget, getWsdlResource, setLockManager, setStore, setStoreFactory, setTimerManager, setWsdlExchangeTarget, setWsdlResource, stopactivate, deactivate, getRole, processInOnly, processInOutdone, fail, getChannel, getContext, getExchangeFactory, send, sendSyncgetEndpoint, getInterfaceName, getKey, getService, getServiceUnit, isExchangeOkay, prepareExchange, setDefinition, setDescription, setEndpoint, setInterfaceName, setService, setServiceUnit, toString, validatepublic static final java.lang.String CORRID
public long getTimeout()
public void setTimeout(long timeout)
TimeoutException as the cause of the error.
The value represents the number of milliseconds to wait.timeout - the timeout to setpublic ExchangeTarget getTarget()
public void setTarget(ExchangeTarget target)
target - the target to setpublic org.apache.servicemix.expression.Expression getRequestCorrId()
public void setRequestCorrId(org.apache.servicemix.expression.Expression requestCorrId)
requestCorrId - the requestCorrId to setsetResponseCorrId(org.apache.servicemix.expression.Expression),
setResponseCorrIdProperty(String)public java.lang.String getResponseCorrIdProperty()
public void setResponseCorrIdProperty(java.lang.String responseCorrIdProperty)
responseCorrIdProperty - the responseCorrIdProperty to setsetRequestCorrId(org.apache.servicemix.expression.Expression),
setResponseCorrId(org.apache.servicemix.expression.Expression)public org.apache.servicemix.expression.Expression getResponseCorrId()
public void setResponseCorrId(org.apache.servicemix.expression.Expression responseCorrId)
setRequestCorrId(org.apache.servicemix.expression.Expression)
expression. The default value is null, but if no specific expression is configured,
an expression will be created which will extract the response correlation id from the
setResponseCorrIdProperty(String) property on the exchange.responseCorrId - the responseCorrId to setsetResponseCorrIdProperty(String),
setRequestCorrId(org.apache.servicemix.expression.Expression)public boolean isUseRobustInOnly()
public void setUseRobustInOnly(boolean useRobustInOnly)
false which means
that an In-Only exchange will be used. When using a Robust-In-Only exchange and
when a fault is received, this fault will be sent back to the consumer on the In-Out
exchange and the response exchange (if any) would be discarded.
For both In-Only and Robust-In-Only, if the request exchange comes back with an Error
status, this error will be conveyed back to the consumer in the same way.useRobustInOnly - the useRobustInOnly to setpublic void start()
throws java.lang.Exception
start in interface Endpointstart in class EIPEndpointjava.lang.Exceptionprotected void processSync(javax.jbi.messaging.MessageExchange exchange)
throws java.lang.Exception
processSync in class EIPEndpointjava.lang.Exceptionprotected void processAsync(javax.jbi.messaging.MessageExchange exchange)
throws java.lang.Exception
processAsync in class EIPEndpointjava.lang.Exceptionpublic void process(javax.jbi.messaging.MessageExchange exchange)
throws java.lang.Exception
process in interface Endpointprocess in class EIPEndpointjava.lang.Exceptionprotected void onTimeout(java.lang.String correlationId)
protected java.util.Date getTimeout(javax.jbi.messaging.MessageExchange exchange)
Copyright © 2005-2015 FuseSource. All Rights Reserved.