Class GridNioServerBuffer
- java.lang.Object
-
- org.apache.ignite.internal.util.nio.GridNioServerBuffer
-
public class GridNioServerBuffer extends Object
NIO server buffer.
-
-
Constructor Summary
Constructors Constructor Description GridNioServerBuffer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]data()Get data withing the buffer.booleanisFilled()Checks whether the byte array is filled.@org.jetbrains.annotations.Nullable byte[]read(ByteBuffer buf)voidreset()
-
-
-
Method Detail
-
reset
public void reset()
-
isFilled
public boolean isFilled()
Checks whether the byte array is filled.- Returns:
- Flag indicating whether byte array is filled or not.
-
data
public byte[] data()
Get data withing the buffer.- Returns:
- Data.
-
read
@Nullable public @org.jetbrains.annotations.Nullable byte[] read(ByteBuffer buf) throws IgniteCheckedException
- Parameters:
buf- Buffer.- Returns:
- Message bytes or
nullif message is not fully read yet. - Throws:
IgniteCheckedException- If failed to parse message.
-
-