com.hazelcast.util
Class ThreadUtil

java.lang.Object
  extended by com.hazelcast.util.ThreadUtil

public final class ThreadUtil
extends Object

Utility class to manipulate and query thread id


Method Summary
static long getThreadId()
          Get the thread id
static void removeThreadId()
          Remove the thread id
static void setThreadId(long threadId)
          Set the thread id
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getThreadId

public static long getThreadId()
Get the thread id

Returns:
the thread id

setThreadId

public static void setThreadId(long threadId)
Set the thread id

Parameters:
threadId - thread id to set

removeThreadId

public static void removeThreadId()
Remove the thread id



Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.