public enum AffinityStrategies extends Enum<AffinityStrategies> implements AffinityStrategy
Enum Constant and Description |
---|
ANY
Any free cpu.
|
DIFFERENT_CORE
Must be a cpu on any other core (or socket)
|
DIFFERENT_SOCKET
Must be a cpu on any other socket.
|
SAME_CORE
Must be a cpu on the same core.
|
SAME_SOCKET
Must be a cpu on the same socket/chip but different core.
|
Modifier and Type | Method and Description |
---|---|
static AffinityStrategies |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AffinityStrategies[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
matches
public static final AffinityStrategies ANY
public static final AffinityStrategies SAME_CORE
public static final AffinityStrategies SAME_SOCKET
public static final AffinityStrategies DIFFERENT_CORE
public static final AffinityStrategies DIFFERENT_SOCKET
public static AffinityStrategies[] values()
for (AffinityStrategies c : AffinityStrategies.values()) System.out.println(c);
public static AffinityStrategies valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2018. All rights reserved.