Class ConsumerEvent

  • All Implemented Interfaces:
    java.io.Serializable

    public class ConsumerEvent
    extends Event
    MQ Consumer Event.
    Since:
    4.5
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String CONSUMER_NOT_READY
      No consumer event code
      static java.lang.String CONSUMER_READY
      Consumer ready event code
      • Fields inherited from class java.util.EventObject

        source
    • Constructor Summary

      Constructors 
      Constructor Description
      ConsumerEvent​(Destination dest, Connection conn, java.lang.String evCode, java.lang.String evMessage)
      Construct a MQ consumer event.
    • Field Detail

      • CONSUMER_READY

        public static final java.lang.String CONSUMER_READY
        Consumer ready event code
        See Also:
        Constant Field Values
      • CONSUMER_NOT_READY

        public static final java.lang.String CONSUMER_NOT_READY
        No consumer event code
        See Also:
        Constant Field Values
    • Method Detail

      • getConnection

        public Connection getConnection()
        Get the connection on which the event was received.
        Returns:
        the connection on which the event was received.
      • getBrokerAddress

        public java.lang.String getBrokerAddress()
        Get the broker's address that sent the event.
        Returns:
        the broker's address that sent the event
      • getDestination

        public Destination getDestination()
        Get the registered destination on which the event was occurred.
        Returns:
        the registered destination on which the event was occurred.