public interface AffinityManager
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
|
Integer getDeviceForCurrentThread()
Integer getDeviceForThread(Thread thread)
thread
- Integer getDeviceForThread(long threadId)
threadId
- void attachThreadToDevice(Thread thread, Integer deviceId)
thread
- deviceId
- void attachThreadToDevice(long threadId, Integer deviceId)
threadId
- java ID of the threaddeviceId
- Copyright © 2016. All Rights Reserved.