com.lmax.disruptor
Class SequenceBatch

java.lang.Object
  extended by com.lmax.disruptor.SequenceBatch

public final class SequenceBatch
extends java.lang.Object

Used to record the batch of sequences claimed in a RingBuffer.


Constructor Summary
SequenceBatch(int size)
          Create a holder for tracking a batch of claimed sequences in a RingBuffer
 
Method Summary
 long getEnd()
          Get the end sequence of a batch.
 int getSize()
          Get the size of the batch.
 long getStart()
          Get the starting sequence for a batch.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SequenceBatch

public SequenceBatch(int size)
Create a holder for tracking a batch of claimed sequences in a RingBuffer

Parameters:
size - of the batch to claim.
Method Detail

getEnd

public long getEnd()
Get the end sequence of a batch.

Returns:
the end sequence in a batch

getSize

public int getSize()
Get the size of the batch.

Returns:
the size of the batch.

getStart

public long getStart()
Get the starting sequence for a batch.

Returns:
the starting sequence of a batch.


Copyright © 2011 LMAX Ltd. All Rights Reserved.