public abstract class com.lmax.disruptor.AbstractSequencer implements com.lmax.disruptor.Sequencer
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: com.lmax.disruptor.AbstractSequencer
super_class: java.lang.Object
{
private static final java.util.concurrent.atomic.AtomicReferenceFieldUpdater<com.lmax.disruptor.AbstractSequencer, com.lmax.disruptor.Sequence[]> SEQUENCE_UPDATER;
descriptor: Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater<Lcom/lmax/disruptor/AbstractSequencer;[Lcom/lmax/disruptor/Sequence;>;
protected final int bufferSize;
descriptor: I
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
protected final com.lmax.disruptor.WaitStrategy waitStrategy;
descriptor: Lcom/lmax/disruptor/WaitStrategy;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
protected final com.lmax.disruptor.Sequence cursor;
descriptor: Lcom/lmax/disruptor/Sequence;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
protected volatile com.lmax.disruptor.Sequence[] gatingSequences;
descriptor: [Lcom/lmax/disruptor/Sequence;
flags: (0x0044) ACC_PROTECTED, ACC_VOLATILE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=0, args_size=0
0: ldc Lcom/lmax/disruptor/AbstractSequencer;
ldc [Lcom/lmax/disruptor/Sequence;
ldc "gatingSequences"
invokestatic java.util.concurrent.atomic.AtomicReferenceFieldUpdater.newUpdater:(Ljava/lang/Class;Ljava/lang/Class;Ljava/lang/String;)Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
1: putstatic com.lmax.disruptor.AbstractSequencer.SEQUENCE_UPDATER:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
2: return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(int, com.lmax.disruptor.WaitStrategy);
descriptor: (ILcom/lmax/disruptor/WaitStrategy;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new com.lmax.disruptor.Sequence
dup
ldc -1
invokespecial com.lmax.disruptor.Sequence.<init>:(J)V
putfield com.lmax.disruptor.AbstractSequencer.cursor:Lcom/lmax/disruptor/Sequence;
2: aload 0
iconst_0
anewarray com.lmax.disruptor.Sequence
putfield com.lmax.disruptor.AbstractSequencer.gatingSequences:[Lcom/lmax/disruptor/Sequence;
3: iload 1
iconst_1
if_icmpge 5
4: new java.lang.IllegalArgumentException
dup
ldc "bufferSize must not be less than 1"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals: com.lmax.disruptor.AbstractSequencer int com.lmax.disruptor.WaitStrategy
StackMap stack:
iload 1
invokestatic java.lang.Integer.bitCount:(I)I
iconst_1
if_icmpeq 7
6: new java.lang.IllegalArgumentException
dup
ldc "bufferSize must be a power of 2"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
7: StackMap locals:
StackMap stack:
aload 0
iload 1
putfield com.lmax.disruptor.AbstractSequencer.bufferSize:I
8: aload 0
aload 2
putfield com.lmax.disruptor.AbstractSequencer.waitStrategy:Lcom/lmax/disruptor/WaitStrategy;
9: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lcom/lmax/disruptor/AbstractSequencer;
0 10 1 bufferSize I
0 10 2 waitStrategy Lcom/lmax/disruptor/WaitStrategy;
MethodParameters:
Name Flags
bufferSize
waitStrategy
public final long getCursor();
descriptor: ()J
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield com.lmax.disruptor.AbstractSequencer.cursor:Lcom/lmax/disruptor/Sequence;
invokevirtual com.lmax.disruptor.Sequence.get:()J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/lmax/disruptor/AbstractSequencer;
public final int getBufferSize();
descriptor: ()I
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.lmax.disruptor.AbstractSequencer.bufferSize:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/lmax/disruptor/AbstractSequencer;
public final void addGatingSequences(com.lmax.disruptor.Sequence[]);
descriptor: ([Lcom/lmax/disruptor/Sequence;)V
flags: (0x0091) ACC_PUBLIC, ACC_FINAL, ACC_VARARGS
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getstatic com.lmax.disruptor.AbstractSequencer.SEQUENCE_UPDATER:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
aload 0
aload 1
invokestatic com.lmax.disruptor.SequenceGroups.addSequences:(Ljava/lang/Object;Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;Lcom/lmax/disruptor/Cursored;[Lcom/lmax/disruptor/Sequence;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/lmax/disruptor/AbstractSequencer;
0 2 1 gatingSequences [Lcom/lmax/disruptor/Sequence;
MethodParameters:
Name Flags
gatingSequences
public boolean removeGatingSequence(com.lmax.disruptor.Sequence);
descriptor: (Lcom/lmax/disruptor/Sequence;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getstatic com.lmax.disruptor.AbstractSequencer.SEQUENCE_UPDATER:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
aload 1
invokestatic com.lmax.disruptor.SequenceGroups.removeSequence:(Ljava/lang/Object;Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;Lcom/lmax/disruptor/Sequence;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/lmax/disruptor/AbstractSequencer;
0 1 1 sequence Lcom/lmax/disruptor/Sequence;
MethodParameters:
Name Flags
sequence
public long getMinimumSequence();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield com.lmax.disruptor.AbstractSequencer.gatingSequences:[Lcom/lmax/disruptor/Sequence;
aload 0
getfield com.lmax.disruptor.AbstractSequencer.cursor:Lcom/lmax/disruptor/Sequence;
invokevirtual com.lmax.disruptor.Sequence.get:()J
invokestatic com.lmax.disruptor.util.Util.getMinimumSequence:([Lcom/lmax/disruptor/Sequence;J)J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/lmax/disruptor/AbstractSequencer;
public com.lmax.disruptor.SequenceBarrier newBarrier(com.lmax.disruptor.Sequence[]);
descriptor: ([Lcom/lmax/disruptor/Sequence;)Lcom/lmax/disruptor/SequenceBarrier;
flags: (0x0081) ACC_PUBLIC, ACC_VARARGS
Code:
stack=6, locals=2, args_size=2
start local 0 start local 1 0: new com.lmax.disruptor.ProcessingSequenceBarrier
dup
aload 0
aload 0
getfield com.lmax.disruptor.AbstractSequencer.waitStrategy:Lcom/lmax/disruptor/WaitStrategy;
aload 0
getfield com.lmax.disruptor.AbstractSequencer.cursor:Lcom/lmax/disruptor/Sequence;
aload 1
invokespecial com.lmax.disruptor.ProcessingSequenceBarrier.<init>:(Lcom/lmax/disruptor/Sequencer;Lcom/lmax/disruptor/WaitStrategy;Lcom/lmax/disruptor/Sequence;[Lcom/lmax/disruptor/Sequence;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/lmax/disruptor/AbstractSequencer;
0 1 1 sequencesToTrack [Lcom/lmax/disruptor/Sequence;
MethodParameters:
Name Flags
sequencesToTrack
public <T> com.lmax.disruptor.EventPoller<T> newPoller(com.lmax.disruptor.DataProvider<T>, com.lmax.disruptor.Sequence[]);
descriptor: (Lcom/lmax/disruptor/DataProvider;[Lcom/lmax/disruptor/Sequence;)Lcom/lmax/disruptor/EventPoller;
flags: (0x0081) ACC_PUBLIC, ACC_VARARGS
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
aload 0
new com.lmax.disruptor.Sequence
dup
invokespecial com.lmax.disruptor.Sequence.<init>:()V
aload 0
getfield com.lmax.disruptor.AbstractSequencer.cursor:Lcom/lmax/disruptor/Sequence;
aload 2
invokestatic com.lmax.disruptor.EventPoller.newInstance:(Lcom/lmax/disruptor/DataProvider;Lcom/lmax/disruptor/Sequencer;Lcom/lmax/disruptor/Sequence;Lcom/lmax/disruptor/Sequence;[Lcom/lmax/disruptor/Sequence;)Lcom/lmax/disruptor/EventPoller;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/lmax/disruptor/AbstractSequencer;
0 1 1 dataProvider Lcom/lmax/disruptor/DataProvider<TT;>;
0 1 2 gatingSequences [Lcom/lmax/disruptor/Sequence;
Signature: <T:Ljava/lang/Object;>(Lcom/lmax/disruptor/DataProvider<TT;>;[Lcom/lmax/disruptor/Sequence;)Lcom/lmax/disruptor/EventPoller<TT;>;
MethodParameters:
Name Flags
dataProvider
gatingSequences
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
ldc "AbstractSequencer{waitStrategy="
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
1: aload 0
getfield com.lmax.disruptor.AbstractSequencer.waitStrategy:Lcom/lmax/disruptor/WaitStrategy;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
2: ldc ", cursor="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield com.lmax.disruptor.AbstractSequencer.cursor:Lcom/lmax/disruptor/Sequence;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
3: ldc ", gatingSequences="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield com.lmax.disruptor.AbstractSequencer.gatingSequences:[Lcom/lmax/disruptor/Sequence;
invokestatic java.util.Arrays.toString:([Ljava/lang/Object;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
4: bipush 125
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
5: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lcom/lmax/disruptor/AbstractSequencer;
}
SourceFile: "AbstractSequencer.java"