Class GrouperMessagingRabbitmqSystem
java.lang.Object
edu.internet2.middleware.grouperMessagingRabbitmq.GrouperMessagingRabbitmqSystem
- All Implemented Interfaces:
GrouperMessagingSystem
docs on client:
https://www.rabbitmq.com/tutorials/tutorial-one-java.html
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGrouperMessagingRabbitmqSystem(RabbitMQConnectionFactory connectionFactory) -
Method Summary
Modifier and TypeMethodDescriptionacknowledge(GrouperMessageAcknowledgeParam grouperMessageAcknowledgeParam) tell the messaging system that these messages are processed generally the message system will use the message id.voidcloseConnection(String messagingSystemName) receive(GrouperMessageReceiveParam grouperMessageReceiveParam) this will generally block until there are messages to process.send(GrouperMessageSendParam grouperMessageSendParam) send a message to a queue name.
-
Constructor Details
-
GrouperMessagingRabbitmqSystem
public GrouperMessagingRabbitmqSystem() -
GrouperMessagingRabbitmqSystem
-
-
Method Details
-
send
Description copied from interface:GrouperMessagingSystemsend a message to a queue name. Note, the recipient could be a queue or a topic (generally always one or the other) based on the implementation of the messaging system. Messages must be delievered in the order that collection iterator designates. If there is a problem delivering the messages, the implementation should log, wait (back off) and retry until it is successful.- Specified by:
sendin interfaceGrouperMessagingSystem- Parameters:
grouperMessageSendParam- has the queue or topic, and the message(s) and perhaps args- Returns:
- result
- See Also:
-
acknowledge
public GrouperMessageAcknowledgeResult acknowledge(GrouperMessageAcknowledgeParam grouperMessageAcknowledgeParam) Description copied from interface:GrouperMessagingSystemtell the messaging system that these messages are processed generally the message system will use the message id. Note, the objects sent to this method must be the same that were received in the receiveMessages method. If there is a problem delivering the messages, the implementation should wait (back off) and retry until it is successful. Alternatively the message should be returned to queue, returned to end of queue, or sent to another queue- Specified by:
acknowledgein interfaceGrouperMessagingSystem- Returns:
- result
- See Also:
-
receive
Description copied from interface:GrouperMessagingSystemthis will generally block until there are messages to process. These messages are ordered in the order that they were sent.- Specified by:
receivein interfaceGrouperMessagingSystem- Parameters:
grouperMessageReceiveParam- grouper messaging receive param- Returns:
- a message or multiple messages. It will block until there are messages available for this recipient to process
- See Also:
-
closeConnection
-