com.hazelcast.util.executor
Class AbstractExecutorThreadFactory

java.lang.Object
  extended by com.hazelcast.util.executor.AbstractExecutorThreadFactory
All Implemented Interfaces:
ThreadFactory
Direct Known Subclasses:
PoolExecutorThreadFactory, SingleExecutorThreadFactory

public abstract class AbstractExecutorThreadFactory
extends Object
implements ThreadFactory


Field Summary
protected  ClassLoader classLoader
           
protected  ThreadGroup threadGroup
           
 
Constructor Summary
AbstractExecutorThreadFactory(ThreadGroup threadGroup, ClassLoader classLoader)
           
 
Method Summary
protected abstract  Thread createThread(Runnable r)
           
 Thread newThread(Runnable r)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

classLoader

protected final ClassLoader classLoader

threadGroup

protected final ThreadGroup threadGroup
Constructor Detail

AbstractExecutorThreadFactory

public AbstractExecutorThreadFactory(ThreadGroup threadGroup,
                                     ClassLoader classLoader)
Method Detail

newThread

public final Thread newThread(Runnable r)
Specified by:
newThread in interface ThreadFactory

createThread

protected abstract Thread createThread(Runnable r)


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