
com.groupbyinc.flux.common.jboss.netty.handler.queue.BlockingReadHandler.class Maven / Gradle / Ivy
???? 1 ? Hcom/groupbyinc/flux/common/jboss/netty/handler/queue/BlockingReadHandler cLcom/groupbyinc/flux/common/jboss/netty/channel/SimpleChannelUpstreamHandler; Kcom/groupbyinc/flux/common/jboss/netty/channel/SimpleChannelUpstreamHandler BlockingReadHandler.java queue $Ljava/util/concurrent/BlockingQueue; cLjava/util/concurrent/BlockingQueue; closed Z $assertionsDisabled ()V (java/util/concurrent/LinkedBlockingQueue
'(Ljava/util/concurrent/BlockingQueue;)V
this OLcom/groupbyinc/flux/common/jboss/netty/handler/queue/BlockingReadHandler; JLcom/groupbyinc/flux/common/jboss/netty/handler/queue/BlockingReadHandler;
java/lang/NullPointerException (Ljava/lang/String;)V
getQueue &()Ljava/util/concurrent/BlockingQueue; isClosed ()Z
& read ()Ljava/lang/Object; java/io/IOException * java/lang/InterruptedException , readEvent ?()Lcom/groupbyinc/flux/common/jboss/netty/channel/ChannelEvent; . /
0 ;com/groupbyinc/flux/common/jboss/netty/channel/MessageEvent 2
getMessage Q(Lcom/groupbyinc/flux/common/jboss/netty/channel/MessageEvent;)Ljava/lang/Object; 4 5
6 =com/groupbyinc/flux/common/jboss/netty/channel/ExceptionEvent 8
+ getCause ()Ljava/lang/Throwable; ; < 9 = initCause ,(Ljava/lang/Throwable;)Ljava/lang/Throwable; ? @
+ A java/lang/IllegalStateException C
D e =Lcom/groupbyinc/flux/common/jboss/netty/channel/ChannelEvent; 4(JLjava/util/concurrent/TimeUnit;)Ljava/lang/Object; _(JLjava/util/concurrent/TimeUnit;)Lcom/groupbyinc/flux/common/jboss/netty/channel/ChannelEvent; . I
J timeout J unit Ljava/util/concurrent/TimeUnit; detectDeadLock P
Q $ %
S " #
U "java/util/concurrent/BlockingQueue W isEmpty Y % X Z take \ ) X ] ;com/groupbyinc/flux/common/jboss/netty/channel/ChannelEvent _ @com/groupbyinc/flux/common/jboss/netty/channel/ChannelStateEvent a c java/lang/AssertionError e
f Qcom/groupbyinc/flux/common/jboss/netty/handler/queue/BlockingReadTimeoutException h poll j H X k
i Hcom/groupbyinc/flux/common/jboss/netty/util/internal/DeadLockProofWorker n PARENT Ljava/lang/ThreadLocal; p q o r java/lang/ThreadLocal t get v )
u w ?read*(...) in I/O thread causes a dead lock or sudden performance drop. Implement a state machine or call read*() from a different thread. y
D messageReceived ?(Lcom/groupbyinc/flux/common/jboss/netty/channel/ChannelHandlerContext;Lcom/groupbyinc/flux/common/jboss/netty/channel/MessageEvent;)V java/lang/Exception ~ put (Ljava/lang/Object;)V ? ? X ? ctx FLcom/groupbyinc/flux/common/jboss/netty/channel/ChannelHandlerContext; =Lcom/groupbyinc/flux/common/jboss/netty/channel/MessageEvent; exceptionCaught ?(Lcom/groupbyinc/flux/common/jboss/netty/channel/ChannelHandlerContext;Lcom/groupbyinc/flux/common/jboss/netty/channel/ExceptionEvent;)V ?Lcom/groupbyinc/flux/common/jboss/netty/channel/ExceptionEvent;
channelClosed ?(Lcom/groupbyinc/flux/common/jboss/netty/channel/ChannelHandlerContext;Lcom/groupbyinc/flux/common/jboss/netty/channel/ChannelStateEvent;)V BLcom/groupbyinc/flux/common/jboss/netty/channel/ChannelStateEvent; 4 ) 3 ? java/lang/Class ? desiredAssertionStatus ? %
? ? Signature Code LocalVariableTable LocalVariableTypeTable LineNumberTable f(Ljava/util/concurrent/BlockingQueue;)V e()Ljava/util/concurrent/BlockingQueue;
Exceptions ()TE; %(JLjava/util/concurrent/TimeUnit;)TE; B(Lcom/groupbyinc/flux/common/jboss/netty/channel/MessageEvent;)TE;
SourceFile ! ? B
? L *? Y? ? ? ? ? ?
S T
? x *? +?
? Y? ?*+? !? ? ? ? Y Z [ ] ^ ? ? " # ? A *? !? ? ? ? e ? ? $ % ? A *? '? ? ? ? p ( ) ? ? A*? 1L+? ?+? 3? *+? 3? 7?+? 9? ? +Y? :+? 9? > ? B? +?? DY? E? ? A <