org.apache.activemq.advisory.ProducerEventSource.class Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of activemq-core Show documentation
Show all versions of activemq-core Show documentation
The ActiveMQ Message Broker and Client implementations
???? 1 ?
9 w x
y 7 z {
w 7 | 7 }
~ 7 ? 7 ?
? ? ? 7 ?
? ? ? ? 7 ? ? ? ? ? ?
? ?
?
7 ? ?
?
7 ? ?
?
? ?
? ?
? 7 ? ?
$ w ?
$ ?
$ ?
$ ? ? ? ? ? F ? ? ?
/ ? ? ? ? ? ? ? ? ? ?
? ? ? ? ? LOG Lorg/apache/commons/logging/Log;
connection Ljavax/jms/Connection; destination 1Lorg/apache/activemq/command/ActiveMQDestination; listener /Lorg/apache/activemq/advisory/ProducerListener; started +Ljava/util/concurrent/atomic/AtomicBoolean;
producerCount +Ljava/util/concurrent/atomic/AtomicInteger; session Ljavax/jms/Session; consumer Ljavax/jms/MessageConsumer; 0(Ljavax/jms/Connection;Ljavax/jms/Destination;)V Code LineNumberTable LocalVariableTable this 2Lorg/apache/activemq/advisory/ProducerEventSource; Ljavax/jms/Destination;
Exceptions ? setProducerListener 2(Lorg/apache/activemq/advisory/ProducerListener;)V start ()V
advisoryTopic +Lorg/apache/activemq/command/ActiveMQTopic; stop onMessage (Ljavax/jms/Message;)V
removeInfo (Lorg/apache/activemq/command/RemoveInfo;
activeMessage -Lorg/apache/activemq/command/ActiveMQMessage; command Ljava/lang/Object; count I message Ljavax/jms/Message; extractProducerCountFromMessage (Ljavax/jms/Message;I)I n Ljava/lang/Number; value e Ljava/lang/Exception; fireProducerEvent /(Lorg/apache/activemq/advisory/ProducerEvent;)V event ,Lorg/apache/activemq/advisory/ProducerEvent;
SourceFile ProducerEventSource.java L Y )java/util/concurrent/atomic/AtomicBoolean L ? D E )java/util/concurrent/atomic/AtomicInteger F G > ? ? ? ? @ A B C ? ? ? ? ? H I ? ? ? ? ? ? J K ? ? ? ? Y +org/apache/activemq/command/ActiveMQMessage ? ? (org/apache/activemq/command/ProducerInfo ? ? i j 1org/apache/activemq/advisory/ProducerStartedEvent L ? p q &org/apache/activemq/command/RemoveInfo ? ? ? ? 1org/apache/activemq/advisory/ProducerStoppedEvent ? ? &org/apache/activemq/command/ProducerId L ? <