com.supermap.messagequeue
Class AMQPSender
- java.lang.Object
-
- com.supermap.messagequeue.InternalHandle
-
- com.supermap.messagequeue.AMQPSender
-
public class AMQPSender extends InternalHandle
AMQP senderUsed to send the AMQP message
-
-
Constructor Summary
Constructors Constructor and Description AMQPSender()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description boolean
sendMessage(java.lang.String exchange, java.lang.String strMsg, java.lang.String routingKey)
Send information
-
-
-
Method Detail
-
sendMessage
public boolean sendMessage(java.lang.String exchange, java.lang.String strMsg, java.lang.String routingKey)
Send information- Parameters:
exchange
- Switch namestrMsg
- The message to sendroutingKey
- The used routingKey when the queue and switch is binding.- Returns:
- Returns true if sent successfully; otherwise false.
-
-