final class com.mongodb.connection.netty.NettyStream$FutureAsyncCompletionHandler<T> implements com.mongodb.connection.AsyncCompletionHandler<T>
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: com.mongodb.connection.netty.NettyStream$FutureAsyncCompletionHandler
super_class: java.lang.Object
{
private final java.util.concurrent.CountDownLatch latch;
descriptor: Ljava/util/concurrent/CountDownLatch;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private volatile T t;
descriptor: Ljava/lang/Object;
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
Signature: TT;
private volatile java.lang.Throwable throwable;
descriptor: Ljava/lang/Throwable;
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
void <init>();
descriptor: ()V
flags: (0x0000)
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.concurrent.CountDownLatch
dup
iconst_1
invokespecial java.util.concurrent.CountDownLatch.<init>:(I)V
putfield com.mongodb.connection.netty.NettyStream$FutureAsyncCompletionHandler.latch:Ljava/util/concurrent/CountDownLatch;
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/mongodb/connection/netty/NettyStream$FutureAsyncCompletionHandler<TT;>;
public void completed();
descriptor: (Ljava/lang/Object;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield com.mongodb.connection.netty.NettyStream$FutureAsyncCompletionHandler.t:Ljava/lang/Object;
1: aload 0
getfield com.mongodb.connection.netty.NettyStream$FutureAsyncCompletionHandler.latch:Ljava/util/concurrent/CountDownLatch;
invokevirtual java.util.concurrent.CountDownLatch.countDown:()V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/mongodb/connection/netty/NettyStream$FutureAsyncCompletionHandler<TT;>;
0 3 1 t TT;
Signature: (TT;)V
MethodParameters:
Name Flags
t final
public void failed(java.lang.Throwable);
descriptor: (Ljava/lang/Throwable;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield com.mongodb.connection.netty.NettyStream$FutureAsyncCompletionHandler.throwable:Ljava/lang/Throwable;
1: aload 0
getfield com.mongodb.connection.netty.NettyStream$FutureAsyncCompletionHandler.latch:Ljava/util/concurrent/CountDownLatch;
invokevirtual java.util.concurrent.CountDownLatch.countDown:()V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/mongodb/connection/netty/NettyStream$FutureAsyncCompletionHandler<TT;>;
0 3 1 t Ljava/lang/Throwable;
MethodParameters:
Name Flags
t final
public T get();
descriptor: ()Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
getfield com.mongodb.connection.netty.NettyStream$FutureAsyncCompletionHandler.latch:Ljava/util/concurrent/CountDownLatch;
invokevirtual java.util.concurrent.CountDownLatch.await:()V
1: aload 0
getfield com.mongodb.connection.netty.NettyStream$FutureAsyncCompletionHandler.throwable:Ljava/lang/Throwable;
ifnull 7
2: aload 0
getfield com.mongodb.connection.netty.NettyStream$FutureAsyncCompletionHandler.throwable:Ljava/lang/Throwable;
instanceof java.io.IOException
ifeq 4
3: aload 0
getfield com.mongodb.connection.netty.NettyStream$FutureAsyncCompletionHandler.throwable:Ljava/lang/Throwable;
checkcast java.io.IOException
athrow
4: StackMap locals:
StackMap stack:
aload 0
getfield com.mongodb.connection.netty.NettyStream$FutureAsyncCompletionHandler.throwable:Ljava/lang/Throwable;
instanceof com.mongodb.MongoException
ifeq 6
5: aload 0
getfield com.mongodb.connection.netty.NettyStream$FutureAsyncCompletionHandler.throwable:Ljava/lang/Throwable;
checkcast com.mongodb.MongoException
athrow
6: StackMap locals:
StackMap stack:
new com.mongodb.MongoInternalException
dup
ldc "Exception thrown from Netty Stream"
aload 0
getfield com.mongodb.connection.netty.NettyStream$FutureAsyncCompletionHandler.throwable:Ljava/lang/Throwable;
invokespecial com.mongodb.MongoInternalException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
7: StackMap locals:
StackMap stack:
aload 0
getfield com.mongodb.connection.netty.NettyStream$FutureAsyncCompletionHandler.t:Ljava/lang/Object;
8: areturn
9: StackMap locals:
StackMap stack: java.lang.InterruptedException
astore 1
start local 1 10: new com.mongodb.MongoInterruptedException
dup
ldc "Interrupted"
aload 1
invokespecial com.mongodb.MongoInterruptedException.<init>:(Ljava/lang/String;Ljava/lang/Exception;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lcom/mongodb/connection/netty/NettyStream$FutureAsyncCompletionHandler<TT;>;
10 11 1 e Ljava/lang/InterruptedException;
Exception table:
from to target type
0 8 9 Class java.lang.InterruptedException
Exceptions:
throws java.io.IOException
Signature: ()TT;
}
Signature: <T:Ljava/lang/Object;>Ljava/lang/Object;Lcom/mongodb/connection/AsyncCompletionHandler<TT;>;
SourceFile: "NettyStream.java"
NestHost: com.mongodb.connection.netty.NettyStream
InnerClasses:
private final FutureAsyncCompletionHandler = com.mongodb.connection.netty.NettyStream$FutureAsyncCompletionHandler of com.mongodb.connection.netty.NettyStream