public final class ThreadUtil extends Object
| Modifier and Type | Method and Description | 
|---|---|
| static void | assertRunningOnPartitionThread() | 
| static String | createThreadName(String hzName,
                String name)Creates the threadname with prefix and notation. | 
| static String | createThreadPoolName(String hzName,
                    String poolName)Creates the threadpool name with prefix and notation. | 
| static long | getThreadId()Get the thread ID. | 
| static void | removeThreadId()Remove the thread ID. | 
| static void | setThreadId(long threadId)Set the thread ID. | 
public static long getThreadId()
public static void setThreadId(long threadId)
threadId - thread ID to setpublic static void removeThreadId()
public static String createThreadName(String hzName, String name)
hzName - the name of the hazelcast instancename - the basic name of the threadNullPointerException - if name is null.public static String createThreadPoolName(String hzName, String poolName)
hzName - the name of the hazelcast instancepoolName - the name of the pool.NullPointerException - if poolname is null.public static void assertRunningOnPartitionThread()
Copyright © 2022 Hazelcast, Inc.. All Rights Reserved.