Package io.camunda.zeebe.dispatcher
Class BlockPeek
java.lang.Object
io.camunda.zeebe.dispatcher.BlockPeek
- All Implemented Interfaces:
Iterable<org.agrona.DirectBuffer>
Represents a block of fragments to read from.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected final BlockPeek.DataFrameIteratorprotected int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintorg.agrona.MutableDirectBufferReturns the buffer to read from.intintIterator<org.agrona.DirectBuffer>iterator()voidFinish reading and consume the fragments (i.e.voidFinish reading and consume the fragments (i.e.voidsetBlock(ByteBuffer byteBuffer, AtomicPosition position, ActorCondition dataConsumed, int streamId, int bufferOffset, int blockLength, int newPartitionId, int newPartitionOffset) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
streamId
protected int streamId -
blockLength
protected int blockLength -
iterator
-
-
Constructor Details
-
BlockPeek
public BlockPeek()
-
-
Method Details
-
setBlock
public void setBlock(ByteBuffer byteBuffer, AtomicPosition position, ActorCondition dataConsumed, int streamId, int bufferOffset, int blockLength, int newPartitionId, int newPartitionOffset) -
getRawBuffer
-
getBuffer
public org.agrona.MutableDirectBuffer getBuffer()Returns the buffer to read from. -
markFailed
public void markFailed()Finish reading and consume the fragments (i.e. update the subscription position). Mark all fragments as failed. -
markCompleted
public void markCompleted()Finish reading and consume the fragments (i.e. update the subscription position). -
getStreamId
public int getStreamId() -
getBufferOffset
public int getBufferOffset() -
getBlockLength
public int getBlockLength() -
iterator
-