Package org.ow2.joram.mom.amqp
Class StubAgentOut
- java.lang.Object
-
- org.ow2.joram.mom.amqp.StubAgentOut
-
- All Implemented Interfaces:
DeliveryListener
public class StubAgentOut extends Object implements DeliveryListener
TheStubAgentOutclass handles output interactions with other Joram AMQP servers.
-
-
Constructor Summary
Constructors Constructor Description StubAgentOut(long timeOut)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidasyncSend(Object request, short serverId)static voidasyncSend(Object request, short serverId, long proxyId)booleandeliver(String consumerTag, int channelId, Queue queue, short serverId, long proxyId)static LonggetNextLock()static ObjectsyncSend(Object request, short serverId)static ObjectsyncSend(Object request, short serverId, long proxyId)
-
-
-
Field Detail
-
logger
private static final Logger logger
logger
-
timeOut
private static long timeOut
-
lockCount
private static long lockCount
-
-
Method Detail
-
getNextLock
public static Long getNextLock()
- Returns:
-
syncSend
public static Object syncSend(Object request, short serverId) throws AMQPException
- Parameters:
request-serverId-- Returns:
- Throws:
InterruptedExceptionAMQPException
-
syncSend
public static Object syncSend(Object request, short serverId, long proxyId) throws AMQPException
- Parameters:
request-serverId-proxyId-- Returns:
- Throws:
AMQPException
-
asyncSend
public static void asyncSend(Object request, short serverId)
- Parameters:
request-serverId-
-
asyncSend
public static void asyncSend(Object request, short serverId, long proxyId)
- Parameters:
request-serverId-proxyId-
-
deliver
public boolean deliver(String consumerTag, int channelId, Queue queue, short serverId, long proxyId)
- Specified by:
deliverin interfaceDeliveryListener
-
-