public enum AffinitySupport extends Enum<AffinitySupport>
| Modifier and Type | Method and Description |
|---|---|
static AffinityLock |
acquireCore() |
static AffinityLock |
acquireCore(boolean bind) |
static AffinityLock |
acquireLock() |
static AffinityLock |
acquireLock(boolean bind) |
static long |
getAffinity() |
static IAffinity |
getAffinityImpl() |
static int |
getCpu() |
static int |
getThreadId() |
static boolean |
isJNAAvailable() |
static void |
setAffinity(long affinity) |
static void |
setThreadId() |
static AffinitySupport |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AffinitySupport[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static AffinitySupport[] values()
for (AffinitySupport c : AffinitySupport.values()) System.out.println(c);
public static AffinitySupport 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 nullpublic static IAffinity getAffinityImpl()
public static long getAffinity()
public static void setAffinity(long affinity)
public static int getCpu()
public static int getThreadId()
public static boolean isJNAAvailable()
public static void setThreadId()
public static AffinityLock acquireLock()
public static AffinityLock acquireCore()
public static AffinityLock acquireLock(boolean bind)
public static AffinityLock acquireCore(boolean bind)
Copyright © 2015. All rights reserved.