Class IoUringIoHandlerConfig

    • Constructor Detail

      • IoUringIoHandlerConfig

        public IoUringIoHandlerConfig()
    • Method Detail

      • getRingSize

        public int getRingSize()
        Return the ring size of the io_uring instance.
        Returns:
        the ring size of the io_uring instance.
      • getCqSize

        public int getCqSize()
        Return the size of the io_uring cqe.
        Returns:
        the cq size of the io_uring.
      • getMaxBoundedWorker

        public int getMaxBoundedWorker()
        Return the maximum number of bounded iowq worker threads.
        Returns:
        the maximum number of bounded iowq worker threads.
      • getMaxUnboundedWorker

        public int getMaxUnboundedWorker()
        Return the maximum number of unbounded iowq worker threads.
        Returns:
        the maximum number of unbounded iowq worker threads.
      • setRingSize

        public IoUringIoHandlerConfig setRingSize​(int ringSize)
        Set the ring size of the io_uring instance.
        Parameters:
        ringSize - the ring size of the io_uring instance.
        Returns:
        reference to this, so the API can be used fluently
      • setCqSize

        public IoUringIoHandlerConfig setCqSize​(int cqSize)
        Set the size of the io_uring cqe.
        Parameters:
        cqSize - the size of the io_uring cqe.
        Returns:
        reference to this, so the API can be used fluently
        Throws:
        java.lang.IllegalArgumentException - if cqSize is less than ringSize, or not a power of 2
      • setMaxBoundedWorker

        public IoUringIoHandlerConfig setMaxBoundedWorker​(int maxBoundedWorker)
        Set the maximum number of bounded iowq worker threads.
        Parameters:
        maxBoundedWorker - the maximum number of bounded iowq worker threads, or 0 for the Linux kernel default
        Returns:
        reference to this, so the API can be used fluently
      • setMaxUnboundedWorker

        public IoUringIoHandlerConfig setMaxUnboundedWorker​(int maxUnboundedWorker)
        Set the maximum number of unbounded iowq worker threads.
        Parameters:
        maxUnboundedWorker - the maximum number of unbounded iowq worker threads, of 0 for the Linux kernel default
        Returns:
        reference to this, so the API can be used fluently
      • getBufferRingConfigs

        public java.util.List<IoUringBufferRingConfig> getBufferRingConfigs()
        Get the list of buffer ring configurations.
        Returns:
        the copy of buffer ring configurations.