com.supermap.messagequeue

Class AMQPSender



  • public class AMQPSender
    extends InternalHandle
    AMQP sender

    Used 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
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AMQPSender

        public AMQPSender()
    • Method Detail

      • sendMessage

        public boolean sendMessage(java.lang.String exchange,
                                   java.lang.String strMsg,
                                   java.lang.String routingKey)
        Send information
        Parameters:
        exchange - Switch name
        strMsg - The message to send
        routingKey - The used routingKey when the queue and switch is binding.
        Returns:
        Returns true if sent successfully; otherwise false.