public class org.apache.cassandra.service.TruncateResponseHandler implements org.apache.cassandra.net.IAsyncCallback
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.cassandra.service.TruncateResponseHandler
super_class: java.lang.Object
{
protected static final org.slf4j.Logger logger;
descriptor: Lorg/slf4j/Logger;
flags: (0x001c) ACC_PROTECTED, ACC_STATIC, ACC_FINAL
protected final org.apache.cassandra.utils.concurrent.SimpleCondition condition;
descriptor: Lorg/apache/cassandra/utils/concurrent/SimpleCondition;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
private final int responseCount;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
protected final java.util.concurrent.atomic.AtomicInteger responses;
descriptor: Ljava/util/concurrent/atomic/AtomicInteger;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
private final long start;
descriptor: J
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lorg/apache/cassandra/service/TruncateResponseHandler;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic org.apache.cassandra.service.TruncateResponseHandler.$assertionsDisabled:Z
3: ldc Lorg/apache/cassandra/service/TruncateResponseHandler;
invokestatic org.slf4j.LoggerFactory.getLogger:(Ljava/lang/Class;)Lorg/slf4j/Logger;
putstatic org.apache.cassandra.service.TruncateResponseHandler.logger:Lorg/slf4j/Logger;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new org.apache.cassandra.utils.concurrent.SimpleCondition
dup
invokespecial org.apache.cassandra.utils.concurrent.SimpleCondition.<init>:()V
putfield org.apache.cassandra.service.TruncateResponseHandler.condition:Lorg/apache/cassandra/utils/concurrent/SimpleCondition;
2: aload 0
new java.util.concurrent.atomic.AtomicInteger
dup
iconst_0
invokespecial java.util.concurrent.atomic.AtomicInteger.<init>:(I)V
putfield org.apache.cassandra.service.TruncateResponseHandler.responses:Ljava/util/concurrent/atomic/AtomicInteger;
3: getstatic org.apache.cassandra.service.TruncateResponseHandler.$assertionsDisabled:Z
ifne 4
iconst_1
iload 1
if_icmple 4
new java.lang.AssertionError
dup
new java.lang.StringBuilder
dup
ldc "invalid response count "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 1
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
4: StackMap locals: org.apache.cassandra.service.TruncateResponseHandler int
StackMap stack:
aload 0
iload 1
putfield org.apache.cassandra.service.TruncateResponseHandler.responseCount:I
5: aload 0
invokestatic java.lang.System.nanoTime:()J
putfield org.apache.cassandra.service.TruncateResponseHandler.start:J
6: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/apache/cassandra/service/TruncateResponseHandler;
0 7 1 responseCount I
MethodParameters:
Name Flags
responseCount
public void get();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=5, args_size=1
start local 0 0: getstatic java.util.concurrent.TimeUnit.MILLISECONDS:Ljava/util/concurrent/TimeUnit;
invokestatic org.apache.cassandra.config.DatabaseDescriptor.getTruncateRpcTimeout:()J
invokevirtual java.util.concurrent.TimeUnit.toNanos:(J)J
invokestatic java.lang.System.nanoTime:()J
aload 0
getfield org.apache.cassandra.service.TruncateResponseHandler.start:J
lsub
lsub
lstore 1
start local 1 1: aload 0
getfield org.apache.cassandra.service.TruncateResponseHandler.condition:Lorg/apache/cassandra/utils/concurrent/SimpleCondition;
lload 1
getstatic java.util.concurrent.TimeUnit.NANOSECONDS:Ljava/util/concurrent/TimeUnit;
invokevirtual org.apache.cassandra.utils.concurrent.SimpleCondition.await:(JLjava/util/concurrent/TimeUnit;)Z
istore 3
start local 3 2: goto 5
end local 3 3: StackMap locals: org.apache.cassandra.service.TruncateResponseHandler long
StackMap stack: java.lang.InterruptedException
astore 4
start local 4 4: new java.lang.AssertionError
dup
aload 4
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
end local 4 start local 3 5: StackMap locals: int
StackMap stack:
iload 3
ifne 7
6: new java.util.concurrent.TimeoutException
dup
new java.lang.StringBuilder
dup
ldc "Truncate timed out - received only "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield org.apache.cassandra.service.TruncateResponseHandler.responses:Ljava/util/concurrent/atomic/AtomicInteger;
invokevirtual java.util.concurrent.atomic.AtomicInteger.get:()I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " responses"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.util.concurrent.TimeoutException.<init>:(Ljava/lang/String;)V
athrow
7: StackMap locals:
StackMap stack:
return
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/apache/cassandra/service/TruncateResponseHandler;
1 8 1 timeout J
2 3 3 success Z
5 8 3 success Z
4 5 4 ex Ljava/lang/InterruptedException;
Exception table:
from to target type
1 2 3 Class java.lang.InterruptedException
Exceptions:
throws java.util.concurrent.TimeoutException
public void response(org.apache.cassandra.net.MessageIn);
descriptor: (Lorg/apache/cassandra/net/MessageIn;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.cassandra.service.TruncateResponseHandler.responses:Ljava/util/concurrent/atomic/AtomicInteger;
invokevirtual java.util.concurrent.atomic.AtomicInteger.incrementAndGet:()I
pop
1: aload 0
getfield org.apache.cassandra.service.TruncateResponseHandler.responses:Ljava/util/concurrent/atomic/AtomicInteger;
invokevirtual java.util.concurrent.atomic.AtomicInteger.get:()I
aload 0
getfield org.apache.cassandra.service.TruncateResponseHandler.responseCount:I
if_icmplt 3
2: aload 0
getfield org.apache.cassandra.service.TruncateResponseHandler.condition:Lorg/apache/cassandra/utils/concurrent/SimpleCondition;
invokevirtual org.apache.cassandra.utils.concurrent.SimpleCondition.signalAll:()V
3: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/cassandra/service/TruncateResponseHandler;
0 4 1 message Lorg/apache/cassandra/net/MessageIn;
MethodParameters:
Name Flags
message
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/service/TruncateResponseHandler;
}
SourceFile: "TruncateResponseHandler.java"