public final class com.lmax.disruptor.SleepingWaitStrategy implements com.lmax.disruptor.WaitStrategy
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: com.lmax.disruptor.SleepingWaitStrategy
super_class: java.lang.Object
{
private static final int DEFAULT_RETRIES;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 200
private static final long DEFAULT_SLEEP;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 100
private final int retries;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final long sleepTimeNs;
descriptor: J
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
sipush 200
ldc 100
invokespecial com.lmax.disruptor.SleepingWaitStrategy.<init>:(IJ)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/lmax/disruptor/SleepingWaitStrategy;
public void <init>(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
ldc 100
invokespecial com.lmax.disruptor.SleepingWaitStrategy.<init>:(IJ)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/lmax/disruptor/SleepingWaitStrategy;
0 2 1 retries I
MethodParameters:
Name Flags
retries
public void <init>(int, long);
descriptor: (IJ)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
iload 1
putfield com.lmax.disruptor.SleepingWaitStrategy.retries:I
2: aload 0
lload 2
putfield com.lmax.disruptor.SleepingWaitStrategy.sleepTimeNs:J
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/lmax/disruptor/SleepingWaitStrategy;
0 4 1 retries I
0 4 2 sleepTimeNs J
MethodParameters:
Name Flags
retries
sleepTimeNs
public long waitFor(long, com.lmax.disruptor.Sequence, com.lmax.disruptor.Sequence, com.lmax.disruptor.SequenceBarrier);
descriptor: (JLcom/lmax/disruptor/Sequence;Lcom/lmax/disruptor/Sequence;Lcom/lmax/disruptor/SequenceBarrier;)J
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=9, args_size=5
start local 0 start local 1 start local 3 start local 4 start local 5 0: aload 0
getfield com.lmax.disruptor.SleepingWaitStrategy.retries:I
istore 8
start local 8 1: goto 3
start local 6 2: StackMap locals: long int
StackMap stack:
aload 0
aload 5
iload 8
invokevirtual com.lmax.disruptor.SleepingWaitStrategy.applyWaitMethod:(Lcom/lmax/disruptor/SequenceBarrier;I)I
istore 8
end local 6 3: StackMap locals: com.lmax.disruptor.SleepingWaitStrategy long com.lmax.disruptor.Sequence com.lmax.disruptor.Sequence com.lmax.disruptor.SequenceBarrier top top int
StackMap stack:
aload 4
invokevirtual com.lmax.disruptor.Sequence.get:()J
dup2
lstore 6
start local 6 4: lload 1
lcmp
iflt 2
5: lload 6
lreturn
end local 8 end local 6 end local 5 end local 4 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lcom/lmax/disruptor/SleepingWaitStrategy;
0 6 1 sequence J
0 6 3 cursor Lcom/lmax/disruptor/Sequence;
0 6 4 dependentSequence Lcom/lmax/disruptor/Sequence;
0 6 5 barrier Lcom/lmax/disruptor/SequenceBarrier;
2 3 6 availableSequence J
4 6 6 availableSequence J
1 6 8 counter I
Exceptions:
throws com.lmax.disruptor.AlertException
MethodParameters:
Name Flags
sequence final
cursor
dependentSequence final
barrier final
public void signalAllWhenBlocking();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=0, locals=1, args_size=1
start local 0 0: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/lmax/disruptor/SleepingWaitStrategy;
private int applyWaitMethod(com.lmax.disruptor.SequenceBarrier, int);
descriptor: (Lcom/lmax/disruptor/SequenceBarrier;I)I
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokeinterface com.lmax.disruptor.SequenceBarrier.checkAlert:()V
1: iload 2
bipush 100
if_icmple 4
2: iinc 2 -1
3: goto 9
4: StackMap locals:
StackMap stack:
iload 2
ifle 8
5: iinc 2 -1
6: invokestatic java.lang.Thread.yield:()V
7: goto 9
8: StackMap locals:
StackMap stack:
aload 0
getfield com.lmax.disruptor.SleepingWaitStrategy.sleepTimeNs:J
invokestatic java.util.concurrent.locks.LockSupport.parkNanos:(J)V
9: StackMap locals:
StackMap stack:
iload 2
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lcom/lmax/disruptor/SleepingWaitStrategy;
0 10 1 barrier Lcom/lmax/disruptor/SequenceBarrier;
0 10 2 counter I
Exceptions:
throws com.lmax.disruptor.AlertException
MethodParameters:
Name Flags
barrier final
counter
}
SourceFile: "SleepingWaitStrategy.java"