org.apache.activemq.ActiveMQMessageConsumer.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
???? 2 |? |?
|? |?
|?
|? |? |? |?
~??
??
? |??
?
?
?? |? |? |? |???
?
???
????
??
?
?
?
? ??
??
??
??
???
?????
.?
???
2? |??
5? |?
?? |?
??
|??
<? |?
??
<?
<?
<?
<?
<?
<?
<?
??
<?
<?
???
K??
??
?????
?????????
Y?
<?
<?
??
??
?? |?
<??
??
b? |?
??
??
< |
?
<
?
?
?
|
?
?
?
?
|
?
|
? |
<
<
<
<
<
?
|
?
?
?
? | !
"# |$
%&
?'
()?*
|+?,
|-
|.?/0?12
34
35
|6
|7????????
|
|8
(9:
?;<=
?>
??
?@AB
CD
?EF
?H
?I
?JK
?L
|M
?N
OPQ
?H
OR
|S
3T
|U
<VWX |Y
Z
[\
?] |^ |_`a?bcdefgfhi
?j
?k
l
|m
|n
o |p |q
?r |s
tuv
?wxy
z
?{
||
|}
|~x < ??x??
??do
?????
????
??
??
??
?6
??
??
(?
M?
?
|?
|?
|??
??
O?
??
?
b?
??
b?
?????????
??
??
?
?
?
?? |?
??
??
??
??????? |?
???
H
"? |?
n??e? ??
"??? n???? ?
3??? ?????
4?
|? |?
?
|?
(?
??
??
e
(?
??
??
??
??
?
???
E?
??
e??
KH?
|?
M?f?
no
|?
??
?) ??????
??
|?????
?????
"?
n????? |?
3??
????
n?? ??
????
?
|
??
PreviouslyDeliveredMap InnerClasses LOG Lorg/slf4j/Logger; session %Lorg/apache/activemq/ActiveMQSession; info *Lorg/apache/activemq/command/ConsumerInfo; unconsumedMessages ,Lorg/apache/activemq/MessageDispatchChannel; deliveredMessages Ljava/util/LinkedList; Signature ELjava/util/LinkedList; previouslyDeliveredMessages DLorg/apache/activemq/ActiveMQMessageConsumer$PreviouslyDeliveredMap; ?Lorg/apache/activemq/ActiveMQMessageConsumer$PreviouslyDeliveredMap; deliveredCounter I additionalWindowSize redeliveryDelay J
ackCounter dispatchedCount messageListener -Ljava/util/concurrent/atomic/AtomicReference; JLjava/util/concurrent/atomic/AtomicReference; stats 5Lorg/apache/activemq/management/JMSConsumerStatsImpl; selector Ljava/lang/String; synchronizationRegistered Z started +Ljava/util/concurrent/atomic/AtomicBoolean; availableListener .Lorg/apache/activemq/MessageAvailableListener; redeliveryPolicy &Lorg/apache/activemq/RedeliveryPolicy; optimizeAcknowledge deliveryingAcknowledgements executorService &Ljava/util/concurrent/ExecutorService; transformer (Lorg/apache/activemq/MessageTransformer; clearDispatchList inProgressClearRequiredFlag
pendingAck (Lorg/apache/activemq/command/MessageAck; lastDeliveredSequenceId failureError Ljava/io/IOException; optimizeAckTimestamp optimizeAcknowledgeTimeOut failoverRedeliveryWaitPeriod transactedIndividualAck nonBlockingRedelivery ?(Lorg/apache/activemq/ActiveMQSession;Lorg/apache/activemq/command/ConsumerId;Lorg/apache/activemq/command/ActiveMQDestination;Ljava/lang/String;Ljava/lang/String;IIZZZLjavax/jms/MessageListener;)V Code LineNumberTable LocalVariableTable physicalName connectionID msg options Ljava/util/Map; e Ljavax/jms/JMSException; this -Lorg/apache/activemq/ActiveMQMessageConsumer;
consumerId (Lorg/apache/activemq/command/ConsumerId; dest 1Lorg/apache/activemq/command/ActiveMQDestination; name prefetch maximumPendingMessageCount noLocal browser
dispatchAsync Ljavax/jms/MessageListener; LocalVariableTypeTable 5Ljava/util/Map;
StackMapTable
?
Exceptions isAutoAcknowledgeEach ()Z isAutoAcknowledgeBatch getStats ,()Lorg/apache/activemq/management/StatsImpl; getConsumerStats 7()Lorg/apache/activemq/management/JMSConsumerStatsImpl; getRedeliveryPolicy (()Lorg/apache/activemq/RedeliveryPolicy; setRedeliveryPolicy )(Lorg/apache/activemq/RedeliveryPolicy;)V getTransformer *()Lorg/apache/activemq/MessageTransformer; setTransformer +(Lorg/apache/activemq/MessageTransformer;)V
getConsumerId *()Lorg/apache/activemq/command/ConsumerId; getConsumerName ()Ljava/lang/String; isNoLocal isBrowser getDestination 3()Lorg/apache/activemq/command/ActiveMQDestination; getPrefetchNumber ()I isDurableSubscriber getMessageSelector getMessageListener ()Ljavax/jms/MessageListener; setMessageListener (Ljavax/jms/MessageListener;)V
wasRunning listener getAvailableListener 0()Lorg/apache/activemq/MessageAvailableListener; setAvailableListener 1(Lorg/apache/activemq/MessageAvailableListener;)V dequeue 0(J)Lorg/apache/activemq/command/MessageDispatch; md -Lorg/apache/activemq/command/MessageDispatch; deadline Ljava/lang/InterruptedException; timeouti2 receive ()Ljavax/jms/Message; createActiveMQMessage \(Lorg/apache/activemq/command/MessageDispatch;)Lorg/apache/activemq/command/ActiveMQMessage; transformedMessage Ljavax/jms/Message; m -Lorg/apache/activemq/command/ActiveMQMessage;: (J)Ljavax/jms/Message;
receiveNoWait close ()V doClose interrupted
removeCommand (Lorg/apache/activemq/command/RemoveInfo; inProgressClearRequired clearMessagesInProgress old i$ Ljava/util/Iterator; list Ljava/util/List; ?Ljava/util/List; deliverAcks ackToSend ack? dispose tmp checkClosed sendPullCommand (J)V messagePull )Lorg/apache/activemq/command/MessagePull; checkMessageListener setOptimizeAcknowledge (Z)V value setPrefetchSize (I)V beforeMessageIsConsumed 0(Lorg/apache/activemq/command/MessageDispatch;)V immediateIndividualTransactedAck afterMessageIsConsumed 1(Lorg/apache/activemq/command/MessageDispatch;Z)V messageUnackedByConsumer messageExpired makeAckForAllDeliveredMessages +(B)Lorg/apache/activemq/command/MessageAck; type B ackLater 1(Lorg/apache/activemq/command/MessageDispatch;B)V ackType
oldPendingAck registerSync acknowledge waitForRedeliveries entry Entry Ljava/util/Map$Entry; outOfhere expiry numberNotReplayed QLjava/util/Map$Entry; "rollbackOnFailedRecoveryRedelivery message commit rollback i iter pendingRedeliveries lastMd currentRedeliveryCount
firstMsgId 'Lorg/apache/activemq/command/MessageId; CLjava/util/Iterator;? ,rollbackPreviouslyDeliveredAndNotRedelivered removeFromDeliveredMessages *(Lorg/apache/activemq/command/MessageId;)V candidate key iterator clearPreviouslyDelivered dispatch expired Ljava/lang/RuntimeException; poisonAck needsPoisonAck Ljava/lang/Exception;??? delivered getMessageSize start stop toString iterate isInUse 8(Lorg/apache/activemq/command/ActiveMQTempDestination;)Z destination 5Lorg/apache/activemq/command/ActiveMQTempDestination; getLastDeliveredSequenceId ()J getFailureError ()Ljava/io/IOException; setFailureError (Ljava/io/IOException;)V
access$000 ()Lorg/slf4j/Logger;
access$100 Z(Lorg/apache/activemq/ActiveMQMessageConsumer;)Ljava/util/concurrent/atomic/AtomicBoolean; x0
access$200 0(Lorg/apache/activemq/ActiveMQMessageConsumer;)Z
access$300 0(Lorg/apache/activemq/ActiveMQMessageConsumer;)V
access$400
access$500 E(Lorg/apache/activemq/ActiveMQMessageConsumer;)Ljava/util/LinkedList;
access$600
access$702 1(Lorg/apache/activemq/ActiveMQMessageConsumer;Z)Z x1
access$800
SourceFile ActiveMQMessageConsumer.java????V??N???????? java/util/LinkedList +java/util/concurrent/atomic/AtomicReference?? )java/util/concurrent/atomic/AtomicBoolean?9~???????? %javax/jms/InvalidDestinationException "Don't understand null destinations?
? 5The destination object was not given a physical name.? "java/lang/IllegalArgumentException java/lang/StringBuilder .Physical name of Destination should be valid: w? !"#$?%& :Cannot use a Temporary destination from another Connection'( 8Cannot use a Temporary destination that has been deleted javax/jms/JMSException *Cannot have a prefetch size less than zero)? 8org/apache/activemq/SimplePriorityMessageDispatchChannel?? .org/apache/activemq/FifoMessageDispatchChannel?????????? (org/apache/activemq/command/ConsumerInfo?*??+?,9-;<.</<09192?39456 java/util/HashMap?7 consumer.89:;<=>?
There are ? 7 consumer options that couldn't be set on the consumer. ) Check the options are spelled correctly. Unknown parameters=[ ]. ! This consumer cannot be started.@A *org/apache/activemq/ConfigurationExceptionBCD9E?F?GHI??J? 3org/apache/activemq/management/JMSConsumerStatsImplKL?M??N?O?????P~Q9R~S?T???U?VWX?Y?uZ???[?????\???]?^?2_` javax/jms/MessageListener xIllegal prefetch size of zero. This setting is not supported for asynchronous consumers please set a value of at least 1a?vbcde??fg?hij??klmnopq?r? received expired message: s=>@At? received message: u java/lang/InterruptedExceptionvwxy734zo +org/apache/activemq/command/ActiveMQMessage{| /org/apache/activemq/command/ActiveMQBlobMessage 'org/apache/activemq/blob/BlobDownloader}~??????????? -org/apache/activemq/ActiveMQMessageConsumer$1 ?????? -org/apache/activemq/ActiveMQMessageConsumer$2??????? -org/apache/activemq/ActiveMQMessageConsumer$3???0?? remove: , lastDeliveredSequenceId:????4???????` clearing unconsumed list ( ) on transport interrupt??h????` +org/apache/activemq/command/MessageDispatch???????DE???????????? -org/apache/activemq/ActiveMQMessageConsumer$4?????b9??,??M?????? java/util/ArrayList???? javax/jms/IllegalStateException The Consumer is closed?? 'org/apache/activemq/command/MessagePull???4?~?4???~?c?>HIL &org/apache/activemq/command/MessageAck????????????????? Invalid session state.?`?`?e?????|???? Sending old pending ack , new pending: dropping old pending ack ??? -org/apache/activemq/ActiveMQMessageConsumer$5i?????? java/util/Map$Entry$` java/lang/Boolean?? waiting for redelivery of in transaction: ?? , to consumer :??4 Cpreviously delivered message has not been replayed in transaction: , messageId: ?` rolling back transaction ( ) post failover recovery. ; previously delivered message(s) not replayed to consumer: (javax/jms/TransactionRolledBackExceptioni???`c??????~??????????? -org/apache/activemq/ActiveMQMessageConsumer$6??????> -org/apache/activemq/ActiveMQMessageConsumer$7 %org/apache/activemq/command/MessageIdde???!???? java/lang/RuntimeException % Exception while processing message: ????Y?>??? "Duplicate dispatch on connection: ? to consumer: $, ignoring (auto acking) duplicate: . tracking transacted redelivery of duplicate: VDuplicate dispatch with transacted redeliver pending on another consumer, connection: ?acking duplicate delivery as poison, redelivery must be pending to another consumer on this connection, failoverRedeliveryWaitPeriod= . Message:
, poisonAck: ?? java/lang/Exception? . tracking existing transacted delivered list ( Borg/apache/activemq/ActiveMQMessageConsumer$PreviouslyDeliveredMap? clearing delivered list (
ActiveMQMessageConsumer { value=
, started=_? }
j> +org/apache/activemq/ActiveMQMessageConsumer java/lang/Object ,org/apache/activemq/MessageAvailableConsumer +org/apache/activemq/management/StatsCapable &org/apache/activemq/ActiveMQDispatcher #org/apache/activemq/ActiveMQSession &org/apache/activemq/command/ConsumerId /org/apache/activemq/command/ActiveMQDestination java/lang/String &org/apache/activemq/command/RemoveInfo java/util/List java/util/Iterator java/lang/Throwable java/lang/System currentTimeMillis (Ljava/lang/String;)V getPhysicalName isTemporary append -(Ljava/lang/String;)Ljava/lang/StringBuilder; -(Ljava/lang/Object;)Ljava/lang/StringBuilder;
connection (Lorg/apache/activemq/ActiveMQConnection; &org/apache/activemq/ActiveMQConnection getConnectionInfo .()Lorg/apache/activemq/command/ConnectionInfo; *org/apache/activemq/command/ConnectionInfo getConnectionId ,()Lorg/apache/activemq/command/ConnectionId; (org/apache/activemq/command/ConnectionId getValue indexOf (Ljava/lang/String;)I isDeleted 4(Lorg/apache/activemq/command/ActiveMQDestination;)Z isMessagePrioritySupported +(Lorg/apache/activemq/command/ConsumerId;)V isExclusiveConsumer setExclusive setSubscriptionName setCurrentPrefetchSize setMaximumPendingMessageLimit
setNoLocal setDispatchAsync isUseRetroactiveConsumer setRetroactive setSelector
getOptions ()Ljava/util/Map; (Ljava/util/Map;)V -org/apache/activemq/util/IntrospectionSupport extractProperties 2(Ljava/util/Map;Ljava/lang/String;)Ljava/util/Map;
setProperties $(Ljava/lang/Object;Ljava/util/Map;)Z
java/util/Map size (I)Ljava/lang/StringBuilder; org/slf4j/Logger warn setDestination 4(Lorg/apache/activemq/command/ActiveMQDestination;)V
setBrowser trim length +org/apache/activemq/selector/SelectorParser parse B(Ljava/lang/String;)Lorg/apache/activemq/filter/BooleanExpression; getSelector getSessionStats 6()Lorg/apache/activemq/management/JMSSessionStatsImpl; N(Lorg/apache/activemq/management/JMSSessionStatsImpl;Ljavax/jms/Destination;)V isOptimizeAcknowledge isAutoAcknowledge getOptimizeAcknowledgeTimeOut setOptimizedAcknowledge 'getConsumerFailoverRedeliveryWaitPeriod isNonBlockingRedelivery isTransactedIndividualAck addConsumer syncSendPacket M(Lorg/apache/activemq/command/Command;)Lorg/apache/activemq/command/Response; removeConsumer isStarted isDupsOkAcknowledge isQueue getSubscriptionName getPrefetchSize isTopic get ()Ljava/lang/Object; isRunning set (Ljava/lang/Object;)V
redispatch W(Lorg/apache/activemq/ActiveMQDispatcher;Lorg/apache/activemq/MessageDispatchChannel;)V *org/apache/activemq/MessageDispatchChannel isClosed java/lang/Math max (JJ)J ,org/apache/activemq/util/JMSExceptionSupport create /(Ljava/lang/Exception;)Ljavax/jms/JMSException;
getMessage '()Lorg/apache/activemq/command/Message; #org/apache/activemq/command/Message isExpired isDebugEnabled debug isTraceEnabled trace java/lang/Thread
currentThread ()Ljava/lang/Thread; interrupt copy getDataStructureType ()B getBlobTransferPolicy /()Lorg/apache/activemq/blob/BlobTransferPolicy; 0(Lorg/apache/activemq/blob/BlobTransferPolicy;)V setBlobDownloader ,(Lorg/apache/activemq/blob/BlobDownloader;)V &org/apache/activemq/MessageTransformer consumerTransform V(Ljavax/jms/Session;Ljavax/jms/MessageConsumer;Ljavax/jms/Message;)Ljavax/jms/Message; 1org/apache/activemq/ActiveMQMessageTransformation transformMessage j(Ljavax/jms/Message;Lorg/apache/activemq/ActiveMQConnection;)Lorg/apache/activemq/command/ActiveMQMessage; isClientAcknowledge setAcknowledgeCallback &(Lorg/apache/activemq/util/Callback;)V isIndividualAcknowledge ](Lorg/apache/activemq/ActiveMQMessageConsumer;Lorg/apache/activemq/command/MessageDispatch;)V getTransactionContext *()Lorg/apache/activemq/TransactionContext; &org/apache/activemq/TransactionContext isInTransaction addSynchronization 4(Lorg/apache/activemq/transaction/Synchronization;)V createRemoveCommand *()Lorg/apache/activemq/command/RemoveInfo; (J)Ljava/lang/StringBuilder; setLastDeliveredSequenceId asyncSendPacket ((Lorg/apache/activemq/command/Command;)V getMutex removeAll ()Ljava/util/List; ()Ljava/util/Iterator; hasNext next rollbackDuplicate P(Lorg/apache/activemq/ActiveMQDispatcher;Lorg/apache/activemq/command/Message;)V 'transportInterruptionProcessingComplete
compareAndSet (ZZ)Z clear
isStandardAck java/util/concurrent/Executors newSingleThreadExecutor (()Ljava/util/concurrent/ExecutorService; X(Lorg/apache/activemq/ActiveMQMessageConsumer;Lorg/apache/activemq/command/MessageAck;)V $java/util/concurrent/ExecutorService submit 3(Ljava/lang/Runnable;)Ljava/util/concurrent/Future;
getTransacted shutdown java/util/concurrent/TimeUnit SECONDS Ljava/util/concurrent/TimeUnit; awaitTermination #(JLjava/util/concurrent/TimeUnit;)Z (Ljava/util/Collection;)V isTransacted isEmpty configure -(Lorg/apache/activemq/command/ConsumerInfo;)V
setTimeout getNextDeliveryId setDeliverySequenceId getMessageId )()Lorg/apache/activemq/command/MessageId; getBrokerSequenceId addFirst 2(Lorg/apache/activemq/command/MessageDispatch;BI)V getTransactionId -()Lorg/apache/activemq/command/TransactionId; setTransactionId .(Lorg/apache/activemq/command/TransactionId;)V remove (Ljava/lang/Object;)Z getExpiredMessageCount 5()Lorg/apache/activemq/management/CountStatisticImpl; 1org/apache/activemq/management/CountStatisticImpl increment onMessage sendAck +(Lorg/apache/activemq/command/MessageAck;)V contains getFirst getLast setFirstMessageId getLastMessageId
getAckType getFirstMessageId isDeliveredAck doStartTransaction (II)I entrySet ()Ljava/util/Set;
java/util/Set booleanValue
transactionId +Lorg/apache/activemq/command/TransactionId; sleep getKey
removeLast getRedeliveryCounter $org/apache/activemq/RedeliveryPolicy getNextRedeliveryDelay (J)J getInitialRedeliveryDelay onMessageRolledBack getMaximumRedeliveries getRollbackCause ()Ljava/lang/Throwable; setPoisonCause (Ljava/lang/Throwable;)V ,(Lorg/apache/activemq/command/MessageAck;Z)V getScheduler (()Lorg/apache/activemq/thread/Scheduler; F(Lorg/apache/activemq/ActiveMQMessageConsumer;Ljava/util/LinkedList;)V $org/apache/activemq/thread/Scheduler executeAfterDelay (Ljava/lang/Runnable;J)V enqueueFirst equals isDuplicate P(Lorg/apache/activemq/ActiveMQDispatcher;Lorg/apache/activemq/command/Message;)Z (Ljavax/jms/Message;)V error *(Ljava/lang/String;Ljava/lang/Throwable;)V setRollbackCause enqueue ,org/apache/activemq/MessageAvailableListener onMessageAvailable (Ljavax/jms/MessageConsumer;)V
getConnection *()Lorg/apache/activemq/ActiveMQConnection; valueOf (Z)Ljava/lang/Boolean; put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; yield onClientInternalException [(Lorg/apache/activemq/ActiveMQMessageConsumer;Lorg/apache/activemq/command/TransactionId;)V executor -Lorg/apache/activemq/ActiveMQSessionExecutor; +org/apache/activemq/ActiveMQSessionExecutor wakeup (Z)Ljava/lang/StringBuilder;
dequeueNoWait /()Lorg/apache/activemq/command/MessageDispatch; org/slf4j/LoggerFactory getLogger %(Ljava/lang/Class;)Lorg/slf4j/Logger; !|~ ?? ?? ?? ?? ?? ?? ? ? ?? ? ? ?? ?? ?? ?? ?? ?? ? ? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? I ?? ? ? *?
*? Y? ? *?
Y? ? *? Y? ? *? Y? ? *? ? * ? * ? *? *? -?
? Y? ?-? ?
? Y? ?-? ? p-? :? ? Y? Y? !? "-? #? $? %?+? &? '? (? ):
? *?
? Y+? ?+? &-? ,?
? Y-? ??
? .Y/? 0?+? &? 1? *? 2Y? 3? 4? *? 5Y? 6? 4*+? 7*+? &? 8? 9*+? :? ;*?