class org.apache.cassandra.net.ResourceLimits$Basic implements org.apache.cassandra.net.ResourceLimits$Limit
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: org.apache.cassandra.net.ResourceLimits$Basic
super_class: java.lang.Object
{
private final long limit;
descriptor: J
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private long using;
descriptor: J
flags: (0x0002) ACC_PRIVATE
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/net/ResourceLimits;
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.net.ResourceLimits$Basic.$assertionsDisabled:Z
return
LocalVariableTable:
Start End Slot Name Signature
void <init>(long);
descriptor: (J)V
flags: (0x0000)
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
lload 1
putfield org.apache.cassandra.net.ResourceLimits$Basic.limit:J
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/cassandra/net/ResourceLimits$Basic;
0 3 1 limit J
MethodParameters:
Name Flags
limit
public long limit();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.net.ResourceLimits$Basic.limit:J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/net/ResourceLimits$Basic;
public long remaining();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.net.ResourceLimits$Basic.limit:J
aload 0
getfield org.apache.cassandra.net.ResourceLimits$Basic.using:J
lsub
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/net/ResourceLimits$Basic;
public long using();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.net.ResourceLimits$Basic.using:J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/net/ResourceLimits$Basic;
public boolean tryAllocate(long);
descriptor: (J)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.cassandra.net.ResourceLimits$Basic.using:J
lload 1
ladd
aload 0
getfield org.apache.cassandra.net.ResourceLimits$Basic.limit:J
lcmp
ifle 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 0
dup
getfield org.apache.cassandra.net.ResourceLimits$Basic.using:J
lload 1
ladd
putfield org.apache.cassandra.net.ResourceLimits$Basic.using:J
3: iconst_1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/cassandra/net/ResourceLimits$Basic;
0 4 1 amount J
MethodParameters:
Name Flags
amount
public void allocate(long);
descriptor: (J)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 0
dup
getfield org.apache.cassandra.net.ResourceLimits$Basic.using:J
lload 1
ladd
putfield org.apache.cassandra.net.ResourceLimits$Basic.using:J
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/net/ResourceLimits$Basic;
0 2 1 amount J
MethodParameters:
Name Flags
amount
public org.apache.cassandra.net.ResourceLimits$Outcome release(long);
descriptor: (J)Lorg/apache/cassandra/net/ResourceLimits$Outcome;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: getstatic org.apache.cassandra.net.ResourceLimits$Basic.$assertionsDisabled:Z
ifne 2
lload 1
lconst_0
lcmp
iflt 1
lload 1
aload 0
getfield org.apache.cassandra.net.ResourceLimits$Basic.using:J
lcmp
ifle 2
StackMap locals:
StackMap stack:
1: new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
aload 0
dup
getfield org.apache.cassandra.net.ResourceLimits$Basic.using:J
lload 1
lsub
putfield org.apache.cassandra.net.ResourceLimits$Basic.using:J
3: aload 0
getfield org.apache.cassandra.net.ResourceLimits$Basic.using:J
aload 0
getfield org.apache.cassandra.net.ResourceLimits$Basic.limit:J
lcmp
iflt 4
getstatic org.apache.cassandra.net.ResourceLimits$Outcome.ABOVE_LIMIT:Lorg/apache/cassandra/net/ResourceLimits$Outcome;
goto 5
StackMap locals:
StackMap stack:
4: getstatic org.apache.cassandra.net.ResourceLimits$Outcome.BELOW_LIMIT:Lorg/apache/cassandra/net/ResourceLimits$Outcome;
StackMap locals:
StackMap stack: org.apache.cassandra.net.ResourceLimits$Outcome
5: areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/apache/cassandra/net/ResourceLimits$Basic;
0 6 1 amount J
MethodParameters:
Name Flags
amount
}
SourceFile: "ResourceLimits.java"
NestHost: org.apache.cassandra.net.ResourceLimits
InnerClasses:
Basic = org.apache.cassandra.net.ResourceLimits$Basic of org.apache.cassandra.net.ResourceLimits
public abstract Limit = org.apache.cassandra.net.ResourceLimits$Limit of org.apache.cassandra.net.ResourceLimits
public final Outcome = org.apache.cassandra.net.ResourceLimits$Outcome of org.apache.cassandra.net.ResourceLimits