Class ConsumerEvent
java.lang.Object
java.util.EventObject
com.sun.messaging.jms.notification.Event
com.sun.messaging.jms.notification.ConsumerEvent
- All Implemented Interfaces:
- Serializable
MQ Consumer Event.
- Since:
- 4.5
- See Also:
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final StringNo consumer event codestatic final StringConsumer ready event codeFields inherited from class java.util.EventObjectsource
- 
Constructor SummaryConstructorsConstructorDescriptionConsumerEvent(Destination dest, Connection conn, String evCode, String evMessage) Construct a MQ consumer event.
- 
Method SummaryModifier and TypeMethodDescriptionGet the broker's address that sent the event.Get the connection on which the event was received.Get the registered destination on which the event was occurred.Methods inherited from class com.sun.messaging.jms.notification.EventgetEventCode, getEventMessage, toStringMethods inherited from class java.util.EventObjectgetSource
- 
Field Details- 
CONSUMER_READYConsumer ready event code- See Also:
 
- 
CONSUMER_NOT_READYNo consumer event code- See Also:
 
 
- 
- 
Constructor Details- 
ConsumerEventConstruct a MQ consumer event.destis theDestinationobject that was passed inConnection.setConsumerEventListener(com.sun.messaging.Destination, com.sun.messaging.jms.notification.EventListener)and is what will be returned bygetDestination()connis theConnectionon which this event was received and is what will be returned bygetConnection()evCodeis what will be returned byEvent.getEventCode()which can be eitherCONSUMER_READYorCONSUMER_NOT_READYevMessageis a description of theevCodeand is what will be returned byEvent.getEventMessage()- Parameters:
- dest- the destination on which the event occurred.
- conn- the connection on which the event was received
- evCode- the event code that represents this event object.
- evMessage- the event message that describes this event object.
 
 
- 
- 
Method Details- 
getConnectionGet the connection on which the event was received.- Returns:
- the connection on which the event was received.
 
- 
getBrokerAddressGet the broker's address that sent the event.- Returns:
- the broker's address that sent the event
 
- 
getDestinationGet the registered destination on which the event was occurred.- Returns:
- the registered destination on which the event was occurred.
 
 
-