Class AMQPFederationEventSupport
java.lang.Object
org.apache.activemq.artemis.protocol.amqp.connect.federation.AMQPFederationEventSupport
Tools used for sending and receiving events inside AMQP message instance.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondecodeAddressAddedEvent(AMQPMessage message) Decode and return the Map containing the event data for an Address that was the target of a previous federation request which was not present on the remote server or was later removed has now been (re)added.decodeQueueAddedEvent(AMQPMessage message) Decode and return the Map containing the event data for a Queue that was the target of a previous federation request which was not present on the remote server or was later removed has now been (re)added.static AMQPMessageencodeAddressAddedEvent(String address) Encode an event that indicates that an Address that belongs to a federation request which was not present at the time of the request or was later removed is now present and the remote should check for demand and attempt to federate the resource once again.static AMQPMessageencodeQueueAddedEvent(String address, String queue) Encode an event that indicates that a Queue that belongs to a federation request which was not present at the time of the request or was later removed is now present and the remote should check for demand and attempt to federate the resource once again.
-
Constructor Details
-
AMQPFederationEventSupport
public AMQPFederationEventSupport()
-
-
Method Details
-
encodeQueueAddedEvent
Encode an event that indicates that a Queue that belongs to a federation request which was not present at the time of the request or was later removed is now present and the remote should check for demand and attempt to federate the resource once again.- Parameters:
address- The address that the queue is currently bound to.queue- The queue that was part of a previous federation request.- Returns:
- the AMQP message with the encoded event data
-
encodeAddressAddedEvent
Encode an event that indicates that an Address that belongs to a federation request which was not present at the time of the request or was later removed is now present and the remote should check for demand and attempt to federate the resource once again.- Parameters:
address- The address portion of the previously failed federation request- Returns:
- the AMQP message with the encoded event data
-
decodeQueueAddedEvent
public static Map<String,Object> decodeQueueAddedEvent(AMQPMessage message) throws ActiveMQException Decode and return the Map containing the event data for a Queue that was the target of a previous federation request which was not present on the remote server or was later removed has now been (re)added.- Parameters:
message- The event message that carries the event data in its body.- Returns:
- a
Mapcontaining the payload of the incoming event - Throws:
ActiveMQException- if an error occurs while decoding the event data.
-
decodeAddressAddedEvent
public static Map<String,Object> decodeAddressAddedEvent(AMQPMessage message) throws ActiveMQException Decode and return the Map containing the event data for an Address that was the target of a previous federation request which was not present on the remote server or was later removed has now been (re)added.- Parameters:
message- The event message that carries the event data in its body.- Returns:
- a
Mapcontaining the payload of the incoming event - Throws:
ActiveMQException- if an error occurs while decoding the event data.
-