JavaScript is disabled on your browser.
Skip navigation links
  • Summary:
  • Nested |
  • Field |
  • Constr |
  • Method
  • Detail:
  • Field |
  • Constr |
  • Method
io.netty.util

Class NettyRuntime



  • public final class NettyRuntime
    extends Object 
    A utility class for wrapping calls to Runtime.
    • Method Detail

      • setAvailableProcessors

        public static void setAvailableProcessors(int availableProcessors)
        Set the number of available processors.
        Parameters:
        availableProcessors - the number of available processors
        Throws:
        IllegalArgumentException - if the specified number of available processors is non-positive
        IllegalStateException - if the number of available processors is already configured
      • availableProcessors

        public static int availableProcessors()
        Get the configured number of available processors. The default is Runtime.availableProcessors(). This can be overridden by setting the system property "io.netty.availableProcessors" or by invoking setAvailableProcessors(int) before any calls to this method.
        Returns:
        the configured number of available processors
Skip navigation links
  • Summary:
  • Nested |
  • Field |
  • Constr |
  • Method
  • Detail:
  • Field |
  • Constr |
  • Method

Copyright © 2008–2025 The Netty Project. All rights reserved.

AltStyle によって変換されたページ (->オリジナル) /