Class BindableMockExchange
- java.lang.Object
-
- com.github.fridujo.rabbitmq.mock.exchange.BindableMockExchange
-
- All Implemented Interfaces:
MockExchange,Receiver
- Direct Known Subclasses:
MultipleReceiverExchange,SingleReceiverExchange
public abstract class BindableMockExchange extends Object implements MockExchange
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBindableMockExchange.BindConfiguration
-
Field Summary
Fields Modifier and Type Field Description protected Set<BindableMockExchange.BindConfiguration>bindConfigurations-
Fields inherited from interface com.github.fridujo.rabbitmq.mock.Receiver
X_MATCH_KEY
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBindableMockExchange(String name, String type, AmqArguments arguments, ReceiverRegistry receiverRegistry)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidbind(ReceiverPointer receiver, String routingKey, Map<String,Object> arguments)StringgetType()protected abstract Stream<ReceiverPointer>matchingReceivers(String routingKey, com.rabbitmq.client.AMQP.BasicProperties props)ReceiverPointerpointer()booleanpublish(String previousExchangeName, String routingKey, com.rabbitmq.client.AMQP.BasicProperties props, byte[] body)StringtoString()voidunbind(ReceiverPointer receiver, String routingKey)
-
-
-
Field Detail
-
bindConfigurations
protected final Set<BindableMockExchange.BindConfiguration> bindConfigurations
-
-
Constructor Detail
-
BindableMockExchange
protected BindableMockExchange(String name, String type, AmqArguments arguments, ReceiverRegistry receiverRegistry)
-
-
Method Detail
-
getType
public String getType()
- Specified by:
getTypein interfaceMockExchange
-
publish
public boolean publish(String previousExchangeName, String routingKey, com.rabbitmq.client.AMQP.BasicProperties props, byte[] body)
-
matchingReceivers
protected abstract Stream<ReceiverPointer> matchingReceivers(String routingKey, com.rabbitmq.client.AMQP.BasicProperties props)
-
bind
public void bind(ReceiverPointer receiver, String routingKey, Map<String,Object> arguments)
- Specified by:
bindin interfaceMockExchange
-
unbind
public void unbind(ReceiverPointer receiver, String routingKey)
- Specified by:
unbindin interfaceMockExchange
-
pointer
public ReceiverPointer pointer()
-
-