JXTA

net.jxta.impl.peergroup
Class GenericPeerGroup.PeerGroupThreadFactory

java.lang.Object
  extended by net.jxta.impl.peergroup.GenericPeerGroup.PeerGroupThreadFactory
All Implemented Interfaces:
ThreadFactory
Enclosing class:
GenericPeerGroup

static class GenericPeerGroup.PeerGroupThreadFactory
extends Object
implements ThreadFactory

Our thread factory that adds the threads to our thread group and names the thread to something recognizable.


Field Summary
(package private)  String name
           
(package private)  ThreadGroup threadgroup
           
(package private)  AtomicInteger threadNumber
           
 
Constructor Summary
GenericPeerGroup.PeerGroupThreadFactory(String name, ThreadGroup threadgroup)
           
 
Method Summary
 Thread newThread(Runnable runnable)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

threadNumber

final AtomicInteger threadNumber

name

final String name

threadgroup

final ThreadGroup threadgroup
Constructor Detail

GenericPeerGroup.PeerGroupThreadFactory

GenericPeerGroup.PeerGroupThreadFactory(String name,
                                        ThreadGroup threadgroup)
Method Detail

newThread

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

JXSE