class com.mongodb.internal.connection.FutureAsyncCompletionHandler<T> implements com.mongodb.connection.AsyncCompletionHandler<T>
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: com.mongodb.internal.connection.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 result;
descriptor: Ljava/lang/Object;
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
Signature: TT;
private volatile java.lang.Throwable error;
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.internal.connection.FutureAsyncCompletionHandler.latch:Ljava/util/concurrent/CountDownLatch;
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/mongodb/internal/connection/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.internal.connection.FutureAsyncCompletionHandler.result:Ljava/lang/Object;
1: aload 0
getfield com.mongodb.internal.connection.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/internal/connection/FutureAsyncCompletionHandler<TT;>;
0 3 1 result TT;
Signature: (TT;)V
MethodParameters:
Name Flags
result 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.internal.connection.FutureAsyncCompletionHandler.error:Ljava/lang/Throwable;
1: aload 0
getfield com.mongodb.internal.connection.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/internal/connection/FutureAsyncCompletionHandler<TT;>;
0 3 1 t Ljava/lang/Throwable;
MethodParameters:
Name Flags
t final
public void getOpen();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
ldc "Opening"
invokevirtual com.mongodb.internal.connection.FutureAsyncCompletionHandler.get:(Ljava/lang/String;)Ljava/lang/Object;
pop
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/mongodb/internal/connection/FutureAsyncCompletionHandler<TT;>;
Exceptions:
throws java.io.IOException
public void getWrite();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
ldc "Writing to"
invokevirtual com.mongodb.internal.connection.FutureAsyncCompletionHandler.get:(Ljava/lang/String;)Ljava/lang/Object;
pop
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/mongodb/internal/connection/FutureAsyncCompletionHandler<TT;>;
Exceptions:
throws java.io.IOException
public T getRead();
descriptor: ()Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
ldc "Reading from"
invokevirtual com.mongodb.internal.connection.FutureAsyncCompletionHandler.get:(Ljava/lang/String;)Ljava/lang/Object;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/internal/connection/FutureAsyncCompletionHandler<TT;>;
Exceptions:
throws java.io.IOException
Signature: ()TT;
private T get(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/Object;
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield com.mongodb.internal.connection.FutureAsyncCompletionHandler.latch:Ljava/util/concurrent/CountDownLatch;
invokevirtual java.util.concurrent.CountDownLatch.await:()V
1: goto 4
StackMap locals:
StackMap stack: java.lang.InterruptedException
2: astore 2
start local 2 3: new com.mongodb.MongoInterruptedException
dup
new java.lang.StringBuilder
dup
aload 1
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc " the AsynchronousSocketChannelStream failed"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 2
invokespecial com.mongodb.MongoInterruptedException.<init>:(Ljava/lang/String;Ljava/lang/Exception;)V
athrow
end local 2 4: StackMap locals:
StackMap stack:
aload 0
getfield com.mongodb.internal.connection.FutureAsyncCompletionHandler.error:Ljava/lang/Throwable;
ifnull 10
5: aload 0
getfield com.mongodb.internal.connection.FutureAsyncCompletionHandler.error:Ljava/lang/Throwable;
instanceof java.io.IOException
ifeq 7
6: aload 0
getfield com.mongodb.internal.connection.FutureAsyncCompletionHandler.error:Ljava/lang/Throwable;
checkcast java.io.IOException
athrow
7: StackMap locals:
StackMap stack:
aload 0
getfield com.mongodb.internal.connection.FutureAsyncCompletionHandler.error:Ljava/lang/Throwable;
instanceof com.mongodb.MongoException
ifeq 9
8: aload 0
getfield com.mongodb.internal.connection.FutureAsyncCompletionHandler.error:Ljava/lang/Throwable;
checkcast com.mongodb.MongoException
athrow
9: StackMap locals:
StackMap stack:
new com.mongodb.MongoInternalException
dup
new java.lang.StringBuilder
dup
aload 1
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc " the AsynchronousSocketChannelStream failed"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 0
getfield com.mongodb.internal.connection.FutureAsyncCompletionHandler.error:Ljava/lang/Throwable;
invokespecial com.mongodb.MongoInternalException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
10: StackMap locals:
StackMap stack:
aload 0
getfield com.mongodb.internal.connection.FutureAsyncCompletionHandler.result:Ljava/lang/Object;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lcom/mongodb/internal/connection/FutureAsyncCompletionHandler<TT;>;
0 11 1 prefix Ljava/lang/String;
3 4 2 e Ljava/lang/InterruptedException;
Exception table:
from to target type
0 1 2 Class java.lang.InterruptedException
Exceptions:
throws java.io.IOException
Signature: (Ljava/lang/String;)TT;
MethodParameters:
Name Flags
prefix final
}
Signature: <T:Ljava/lang/Object;>Ljava/lang/Object;Lcom/mongodb/connection/AsyncCompletionHandler<TT;>;
SourceFile: "FutureAsyncCompletionHandler.java"