| Modifier and Type | Class and Description |
|---|---|
protected class |
BlockPeek.DataFrameIterator |
| Modifier and Type | Field and Description |
|---|---|
protected int |
blockLength |
protected int |
bufferOffset |
protected org.agrona.concurrent.UnsafeBuffer |
bufferView |
protected ByteBuffer |
byteBuffer |
protected BlockPeek.DataFrameIterator |
iterator |
protected int |
newPartitionId |
protected int |
newPartitionOffset |
protected int |
streamId |
protected AtomicPosition |
subscriberPosition |
| Constructor and Description |
|---|
BlockPeek() |
| Modifier and Type | Method and Description |
|---|---|
int |
getBlockLength() |
long |
getBlockPosition() |
org.agrona.MutableDirectBuffer |
getBuffer()
Returns the buffer to read from.
|
int |
getBufferOffset() |
ByteBuffer |
getRawBuffer() |
int |
getStreamId() |
Iterator<org.agrona.DirectBuffer> |
iterator() |
void |
markCompleted()
Finish reading and consume the fragments (i.e.
|
void |
markFailed()
Finish reading and consume the fragments (i.e.
|
void |
setBlock(ByteBuffer byteBuffer,
AtomicPosition position,
ActorCondition dataConsumed,
int streamId,
int bufferOffset,
int blockLength,
int newPartitionId,
int newPartitionOffset,
int fragmentCount,
Metric fragmentsConsumedMetric) |
protected void |
updatePosition() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorprotected ByteBuffer byteBuffer
protected org.agrona.concurrent.UnsafeBuffer bufferView
protected AtomicPosition subscriberPosition
protected int streamId
protected int bufferOffset
protected int blockLength
protected int newPartitionId
protected int newPartitionOffset
protected BlockPeek.DataFrameIterator iterator
public void setBlock(ByteBuffer byteBuffer, AtomicPosition position, ActorCondition dataConsumed, int streamId, int bufferOffset, int blockLength, int newPartitionId, int newPartitionOffset, int fragmentCount, Metric fragmentsConsumedMetric)
public ByteBuffer getRawBuffer()
public org.agrona.MutableDirectBuffer getBuffer()
public void markFailed()
public void markCompleted()
protected void updatePosition()
public int getStreamId()
public int getBufferOffset()
public int getBlockLength()
public long getBlockPosition()
Copyright © 2017–2018 camunda services GmbH. All rights reserved.