io.netty.util.concurrent.DefaultPromise.class Maven / Gradle / Ivy
???? 2A 'io/netty/util/concurrent/DefaultPromise kLio/netty/util/concurrent/AbstractFuture;Lio/netty/util/concurrent/Promise; 'io/netty/util/concurrent/AbstractFuture io/netty/util/concurrent/Promise DefaultPromise.java 3io/netty/util/concurrent/DefaultPromise$CauseHolder CauseHolder )io/netty/util/concurrent/DefaultPromise$4 )io/netty/util/concurrent/DefaultPromise$3 )io/netty/util/concurrent/DefaultPromise$2 )io/netty/util/concurrent/DefaultPromise$1 logger /Lio/netty/util/internal/logging/InternalLogger; rejectedExecutionLogger MAX_LISTENER_STACK_DEPTH I RESULT_UPDATER 9Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater; vLjava/util/concurrent/atomic/AtomicReferenceFieldUpdater; SUCCESS Lio/netty/util/Signal;
UNCANCELLABLE CANCELLATION_CAUSE_HOLDER 5Lio/netty/util/concurrent/DefaultPromise$CauseHolder; result Ljava/lang/Object; executor (Lio/netty/util/concurrent/EventExecutor; listeners waiters S notifyingListeners Z +(Lio/netty/util/concurrent/EventExecutor;)V ()V * ,
- # !io/netty/util/internal/ObjectUtil 0 checkNotNull 8(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object; 2 3
1 4 &io/netty/util/concurrent/EventExecutor 6 # $ 8 this .Lio/netty/util/concurrent/DefaultPromise; )Lio/netty/util/concurrent/DefaultPromise;
setSuccess 6(Ljava/lang/Object;)Lio/netty/util/concurrent/Promise; setSuccess0 (Ljava/lang/Object;)Z ? @
A notifyListeners C ,
D java/lang/IllegalStateException F java/lang/StringBuilder H
I - complete already: K append -(Ljava/lang/String;)Ljava/lang/StringBuilder; M N
I O -(Ljava/lang/Object;)Ljava/lang/StringBuilder; M Q
I R toString ()Ljava/lang/String; T U
I V (Ljava/lang/String;)V * X
G Y TV;
trySuccess
setFailure 9(Ljava/lang/Throwable;)Lio/netty/util/concurrent/Promise; setFailure0 (Ljava/lang/Throwable;)Z _ `
a *(Ljava/lang/String;Ljava/lang/Throwable;)V * c
G d cause Ljava/lang/Throwable;
tryFailure setUncancellable ()Z k m 7java/util/concurrent/atomic/AtomicReferenceFieldUpdater o
compareAndSet 9(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z q r
p s ! " u isDone0 w @
x isCancelled0 z @
{ java/lang/Object } isSuccess
isCancellable ()Ljava/lang/Throwable; f g
? java/lang/Throwable ? addListener T(Lio/netty/util/concurrent/GenericFutureListener;)Lio/netty/util/concurrent/Promise; listener ? addListener0 3(Lio/netty/util/concurrent/GenericFutureListener;)V ? ?
? .io/netty/util/concurrent/GenericFutureListener ? isDone ? j
? ZLio/netty/util/concurrent/GenericFutureListener<+Lio/netty/util/concurrent/Future<-TV;>;>; 0Lio/netty/util/concurrent/GenericFutureListener; addListeners U([Lio/netty/util/concurrent/GenericFutureListener;)Lio/netty/util/concurrent/Promise; % 1[Lio/netty/util/concurrent/GenericFutureListener; ? [[Lio/netty/util/concurrent/GenericFutureListener<+Lio/netty/util/concurrent/Future<-TV;>;>; removeListener removeListener0 ? ?
? removeListeners await $()Lio/netty/util/concurrent/Promise; java/lang/InterruptedException ? java/lang/Thread ? interrupted ? j
? ?
V
? Y
checkDeadLock ? ,
?
incWaiters ? ,
? wait ? ,
~ ?
decWaiters ? ,
? awaitUninterruptibly
currentThread ()Ljava/lang/Thread; ? ?
? ? interrupt ? ,
? ? e Ljava/lang/InterruptedException; #(JLjava/util/concurrent/TimeUnit;)Z java/util/concurrent/TimeUnit ? toNanos (J)J ? ?
? ? await0 (JZ)Z ? ?
? timeout J unit Ljava/util/concurrent/TimeUnit; (J)Z MILLISECONDS ? ? ? ?
timeoutMillis java/lang/InternalError ?
? - getNow ()Ljava/lang/Object; ? cancel (Z)Z ? checkNotifyWaiters ? ,
? mayInterruptIfRunning isCancelled sync ? ?
? rethrowIfFailed ? ,
? syncUninterruptibly ? ?
? toStringBuilder ()Ljava/lang/StringBuilder; ? ?
? (I)V * ?
I ? !io/netty/util/internal/StringUtil ? simpleClassName &(Ljava/lang/Object;)Ljava/lang/String; ? ?
? ? (C)Ljava/lang/StringBuilder; M ?
I ? hashCode ()I ? ?
~ java/lang/Integer toHexString (I)Ljava/lang/String;
(success) (uncancellable)
(failure:
(success: (incomplete) buf Ljava/lang/StringBuilder; *()Lio/netty/util/concurrent/EventExecutor; #
inEventLoop j 7 3io/netty/util/concurrent/BlockingOperationException
Y notifyListener |(Lio/netty/util/concurrent/EventExecutor;Lio/netty/util/concurrent/Future;Lio/netty/util/concurrent/GenericFutureListener;)V
eventExecutor future! )notifyListenerWithStackOverFlowProtection#
$ $Lio/netty/util/concurrent/Future<*>; !Lio/netty/util/concurrent/Future; 3Lio/netty/util/concurrent/GenericFutureListener<*>; -io/netty/util/internal/InternalThreadLocalMap) get 1()Lio/netty/util/internal/InternalThreadLocalMap;+,
*- futureListenerStackDepth/ ?
*0 2 setFutureListenerStackDepth4 ?
*5 notifyListenersNow7 ,
8 ,(Lio/netty/util/concurrent/DefaultPromise;)V *:
; safeExecute ?(Lio/netty/util/concurrent/EventExecutor;Ljava/lang/Runnable;)V=>
? threadLocals /Lio/netty/util/internal/InternalThreadLocalMap;
stackDepth notifyListener0 T(Lio/netty/util/concurrent/Future;Lio/netty/util/concurrent/GenericFutureListener;)VDE
F io/netty/util/concurrent/FutureH *E
J ( ) L % " N /io/netty/util/concurrent/DefaultFutureListenersP notifyListeners0 4(Lio/netty/util/concurrent/DefaultFutureListeners;)VRS
T 3()[Lio/netty/util/concurrent/GenericFutureListener; %V
QW sizeY ?
QZ i 1Lio/netty/util/concurrent/DefaultFutureListeners; a 4[Lio/netty/util/concurrent/GenericFutureListener<*>; operationComplete $(Lio/netty/util/concurrent/Future;)V`a ?b d An exception was thrown by f getClass ()Ljava/lang/Class;hi
~j java/lang/Classl getNamen U
mo .operationComplete()q -io/netty/util/internal/logging/InternalLoggers warnu ctv t l addz ?
Q{ c(Lio/netty/util/concurrent/GenericFutureListener;Lio/netty/util/concurrent/GenericFutureListener;)V *}
Q~ remove? ?
Q? setValue0? @
? f (Ljava/lang/Throwable;)V *?
? objResult &