com.groupbyinc.flux.transport.netty4.NettyTcpChannel.class Maven / Gradle / Ivy
???? 4 4com/groupbyinc/flux/transport/netty4/NettyTcpChannel java/lang/Object (com/groupbyinc/flux/transport/TcpChannel NettyTcpChannel.java %java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles
Lookup channel 2Lcom/groupbyinc/flux/common/netty/channel/Channel; closeContext (Ljava/util/concurrent/CompletableFuture; :Ljava/util/concurrent/CompletableFuture; $assertionsDisabled Z 5(Lcom/groupbyinc/flux/common/netty/channel/Channel;)V ()V
&java/util/concurrent/CompletableFuture
0com/groupbyinc/flux/common/netty/channel/Channel closeFuture :()Lcom/groupbyinc/flux/common/netty/channel/ChannelFuture; " # ! $ "java/lang/invoke/LambdaMetafactory & metafactory ?(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite; ( )
' * + <(Lcom/groupbyinc/flux/common/netty/util/concurrent/Future;)V - lambda$new$0 / -
0 1 operationComplete ?(Lcom/groupbyinc/flux/transport/netty4/NettyTcpChannel;)Lcom/groupbyinc/flux/common/netty/util/concurrent/GenericFutureListener; 3 4 5 6com/groupbyinc/flux/common/netty/channel/ChannelFuture 7 addListener ?(Lcom/groupbyinc/flux/common/netty/util/concurrent/GenericFutureListener;)Lcom/groupbyinc/flux/common/netty/channel/ChannelFuture; 9 : 8 ; this 6Lcom/groupbyinc/flux/transport/netty4/NettyTcpChannel; close ? # ! @ addCloseListener .(Lcom/groupbyinc/flux/action/ActionListener;)V )com/groupbyinc/flux/action/ActionListener D toBiConsumer L(Lcom/groupbyinc/flux/action/ActionListener;)Ljava/util/function/BiConsumer; F G E H whenComplete I(Ljava/util/function/BiConsumer;)Ljava/util/concurrent/CompletableFuture; J K
L listener =Lcom/groupbyinc/flux/action/ActionListener; +Lcom/groupbyinc/flux/action/ActionListener; setSoLinger (I)V config :()Lcom/groupbyinc/flux/common/netty/channel/ChannelConfig; S T ! U 6com/groupbyinc/flux/common/netty/channel/ChannelOption W SO_LINGER 8Lcom/groupbyinc/flux/common/netty/channel/ChannelOption; Y Z X [ java/lang/Integer ] valueOf (I)Ljava/lang/Integer; _ `
^ a 6com/groupbyinc/flux/common/netty/channel/ChannelConfig c setOption M(Lcom/groupbyinc/flux/common/netty/channel/ChannelOption;Ljava/lang/Object;)Z e f d g value I isOpen ()Z k l ! m getLocalAddress ()Ljava/net/InetSocketAddress; localAddress ()Ljava/net/SocketAddress; q r ! s java/net/InetSocketAddress u sendMessage _(Lcom/groupbyinc/flux/common/bytes/BytesReference;Lcom/groupbyinc/flux/action/ActionListener;)V
newPromise ;()Lcom/groupbyinc/flux/common/netty/channel/ChannelPromise; y z ! { lambda$sendMessage$1 g(Lcom/groupbyinc/flux/action/ActionListener;Lcom/groupbyinc/flux/common/netty/util/concurrent/Future;)V } ~
? u(Lcom/groupbyinc/flux/action/ActionListener;)Lcom/groupbyinc/flux/common/netty/util/concurrent/GenericFutureListener; 3 ? ? 7com/groupbyinc/flux/common/netty/channel/ChannelPromise ? ?(Lcom/groupbyinc/flux/common/netty/util/concurrent/GenericFutureListener;)Lcom/groupbyinc/flux/common/netty/channel/ChannelPromise; 9 ? ? ? 0com/groupbyinc/flux/transport/netty4/Netty4Utils ? toByteBuf d(Lcom/groupbyinc/flux/common/bytes/BytesReference;)Lcom/groupbyinc/flux/common/netty/buffer/ByteBuf; ? ?
? ?
writeAndFlush ?(Ljava/lang/Object;Lcom/groupbyinc/flux/common/netty/channel/ChannelPromise;)Lcom/groupbyinc/flux/common/netty/channel/ChannelFuture; ? ? ! ? eventLoop 6()Lcom/groupbyinc/flux/common/netty/channel/EventLoop; ? ? ! ? 2com/groupbyinc/flux/common/netty/channel/EventLoop ?
isShutdown ? l ? ? 0com/groupbyinc/flux/transport/TransportException ? 1Cannot send message, event loop is shutting down. ? (Ljava/lang/String;)V ?
? ? onFailure (Ljava/lang/Exception;)V ? ? E ? reference 1Lcom/groupbyinc/flux/common/bytes/BytesReference; writePromise 9Lcom/groupbyinc/flux/common/netty/channel/ChannelPromise; getLowLevelChannel 4()Lcom/groupbyinc/flux/common/netty/channel/Channel; toString ()Ljava/lang/String; java/lang/StringBuilder ?
? NettyTcpChannel{localAddress= ? append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ? ?
? ? o p
? -(Ljava/lang/Object;)Ljava/lang/StringBuilder; ? ?
? ? , remoteAddress= ?
remoteAddress ? r ! ? (C)Ljava/lang/StringBuilder; ? ?
? ? ? ?
? ? java/lang/Exception ? 7com/groupbyinc/flux/common/netty/util/concurrent/Future ? isSuccess ? l ? ?
onResponse (Ljava/lang/Object;)V ? ? E ? cause ()Ljava/lang/Throwable; ? ? ? ? maybeDie (Ljava/lang/Throwable;)V ? ?
? ? ? java/lang/AssertionError ?
? java/lang/Throwable ? Ljava/lang/Throwable; f 9Lcom/groupbyinc/flux/common/netty/util/concurrent/Future; complete (Ljava/lang/Object;)Z ? ?
? java/lang/Error ? completeExceptionally (Ljava/lang/Throwable;)Z ? ?
? java/lang/Class ? desiredAssertionStatus ? l
? ? Signature Code LocalVariableTable LineNumberTable LocalVariableTypeTable @(Lcom/groupbyinc/flux/action/ActionListener;)V
StackMapTable q(Lcom/groupbyinc/flux/common/bytes/BytesReference;Lcom/groupbyinc/flux/action/ActionListener;)V
Exceptions BootstrapMethods
SourceFile InnerClasses !
? ? n **? *? Y? ? *+? *? ? % *? 6 ? < W? ? * = > *
? &