public class org.apache.cassandra.service.paxos.ProposeCallback extends org.apache.cassandra.service.paxos.AbstractPaxosCallback<java.lang.Boolean>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.cassandra.service.paxos.ProposeCallback
super_class: org.apache.cassandra.service.paxos.AbstractPaxosCallback
{
private static final org.slf4j.Logger logger;
descriptor: Lorg/slf4j/Logger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private final java.util.concurrent.atomic.AtomicInteger accepts;
descriptor: Ljava/util/concurrent/atomic/AtomicInteger;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final int requiredAccepts;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final boolean failFast;
descriptor: Z
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lorg/apache/cassandra/service/paxos/ProposeCallback;
invokestatic org.slf4j.LoggerFactory.getLogger:(Ljava/lang/Class;)Lorg/slf4j/Logger;
putstatic org.apache.cassandra.service.paxos.ProposeCallback.logger:Lorg/slf4j/Logger;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(int, int, boolean, org.apache.cassandra.db.ConsistencyLevel, long);
descriptor: (IIZLorg/apache/cassandra/db/ConsistencyLevel;J)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=7, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 0
iload 1
aload 4
lload 5
invokespecial org.apache.cassandra.service.paxos.AbstractPaxosCallback.<init>:(ILorg/apache/cassandra/db/ConsistencyLevel;J)V
1: 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.paxos.ProposeCallback.accepts:Ljava/util/concurrent/atomic/AtomicInteger;
2: aload 0
iload 2
putfield org.apache.cassandra.service.paxos.ProposeCallback.requiredAccepts:I
3: aload 0
iload 3
putfield org.apache.cassandra.service.paxos.ProposeCallback.failFast:Z
4: return
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/cassandra/service/paxos/ProposeCallback;
0 5 1 totalTargets I
0 5 2 requiredTargets I
0 5 3 failFast Z
0 5 4 consistency Lorg/apache/cassandra/db/ConsistencyLevel;
0 5 5 queryStartNanoTime J
MethodParameters:
Name Flags
totalTargets
requiredTargets
failFast
consistency
queryStartNanoTime
public void response(org.apache.cassandra.net.MessageIn<java.lang.Boolean>);
descriptor: (Lorg/apache/cassandra/net/MessageIn;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: getstatic org.apache.cassandra.service.paxos.ProposeCallback.logger:Lorg/slf4j/Logger;
ldc "Propose response {} from {}"
aload 1
getfield org.apache.cassandra.net.MessageIn.payload:Ljava/lang/Object;
aload 1
getfield org.apache.cassandra.net.MessageIn.from:Ljava/net/InetAddress;
invokeinterface org.slf4j.Logger.trace:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
1: aload 1
getfield org.apache.cassandra.net.MessageIn.payload:Ljava/lang/Object;
checkcast java.lang.Boolean
invokevirtual java.lang.Boolean.booleanValue:()Z
ifeq 3
2: aload 0
getfield org.apache.cassandra.service.paxos.ProposeCallback.accepts:Ljava/util/concurrent/atomic/AtomicInteger;
invokevirtual java.util.concurrent.atomic.AtomicInteger.incrementAndGet:()I
pop
3: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.service.paxos.ProposeCallback.latch:Ljava/util/concurrent/CountDownLatch;
invokevirtual java.util.concurrent.CountDownLatch.countDown:()V
4: aload 0
invokevirtual org.apache.cassandra.service.paxos.ProposeCallback.isSuccessful:()Z
ifne 7
aload 0
getfield org.apache.cassandra.service.paxos.ProposeCallback.failFast:Z
ifeq 8
aload 0
getfield org.apache.cassandra.service.paxos.ProposeCallback.latch:Ljava/util/concurrent/CountDownLatch;
invokevirtual java.util.concurrent.CountDownLatch.getCount:()J
aload 0
getfield org.apache.cassandra.service.paxos.ProposeCallback.accepts:Ljava/util/concurrent/atomic/AtomicInteger;
invokevirtual java.util.concurrent.atomic.AtomicInteger.get:()I
i2l
ladd
aload 0
getfield org.apache.cassandra.service.paxos.ProposeCallback.requiredAccepts:I
i2l
lcmp
ifge 8
5: goto 7
6: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.service.paxos.ProposeCallback.latch:Ljava/util/concurrent/CountDownLatch;
invokevirtual java.util.concurrent.CountDownLatch.countDown:()V
7: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.service.paxos.ProposeCallback.latch:Ljava/util/concurrent/CountDownLatch;
invokevirtual java.util.concurrent.CountDownLatch.getCount:()J
lconst_0
lcmp
ifgt 6
8: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/apache/cassandra/service/paxos/ProposeCallback;
0 9 1 msg Lorg/apache/cassandra/net/MessageIn<Ljava/lang/Boolean;>;
Signature: (Lorg/apache/cassandra/net/MessageIn<Ljava/lang/Boolean;>;)V
MethodParameters:
Name Flags
msg
public int getAcceptCount();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.service.paxos.ProposeCallback.accepts:Ljava/util/concurrent/atomic/AtomicInteger;
invokevirtual java.util.concurrent.atomic.AtomicInteger.get:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/service/paxos/ProposeCallback;
public boolean isSuccessful();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.service.paxos.ProposeCallback.accepts:Ljava/util/concurrent/atomic/AtomicInteger;
invokevirtual java.util.concurrent.atomic.AtomicInteger.get:()I
aload 0
getfield org.apache.cassandra.service.paxos.ProposeCallback.requiredAccepts:I
if_icmplt 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/service/paxos/ProposeCallback;
public boolean isFullyRefused();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.service.paxos.ProposeCallback.latch:Ljava/util/concurrent/CountDownLatch;
invokevirtual java.util.concurrent.CountDownLatch.getCount:()J
lconst_0
lcmp
ifne 1
aload 0
getfield org.apache.cassandra.service.paxos.ProposeCallback.accepts:Ljava/util/concurrent/atomic/AtomicInteger;
invokevirtual java.util.concurrent.atomic.AtomicInteger.get:()I
ifne 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/service/paxos/ProposeCallback;
}
Signature: Lorg/apache/cassandra/service/paxos/AbstractPaxosCallback<Ljava/lang/Boolean;>;
SourceFile: "ProposeCallback.java"