Enum ThreadAffinityConfigure.AffinityType

    • Enum Constant Detail

      • CPU_LAST_MINUS

        public static final ThreadAffinityConfigure.AffinityType CPU_LAST_MINUS
        Use AffinityLock.acquireLockLastMinus(int n to allocate a CPU from the end of the core set based on the given positive number. Requires property CPU index is set.
      • CPU_ID

        public static final ThreadAffinityConfigure.AffinityType CPU_ID
        Use AffinityLock.acquireLock(int cpuId to assign a CPU with specified identifier to thread. Requires CPU identifier is set.
      • CPU_STRATEGIES

        public static final ThreadAffinityConfigure.AffinityType CPU_STRATEGIES
        Use AffinityLock.acquireLock(AffinityStrategies...) to assign a CPU for thread affinity. Selects a CPU for thread affinity based on the given selection strategies. Requires selection strategy types are set. Strategy order is significant and AffinityStrategies.ANY must be the final strategy type.
    • Method Detail

      • values

        public static ThreadAffinityConfigure.AffinityType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ThreadAffinityConfigure.AffinityType c : ThreadAffinityConfigure.AffinityType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ThreadAffinityConfigure.AffinityType valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null