public class com.mongodb.internal.async.ErrorHandlingResultCallback<T> implements com.mongodb.async.SingleResultCallback<T>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.mongodb.internal.async.ErrorHandlingResultCallback
super_class: java.lang.Object
{
private final com.mongodb.async.SingleResultCallback<T> wrapped;
descriptor: Lcom/mongodb/async/SingleResultCallback;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Lcom/mongodb/async/SingleResultCallback<TT;>;
private final com.mongodb.diagnostics.logging.Logger logger;
descriptor: Lcom/mongodb/diagnostics/logging/Logger;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public static <T> com.mongodb.async.SingleResultCallback<T> errorHandlingCallback(com.mongodb.async.SingleResultCallback<T>, com.mongodb.diagnostics.logging.Logger);
descriptor: (Lcom/mongodb/async/SingleResultCallback;Lcom/mongodb/diagnostics/logging/Logger;)Lcom/mongodb/async/SingleResultCallback;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
instanceof com.mongodb.internal.async.ErrorHandlingResultCallback
ifeq 2
1: aload 0
areturn
2: StackMap locals:
StackMap stack:
new com.mongodb.internal.async.ErrorHandlingResultCallback
dup
aload 0
aload 1
invokespecial com.mongodb.internal.async.ErrorHandlingResultCallback.<init>:(Lcom/mongodb/async/SingleResultCallback;Lcom/mongodb/diagnostics/logging/Logger;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 callback Lcom/mongodb/async/SingleResultCallback<TT;>;
0 3 1 logger Lcom/mongodb/diagnostics/logging/Logger;
Signature: <T:Ljava/lang/Object;>(Lcom/mongodb/async/SingleResultCallback<TT;>;Lcom/mongodb/diagnostics/logging/Logger;)Lcom/mongodb/async/SingleResultCallback<TT;>;
MethodParameters:
Name Flags
callback final
logger final
void <init>(com.mongodb.async.SingleResultCallback<T>, com.mongodb.diagnostics.logging.Logger);
descriptor: (Lcom/mongodb/async/SingleResultCallback;Lcom/mongodb/diagnostics/logging/Logger;)V
flags: (0x0000)
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
ldc "wrapped"
aload 1
invokestatic com.mongodb.assertions.Assertions.notNull:(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
checkcast com.mongodb.async.SingleResultCallback
putfield com.mongodb.internal.async.ErrorHandlingResultCallback.wrapped:Lcom/mongodb/async/SingleResultCallback;
2: aload 0
ldc "logger"
aload 2
invokestatic com.mongodb.assertions.Assertions.notNull:(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
checkcast com.mongodb.diagnostics.logging.Logger
putfield com.mongodb.internal.async.ErrorHandlingResultCallback.logger:Lcom/mongodb/diagnostics/logging/Logger;
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/mongodb/internal/async/ErrorHandlingResultCallback<TT;>;
0 4 1 wrapped Lcom/mongodb/async/SingleResultCallback<TT;>;
0 4 2 logger Lcom/mongodb/diagnostics/logging/Logger;
Signature: (Lcom/mongodb/async/SingleResultCallback<TT;>;Lcom/mongodb/diagnostics/logging/Logger;)V
MethodParameters:
Name Flags
wrapped final
logger final
public void onResult(T, java.lang.Throwable);
descriptor: (Ljava/lang/Object;Ljava/lang/Throwable;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield com.mongodb.internal.async.ErrorHandlingResultCallback.wrapped:Lcom/mongodb/async/SingleResultCallback;
aload 1
aload 2
invokeinterface com.mongodb.async.SingleResultCallback.onResult:(Ljava/lang/Object;Ljava/lang/Throwable;)V
1: goto 4
StackMap locals:
StackMap stack: java.lang.Throwable
2: astore 3
start local 3 3: aload 0
getfield com.mongodb.internal.async.ErrorHandlingResultCallback.logger:Lcom/mongodb/diagnostics/logging/Logger;
ldc "Callback onResult call produced an error"
aload 3
invokeinterface com.mongodb.diagnostics.logging.Logger.error:(Ljava/lang/String;Ljava/lang/Throwable;)V
end local 3 4: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/mongodb/internal/async/ErrorHandlingResultCallback<TT;>;
0 5 1 result TT;
0 5 2 t Ljava/lang/Throwable;
3 4 3 e Ljava/lang/Throwable;
Exception table:
from to target type
0 1 2 Class java.lang.Throwable
Signature: (TT;Ljava/lang/Throwable;)V
MethodParameters:
Name Flags
result final
t final
}
Signature: <T:Ljava/lang/Object;>Ljava/lang/Object;Lcom/mongodb/async/SingleResultCallback<TT;>;
SourceFile: "ErrorHandlingResultCallback.java"