com.hazelcast.instance
Class HazelcastThreadGroup

java.lang.Object
  extended by com.hazelcast.instance.HazelcastThreadGroup

public final class HazelcastThreadGroup
extends Object

A wrapper around the ThreadGroup that provides some additional capabilities. It is a grouping of all thread creational logic throughout the system. To access the actual ThreadGroup, call getInternalThreadGroup().


Constructor Summary
HazelcastThreadGroup(String name, ILogger logger, ClassLoader classLoader)
           
 
Method Summary
 void destroy()
          Destroys all threads in this ThreadGroup.
 ClassLoader getClassLoader()
          Returns the ClassLoader used by threads of this HazelcastThreadGroup.
 ThreadGroup getInternalThreadGroup()
          Gets the internal ThreadGroup; so the actual ThreadGroup object.
 String getThreadNamePrefix(String name)
          Gets the threadname prefix.
 String getThreadPoolNamePrefix(String poolName)
          Gets the threadpool prefix for a given poolname.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HazelcastThreadGroup

public HazelcastThreadGroup(String name,
                            ILogger logger,
                            ClassLoader classLoader)
Method Detail

getThreadNamePrefix

public String getThreadNamePrefix(String name)
Gets the threadname prefix.

Parameters:
name - the basic name of the thread.
Returns:
the created threadname prefix.
Throws:
NullPointerException - if name is null.

getThreadPoolNamePrefix

public String getThreadPoolNamePrefix(String poolName)
Gets the threadpool prefix for a given poolname.

Parameters:
poolName - the name of the pool.
Returns:
the threadpool prefix.
Throws:
NullPointerException - if poolname is null.

getClassLoader

public ClassLoader getClassLoader()
Returns the ClassLoader used by threads of this HazelcastThreadGroup.

Returns:
the ClassLoader.

getInternalThreadGroup

public ThreadGroup getInternalThreadGroup()
Gets the internal ThreadGroup; so the actual ThreadGroup object.

Returns:
the internal ThreadGroup.

destroy

public void destroy()
Destroys all threads in this ThreadGroup.



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