org.apache.activemq.advisory
Class ProducerEvent

java.lang.Object
  extended by java.util.EventObject
      extended by 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
ProducerEvent(ProducerEventSource source, Destination destination, ProducerId producerId, int producerCount)
           
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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()


Copyright © 2005-2013 The Apache Software Foundation. All Rights Reserved.