com.groupbyinc.flux.transport.TcpChannel.class Maven / Gradle / Ivy
???? 4 ? (com/groupbyinc/flux/transport/TcpChannel java/lang/Object +com/groupbyinc/flux/common/lease/Releasable TcpChannel.java close ()V addCloseListener .(Lcom/groupbyinc/flux/action/ActionListener;)V setSoLinger (I)V java/io/IOException isOpen ()Z getLocalAddress ()Ljava/net/InetSocketAddress; sendMessage _(Lcom/groupbyinc/flux/common/bytes/BytesReference;Lcom/groupbyinc/flux/action/ActionListener;)V closeChannel .(Lcom/groupbyinc/flux/transport/TcpChannel;Z)V java/util/Collections
singletonList $(Ljava/lang/Object;)Ljava/util/List;
closeChannels (Ljava/util/List;Z)V channel TC; *Lcom/groupbyinc/flux/transport/TcpChannel; blocking Z java/util/ArrayList ' java/util/List ) size ()I + , * - /
( 0 iterator ()Ljava/util/Iterator; 2 3 * 4 java/util/Iterator 6 hasNext 8 7 9 next ()Ljava/lang/Object; ; < 7 = ? 4com/groupbyinc/flux/action/support/PlainActionFuture A newFuture 8()Lcom/groupbyinc/flux/action/support/PlainActionFuture; C D
B E
G I add (Ljava/lang/Object;)Z K L
( M blockOnFutures (Ljava/util/List;)V O P Q ,com/groupbyinc/flux/common/lease/Releasables S (Ljava/lang/Iterable;)V U
T V closeFuture HLcom/groupbyinc/flux/action/support/PlainActionFuture; 6Lcom/groupbyinc/flux/action/support/PlainActionFuture; futures RLjava/util/ArrayList;>; Ljava/util/ArrayList; channels Ljava/util/List; Ljava/util/List; awaitConnected n(Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;Ljava/util/List;Lcom/groupbyinc/flux/common/unit/TimeValue;)V 7com/groupbyinc/flux/transport/ConnectTransportException c %java/util/concurrent/TimeoutException e java/lang/InterruptedException g 'java/util/concurrent/ExecutionException i java/lang/Exception k 'com/groupbyinc/flux/action/ActionFuture m )com/groupbyinc/flux/common/unit/TimeValue o getMillis ()J q r
p s java/util/concurrent/TimeUnit u MILLISECONDS Ljava/util/concurrent/TimeUnit; w x v y get 4(JLjava/util/concurrent/TimeUnit;)Ljava/lang/Object; { | n } .com/groupbyinc/flux/cluster/node/DiscoveryNode java/lang/Thread ?
currentThread ()Ljava/lang/Thread; ? ?
? ? interrupt ?
? ? java/lang/IllegalStateException ? (Ljava/lang/Throwable;)V / ?
? ? getCause ()Ljava/lang/Throwable; ? ?
j ? java/lang/StringBuilder ? /
? ? connect_timeout[ ? append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ? ?
? ? -(Ljava/lang/Object;)Ljava/lang/StringBuilder; ? ?
? ? ] ? toString ()Ljava/lang/String; ? ?
? ? E(Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;Ljava/lang/String;)V / ?
d ? connect_exception ? Z(Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;Ljava/lang/String;Ljava/lang/Throwable;)V / ?
d ? e 'Ljava/util/concurrent/TimeoutException; Ljava/lang/InterruptedException; )Ljava/util/concurrent/ExecutionException; connectionFuture ;Lcom/groupbyinc/flux/action/ActionFuture; )Lcom/groupbyinc/flux/action/ActionFuture;
discoveryNode 0Lcom/groupbyinc/flux/cluster/node/DiscoveryNode; connectionFutures MLjava/util/List;>; connectTimeout +Lcom/groupbyinc/flux/common/unit/TimeValue; connectionException Ljava/lang/Exception; allConnected { < n ? Future got interrupted ? *(Ljava/lang/String;Ljava/lang/Throwable;)V / ?
? ? future Signature @(Lcom/groupbyinc/flux/action/ActionListener;)V
Exceptions q(Lcom/groupbyinc/flux/common/bytes/BytesReference;Lcom/groupbyinc/flux/action/ActionListener;)V Code LocalVariableTable LocalVariableTypeTable LineNumberTable 6(TC;Z)V
StackMapTable H(Ljava/util/List;Z)V ?(Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;Ljava/util/List;>;Lcom/groupbyinc/flux/common/unit/TimeValue;)V P(Ljava/util/List;>;)V
SourceFile
? ?
? ? ? ? S *? ? !? ? " $ % &