Class GridNioServerBuffer


  • public class GridNioServerBuffer
    extends Object
    NIO server buffer.
    • Constructor Detail

      • GridNioServerBuffer

        public GridNioServerBuffer()
    • 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 null if message is not fully read yet.
        Throws:
        IgniteCheckedException - If failed to parse message.