public class org.apache.cassandra.net.AsyncOneResponse<T> implements org.apache.cassandra.net.IAsyncCallback<T>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.cassandra.net.AsyncOneResponse
super_class: java.lang.Object
{
private T result;
descriptor: Ljava/lang/Object;
flags: (0x0002) ACC_PRIVATE
Signature: TT;
private boolean done;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private final long start;
descriptor: J
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
invokestatic java.lang.System.nanoTime:()J
putfield org.apache.cassandra.net.AsyncOneResponse.start:J
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/cassandra/net/AsyncOneResponse<TT;>;
public T get(long, java.util.concurrent.TimeUnit);
descriptor: (JLjava/util/concurrent/TimeUnit;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=9, args_size=3
start local 0 start local 1 start local 3 0: aload 3
lload 1
invokevirtual java.util.concurrent.TimeUnit.toNanos:(J)J
lstore 1
1: iconst_0
istore 4
start local 4 2: aload 0
dup
astore 5
monitorenter
3: goto 11
4: StackMap locals: int org.apache.cassandra.net.AsyncOneResponse
StackMap stack:
lload 1
invokestatic java.lang.System.nanoTime:()J
aload 0
getfield org.apache.cassandra.net.AsyncOneResponse.start:J
lsub
lsub
lstore 6
start local 6 5: lload 6
lconst_0
lcmp
ifgt 7
6: new java.util.concurrent.TimeoutException
dup
ldc "Operation timed out."
invokespecial java.util.concurrent.TimeoutException.<init>:(Ljava/lang/String;)V
athrow
7: StackMap locals: long
StackMap stack:
getstatic java.util.concurrent.TimeUnit.NANOSECONDS:Ljava/util/concurrent/TimeUnit;
aload 0
lload 6
invokevirtual java.util.concurrent.TimeUnit.timedWait:(Ljava/lang/Object;J)V
end local 6 8: goto 11
9: StackMap locals: org.apache.cassandra.net.AsyncOneResponse long java.util.concurrent.TimeUnit int org.apache.cassandra.net.AsyncOneResponse
StackMap stack: java.lang.InterruptedException
pop
10: iconst_1
istore 4
11: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.net.AsyncOneResponse.done:Z
ifeq 4
12: aload 5
monitorexit
13: goto 20
StackMap locals:
StackMap stack: java.lang.Throwable
14: aload 5
monitorexit
15: athrow
16: StackMap locals: org.apache.cassandra.net.AsyncOneResponse long java.util.concurrent.TimeUnit int
StackMap stack: java.lang.Throwable
astore 8
17: iload 4
ifeq 19
18: invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
invokevirtual java.lang.Thread.interrupt:()V
19: StackMap locals: org.apache.cassandra.net.AsyncOneResponse long java.util.concurrent.TimeUnit int top top top java.lang.Throwable
StackMap stack:
aload 8
athrow
20: StackMap locals: org.apache.cassandra.net.AsyncOneResponse long java.util.concurrent.TimeUnit int
StackMap stack:
iload 4
ifeq 22
21: invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
invokevirtual java.lang.Thread.interrupt:()V
22: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.net.AsyncOneResponse.result:Ljava/lang/Object;
areturn
end local 4 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 23 0 this Lorg/apache/cassandra/net/AsyncOneResponse<TT;>;
0 23 1 timeout J
0 23 3 tu Ljava/util/concurrent/TimeUnit;
2 23 4 interrupted Z
5 8 6 overallTimeout J
Exception table:
from to target type
4 8 9 Class java.lang.InterruptedException
3 13 14 any
14 15 14 any
2 16 16 any
Exceptions:
throws java.util.concurrent.TimeoutException
Signature: (JLjava/util/concurrent/TimeUnit;)TT;
MethodParameters:
Name Flags
timeout
tu
public synchronized void response(org.apache.cassandra.net.MessageIn<T>);
descriptor: (Lorg/apache/cassandra/net/MessageIn;)V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.cassandra.net.AsyncOneResponse.done:Z
ifne 4
1: aload 0
aload 1
getfield org.apache.cassandra.net.MessageIn.payload:Ljava/lang/Object;
putfield org.apache.cassandra.net.AsyncOneResponse.result:Ljava/lang/Object;
2: aload 0
iconst_1
putfield org.apache.cassandra.net.AsyncOneResponse.done:Z
3: aload 0
invokevirtual java.lang.Object.notifyAll:()V
4: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/cassandra/net/AsyncOneResponse<TT;>;
0 5 1 response Lorg/apache/cassandra/net/MessageIn<TT;>;
Signature: (Lorg/apache/cassandra/net/MessageIn<TT;>;)V
MethodParameters:
Name Flags
response
public boolean isLatencyForSnitch();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/net/AsyncOneResponse<TT;>;
}
Signature: <T:Ljava/lang/Object;>Ljava/lang/Object;Lorg/apache/cassandra/net/IAsyncCallback<TT;>;
SourceFile: "AsyncOneResponse.java"