Class IoUringBufferRingConfig.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • bufferGroupId

        public IoUringBufferRingConfig.Builder bufferGroupId​(short bgId)
        Set the buffer group id to use.
        Parameters:
        bgId - The buffer group id to use.
        Returns:
        This builder.
      • bufferRingSize

        public IoUringBufferRingConfig.Builder bufferRingSize​(short bufferRingSize)
        Set the size of the ring.
        Parameters:
        bufferRingSize - The size of the ring.
        Returns:
        This builder.
      • batchSize

        public IoUringBufferRingConfig.Builder batchSize​(int batchSize)
        Set the size of the batch on how many buffers are added everytime we need to expand the buffer ring.
        Parameters:
        batchSize - The batch size.
        Returns:
        This builder.
      • batchAllocation

        public IoUringBufferRingConfig.Builder batchAllocation​(boolean batchAllocation)
        Set allocation strategy that is used to allocate ByteBufs.
        Parameters:
        batchAllocation - true if the ring should always be filled via a batch allocation or false if we will try to allocate a new ByteBuf as soon as we used a buffer from the ring.
        Returns:
        This builder.
      • incremental

        public IoUringBufferRingConfig.Builder incremental​(boolean incremental)
        Set if incremental mode should be used for the buffer ring.
        Parameters:
        incremental - true if incremental mode is used, false otherwise.
        Returns:
        This builder.