Package org.apache.activemq.advisory
Class ProducerEvent
java.lang.Object
java.util.EventObject
org.apache.activemq.advisory.ProducerEvent
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ProducerStartedEvent
,ProducerStoppedEvent
An event when the number of producers on a given destination changes.
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionProducerEvent
(ProducerEventSource source, jakarta.jms.Destination destination, ProducerId producerId, int producerCount) -
Method Summary
Modifier and TypeMethodDescriptionjakarta.jms.Destination
int
Returns the current number of producers active at the time this advisory was sent.abstract boolean
Methods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
ProducerEvent
public ProducerEvent(ProducerEventSource source, jakarta.jms.Destination destination, ProducerId producerId, int producerCount)
-
-
Method Details
-
getAdvisor
-
getDestination
public jakarta.jms.Destination getDestination() -
getProducerCount
public int getProducerCount()Returns the current number of producers active at the time this advisory was sent. -
getProducerId
-
isStarted
public abstract boolean isStarted()
-