net.jxta.impl.peergroup
Class GenericPeerGroup.PeerGroupThreadFactory
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
threadNumber
final AtomicInteger threadNumber
name
final String name
threadgroup
final ThreadGroup threadgroup
GenericPeerGroup.PeerGroupThreadFactory
GenericPeerGroup.PeerGroupThreadFactory(String name,
ThreadGroup threadgroup)
newThread
public Thread newThread(Runnable runnable)
- Specified by:
newThread
in interface ThreadFactory