Package org.ow2.joram.mom.amqp
Class StubLocal
- java.lang.Object
-
- org.ow2.joram.mom.amqp.StubLocal
-
-
Field Summary
Fields Modifier and Type Field Description private static PatternexchangeNamePatternThe exchange name consists of a non-empty sequence of these characters: letters, digits, hyphen, underscore, period, or colon.
-
Constructor Summary
Constructors Constructor Description StubLocal()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidbasicConsume(DeliveryListener deliveryListener, String queueName, String consumerTag, boolean exclusive, boolean noAck, boolean noLocal, int channelNumber, short serverId, long proxyId)static MessagebasicGet(String queueName, boolean noAck, short serverId, long proxyId)static voidbasicPublish(PublishRequest publishRequest, short serverId, long proxyId)private static voidcheckName(String name)static voidexchangeDeclare(String exchangeName, String type, boolean durable, boolean passive)static voidexchangeDelete(String exchangeName, boolean ifUnused)static voidqueueBind(String queueName, String exchangeName, String routingKey, Map<String,Object> arguments, short serverId, long proxyId)static AMQP.Queue.DeclareOkqueueDeclare(String queueName, boolean passive, boolean durable, boolean autoDelete, boolean exclusive, short serverId, long proxyId)static intqueueDelete(String queueName, boolean ifUnused, boolean ifEmpty, short serverId, long proxyId)static intqueuePurge(String queueName, short serverId, long proxyId)static voidqueueUnbind(String exchangeName, String queueName, String routingKey, Map<String,Object> arguments, short serverId, long proxyId)
-
-
-
Field Detail
-
exchangeNamePattern
private static final Pattern exchangeNamePattern
The exchange name consists of a non-empty sequence of these characters: letters, digits, hyphen, underscore, period, or colon.
-
-
Method Detail
-
queueDeclare
public static AMQP.Queue.DeclareOk queueDeclare(String queueName, boolean passive, boolean durable, boolean autoDelete, boolean exclusive, short serverId, long proxyId) throws NotFoundException, ResourceLockedException, PreconditionFailedException, AccessRefusedException, TransactionException
-
queueDelete
public static int queueDelete(String queueName, boolean ifUnused, boolean ifEmpty, short serverId, long proxyId) throws PreconditionFailedException, NotFoundException, ResourceLockedException, TransactionException
-
queueBind
public static void queueBind(String queueName, String exchangeName, String routingKey, Map<String,Object> arguments, short serverId, long proxyId) throws NotFoundException, ResourceLockedException, TransactionException
-
queueUnbind
public static void queueUnbind(String exchangeName, String queueName, String routingKey, Map<String,Object> arguments, short serverId, long proxyId) throws NotFoundException, ResourceLockedException
-
queuePurge
public static int queuePurge(String queueName, short serverId, long proxyId) throws SyntaxErrorException, NotFoundException, ResourceLockedException, TransactionException
-
checkName
private static void checkName(String name) throws AccessRefusedException, PreconditionFailedException
-
exchangeDeclare
public static void exchangeDeclare(String exchangeName, String type, boolean durable, boolean passive) throws NotFoundException, CommandInvalidException, NotAllowedException, PreconditionFailedException, AccessRefusedException
-
exchangeDelete
public static void exchangeDelete(String exchangeName, boolean ifUnused) throws NotFoundException, PreconditionFailedException, AccessRefusedException
-
basicGet
public static Message basicGet(String queueName, boolean noAck, short serverId, long proxyId) throws NotFoundException, ResourceLockedException, TransactionException
-
basicConsume
public static void basicConsume(DeliveryListener deliveryListener, String queueName, String consumerTag, boolean exclusive, boolean noAck, boolean noLocal, int channelNumber, short serverId, long proxyId) throws NotFoundException, ResourceLockedException, AccessRefusedException
-
basicPublish
public static void basicPublish(PublishRequest publishRequest, short serverId, long proxyId) throws NotFoundException, NoConsumersException, TransactionException
-
-