Package io.datareplication.consumer
Class StreamingPage.Chunk.BodyChunk<EntityHeader>
- java.lang.Object
-
- io.datareplication.consumer.StreamingPage.Chunk<EntityHeader>
-
- io.datareplication.consumer.StreamingPage.Chunk.BodyChunk<EntityHeader>
-
- Type Parameters:
EntityHeader- the type of the entity headers; seeEntity
- Enclosing class:
- StreamingPage.Chunk<EntityHeader>
public static final class StreamingPage.Chunk.BodyChunk<EntityHeader> extends StreamingPage.Chunk<EntityHeader>
A block of data of the current entity's body.
May be followed by:
StreamingPage.Chunk.BodyChunk: further body bytesStreamingPage.Chunk.BodyEnd: when the end of the entity's body is reached
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class io.datareplication.consumer.StreamingPage.Chunk
StreamingPage.Chunk.BodyChunk<EntityHeader>, StreamingPage.Chunk.BodyEnd<EntityHeader>, StreamingPage.Chunk.Header<EntityHeader>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(java.lang.Object other)@NonNull java.nio.ByteBufferdata()The chunk's byte data.booleanequals(java.lang.Object o)inthashCode()java.lang.StringtoString()-
Methods inherited from class io.datareplication.consumer.StreamingPage.Chunk
bodyChunk, bodyEnd, header
-
-
-
-
Method Detail
-
data
@NonNull public @NonNull java.nio.ByteBuffer data()
The chunk's byte data. The ByteBuffer will have its entire capacity used (i.e.Buffer.position()== 0 and== capacity). When returned fromStreamingPage, the buffer will not be shared and may be freely modified.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-