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
public abstract class ProducerEvent extends EventObject
An event when the number of producers on a given destination changes.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor Description ProducerEvent(ProducerEventSource source, Destination destination, ProducerId producerId, int producerCount)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description ProducerEventSource
getAdvisor()
Destination
getDestination()
int
getProducerCount()
Returns the current number of producers active at the time this advisory was sent.ProducerId
getProducerId()
abstract boolean
isStarted()
-
Methods inherited from class java.util.EventObject
getSource, toString
-
-
-
-
Constructor Detail
-
ProducerEvent
public ProducerEvent(ProducerEventSource source, Destination destination, ProducerId producerId, int producerCount)
-
-
Method Detail
-
getAdvisor
public ProducerEventSource getAdvisor()
-
getDestination
public Destination getDestination()
-
getProducerCount
public int getProducerCount()
Returns the current number of producers active at the time this advisory was sent.
-
getProducerId
public ProducerId getProducerId()
-
isStarted
public abstract boolean isStarted()
-
-