
com.groupbyinc.flux.discovery.BlockingClusterStatePublishResponseHandler.class Maven / Gradle / Ivy
???? 3 ? Hcom/groupbyinc/flux/discovery/BlockingClusterStatePublishResponseHandler java/lang/Object /BlockingClusterStatePublishResponseHandler.java latch %Ljava/util/concurrent/CountDownLatch; pendingNodes Ljava/util/Set; ALjava/util/Set; $assertionsDisabled Z (Ljava/util/Set;)V ()V
@com/groupbyinc/flux/common/util/concurrent/ConcurrentCollections newConcurrentSet ()Ljava/util/Set;
java/util/Set addAll (Ljava/util/Collection;)Z #java/util/concurrent/CountDownLatch size ()I " # $ (I)V
&
! ' ) this JLcom/groupbyinc/flux/discovery/BlockingClusterStatePublishResponseHandler; publishingToNodes
onResponse 3(Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;)V remove (Ljava/lang/Object;)Z 0 1 2 4 java/lang/AssertionError 6 java/lang/StringBuilder 8
9 node [ ; append -(Ljava/lang/String;)Ljava/lang/StringBuilder; = >
9 ? -(Ljava/lang/Object;)Ljava/lang/StringBuilder; = A
9 B ] already responded or failed D toString ()Ljava/lang/String; F G
9 H (Ljava/lang/Object;)V
J
7 K countDown M
! N node 0Lcom/groupbyinc/flux/cluster/node/DiscoveryNode; found onFailure H(Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;Ljava/lang/Throwable;)V t Ljava/lang/Throwable;
awaitAllNodes .(Lcom/groupbyinc/flux/common/unit/TimeValue;)Z java/lang/InterruptedException Y )com/groupbyinc/flux/common/unit/TimeValue [ millis ()J ] ^
\ _ java/util/concurrent/TimeUnit a MILLISECONDS Ljava/util/concurrent/TimeUnit; c d b e await #(JLjava/util/concurrent/TimeUnit;)Z g h
! i isEmpty ()Z k l m 9response count reached 0 but still waiting for some nodes o timeout +Lcom/groupbyinc/flux/common/unit/TimeValue; success 3()[Lcom/groupbyinc/flux/cluster/node/DiscoveryNode; .com/groupbyinc/flux/cluster/node/DiscoveryNode u toArray (([Ljava/lang/Object;)[Ljava/lang/Object; w x y 1[Lcom/groupbyinc/flux/cluster/node/DiscoveryNode; { java/lang/Class ~ desiredAssertionStatus ? l
? Signature Code LocalVariableTable LocalVariableTypeTable LineNumberTable D(Ljava/util/Set;)V
StackMapTable
Exceptions
SourceFile ! ?
? ? +*? *? ? *? +? W*? !Y*? ? % ? (? *? ? + + , + - ? + -
? + , - . * / ? ? . / ? ? =*? +? 3 =? 5? '? #? 7Y? 9Y? :