public abstract class BasicAffinityManager extends Object implements AffinityManager
Constructor and Description |
---|
BasicAffinityManager() |
Modifier and Type | Method and Description |
---|---|
void |
attachThreadToDevice(long threadId,
Integer deviceId)
This method attaches specified thread (by Id) to specified device
|
void |
attachThreadToDevice(Thread thread,
Integer deviceId)
This method attaches specified thread to specified device
|
Integer |
getDeviceForCurrentThread()
This method returns deviceId for current thread
|
Integer |
getDeviceForThread(long threadId)
This method returns
|
Integer |
getDeviceForThread(Thread thread)
This method returns deviceId for specified thread
|
public Integer getDeviceForCurrentThread()
AffinityManager
getDeviceForCurrentThread
in interface AffinityManager
public Integer getDeviceForThread(Thread thread)
AffinityManager
getDeviceForThread
in interface AffinityManager
public Integer getDeviceForThread(long threadId)
AffinityManager
getDeviceForThread
in interface AffinityManager
public void attachThreadToDevice(Thread thread, Integer deviceId)
AffinityManager
attachThreadToDevice
in interface AffinityManager
public void attachThreadToDevice(long threadId, Integer deviceId)
AffinityManager
attachThreadToDevice
in interface AffinityManager
threadId
- java ID of the threadCopyright © 2016. All Rights Reserved.