|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.synapse.transport.passthru.DeliveryAgent
public class DeliveryAgent
This class acts as a gateway for differed delivery of the messages. When a message is to be delivered it is submitted to this class. If a connection is available to the target this class will try to deliver the message immediately over that connection. If a connection is not available it will queue the message and request a connection from the pool. When a new connection is available a queued message will be sent through it.
| Constructor Summary | |
|---|---|
DeliveryAgent(TargetConfiguration targetConfiguration,
TargetConnections targetConnections,
ProxyConfig proxyConfig)
Create a delivery agent with the target configuration and connection management. |
|
| Method Summary | |
|---|---|
void |
connected(org.apache.http.conn.routing.HttpRoute route,
org.apache.http.nio.NHttpClientConnection conn)
Notification for a connection availability. |
void |
errorConnecting(org.apache.http.conn.routing.HttpRoute route,
int errorCode,
String message)
|
void |
submit(org.apache.axis2.context.MessageContext msgContext,
org.apache.axis2.addressing.EndpointReference epr)
This method queues the message for delivery. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DeliveryAgent(TargetConfiguration targetConfiguration,
TargetConnections targetConnections,
ProxyConfig proxyConfig)
targetConfiguration - configuration of the sendertargetConnections - connection management| Method Detail |
|---|
public void submit(org.apache.axis2.context.MessageContext msgContext,
org.apache.axis2.addressing.EndpointReference epr)
throws org.apache.axis2.AxisFault
msgContext - the message context to be sentepr - the endpoint to which the message should be sent
org.apache.axis2.AxisFault - if an error occurs
public void errorConnecting(org.apache.http.conn.routing.HttpRoute route,
int errorCode,
String message)
public void connected(org.apache.http.conn.routing.HttpRoute route,
org.apache.http.nio.NHttpClientConnection conn)
host - name of the remote hostport - remote port number
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||