com.groupbyinc.flux.transport.RemoteClusterConnection$ConnectedNodes.class Maven / Gradle / Ivy
???? 4 Dcom/groupbyinc/flux/transport/RemoteClusterConnection$ConnectedNodes ?Ljava/lang/Object;Lcom/groupbyinc/flux/common/apache/logging/log4j/util/Supplier; java/lang/Object =com/groupbyinc/flux/common/apache/logging/log4j/util/Supplier RemoteClusterConnection.java 5com/groupbyinc/flux/transport/RemoteClusterConnection ConnectedNodes 7com/groupbyinc/flux/transport/RemoteClusterConnection$1 nodeSet Ljava/util/Set; ALjava/util/Set; clusterAlias Ljava/lang/String; currentIterator Ljava/util/Iterator; FLjava/util/Iterator; (Ljava/lang/String;)V ()V
java/util/HashSet
" this FLcom/groupbyinc/flux/transport/RemoteClusterConnection$ConnectedNodes; get 2()Lcom/groupbyinc/flux/cluster/node/DiscoveryNode; ensureIteratorAvailable (
) java/util/Iterator + hasNext ()Z - . , / next ()Ljava/lang/Object; 1 2 , 3 .com/groupbyinc/flux/cluster/node/DiscoveryNode 5 java/lang/IllegalStateException 7 java/lang/StringBuilder 9
: No node available for cluster: < append -(Ljava/lang/String;)Ljava/lang/StringBuilder; > ?
: @ toString ()Ljava/lang/String; B C
: D
8 F remove 3(Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;)Z
java/util/Set J (Ljava/lang/Object;)Z H L K M node 0Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;
setRemoval Z add S L K T added size ()I W X K Y contains [ L K \ getAny ()Ljava/util/Optional; java/util/Optional ` of ((Ljava/lang/Object;)Ljava/util/Optional; b c
a d empty f _
a g iterator ()Ljava/util/Iterator; i j K k isEmpty m . K n &