final class org.apache.cassandra.db.monitoring.MonitoringTask$OperationsQueue
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: org.apache.cassandra.db.monitoring.MonitoringTask$OperationsQueue
super_class: java.lang.Object
{
private final int maxOperations;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.concurrent.BlockingQueue<org.apache.cassandra.db.monitoring.MonitoringTask$Operation> queue;
descriptor: Ljava/util/concurrent/BlockingQueue;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/concurrent/BlockingQueue<Lorg/apache/cassandra/db/monitoring/MonitoringTask$Operation;>;
private final java.util.concurrent.atomic.AtomicLong numDroppedOperations;
descriptor: Ljava/util/concurrent/atomic/AtomicLong;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
void <init>(int);
descriptor: (I)V
flags: (0x0000)
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
iload 1
putfield org.apache.cassandra.db.monitoring.MonitoringTask$OperationsQueue.maxOperations:I
2: aload 0
iload 1
ifle 3
new java.util.concurrent.ArrayBlockingQueue
dup
iload 1
invokespecial java.util.concurrent.ArrayBlockingQueue.<init>:(I)V
goto 4
StackMap locals: org.apache.cassandra.db.monitoring.MonitoringTask$OperationsQueue int
StackMap stack: org.apache.cassandra.db.monitoring.MonitoringTask$OperationsQueue
3: new java.util.concurrent.LinkedBlockingQueue
dup
invokespecial java.util.concurrent.LinkedBlockingQueue.<init>:()V
StackMap locals: org.apache.cassandra.db.monitoring.MonitoringTask$OperationsQueue int
StackMap stack: org.apache.cassandra.db.monitoring.MonitoringTask$OperationsQueue java.util.AbstractQueue
4: putfield org.apache.cassandra.db.monitoring.MonitoringTask$OperationsQueue.queue:Ljava/util/concurrent/BlockingQueue;
5: aload 0
new java.util.concurrent.atomic.AtomicLong
dup
invokespecial java.util.concurrent.atomic.AtomicLong.<init>:()V
putfield org.apache.cassandra.db.monitoring.MonitoringTask$OperationsQueue.numDroppedOperations:Ljava/util/concurrent/atomic/AtomicLong;
6: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/apache/cassandra/db/monitoring/MonitoringTask$OperationsQueue;
0 7 1 maxOperations I
MethodParameters:
Name Flags
maxOperations
private void offer(org.apache.cassandra.db.monitoring.MonitoringTask$Operation);
descriptor: (Lorg/apache/cassandra/db/monitoring/MonitoringTask$Operation;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.cassandra.db.monitoring.MonitoringTask$OperationsQueue.maxOperations:I
ifne 2
1: return
2: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.db.monitoring.MonitoringTask$OperationsQueue.queue:Ljava/util/concurrent/BlockingQueue;
aload 1
invokeinterface java.util.concurrent.BlockingQueue.offer:(Ljava/lang/Object;)Z
ifne 4
3: aload 0
getfield org.apache.cassandra.db.monitoring.MonitoringTask$OperationsQueue.numDroppedOperations:Ljava/util/concurrent/atomic/AtomicLong;
invokevirtual java.util.concurrent.atomic.AtomicLong.incrementAndGet:()J
pop2
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/db/monitoring/MonitoringTask$OperationsQueue;
0 5 1 operation Lorg/apache/cassandra/db/monitoring/MonitoringTask$Operation;
MethodParameters:
Name Flags
operation
private org.apache.cassandra.db.monitoring.MonitoringTask$AggregatedOperations popOperations();
descriptor: ()Lorg/apache/cassandra/db/monitoring/MonitoringTask$AggregatedOperations;
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=4, args_size=1
start local 0 0: new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
astore 1
start local 1 1: goto 6
start local 2 2: StackMap locals: java.util.Map org.apache.cassandra.db.monitoring.MonitoringTask$Operation
StackMap stack:
aload 1
aload 2
invokevirtual org.apache.cassandra.db.monitoring.MonitoringTask$Operation.name:()Ljava/lang/String;
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.apache.cassandra.db.monitoring.MonitoringTask$Operation
astore 3
start local 3 3: aload 3
ifnull 5
4: aload 3
aload 2
invokevirtual org.apache.cassandra.db.monitoring.MonitoringTask$Operation.add:(Lorg/apache/cassandra/db/monitoring/MonitoringTask$Operation;)V
goto 6
5: StackMap locals: org.apache.cassandra.db.monitoring.MonitoringTask$Operation
StackMap stack:
aload 1
aload 2
invokevirtual org.apache.cassandra.db.monitoring.MonitoringTask$Operation.name:()Ljava/lang/String;
aload 2
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 3 end local 2 6: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.db.monitoring.MonitoringTask$OperationsQueue.queue:Ljava/util/concurrent/BlockingQueue;
invokeinterface java.util.concurrent.BlockingQueue.poll:()Ljava/lang/Object;
checkcast org.apache.cassandra.db.monitoring.MonitoringTask$Operation
dup
astore 2
start local 2 7: ifnonnull 2
8: new org.apache.cassandra.db.monitoring.MonitoringTask$AggregatedOperations
dup
aload 1
aload 0
getfield org.apache.cassandra.db.monitoring.MonitoringTask$OperationsQueue.numDroppedOperations:Ljava/util/concurrent/atomic/AtomicLong;
lconst_0
invokevirtual java.util.concurrent.atomic.AtomicLong.getAndSet:(J)J
invokespecial org.apache.cassandra.db.monitoring.MonitoringTask$AggregatedOperations.<init>:(Ljava/util/Map;J)V
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/apache/cassandra/db/monitoring/MonitoringTask$OperationsQueue;
1 9 1 operations Ljava/util/Map<Ljava/lang/String;Lorg/apache/cassandra/db/monitoring/MonitoringTask$Operation;>;
2 6 2 operation Lorg/apache/cassandra/db/monitoring/MonitoringTask$Operation;
7 9 2 operation Lorg/apache/cassandra/db/monitoring/MonitoringTask$Operation;
3 6 3 existing Lorg/apache/cassandra/db/monitoring/MonitoringTask$Operation;
}
SourceFile: "MonitoringTask.java"
NestHost: org.apache.cassandra.db.monitoring.MonitoringTask
InnerClasses:
private final AggregatedOperations = org.apache.cassandra.db.monitoring.MonitoringTask$AggregatedOperations of org.apache.cassandra.db.monitoring.MonitoringTask
protected abstract Operation = org.apache.cassandra.db.monitoring.MonitoringTask$Operation of org.apache.cassandra.db.monitoring.MonitoringTask
private final OperationsQueue = org.apache.cassandra.db.monitoring.MonitoringTask$OperationsQueue of org.apache.cassandra.db.monitoring.MonitoringTask