ThreadGroupFactory (Hyperic HQ Plugin API)
Keywords: org.hyperic.util.thread.ThreadGroupFactory class

Overview | Package | Class | Tree | Deprecated | Index | Help
| Hyperic HQ Plugin API v. 4.4.0.2
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.hyperic.util.thread
Class ThreadGroupFactory

    java.lang.Object
      org.hyperic.util.thread.ThreadGroupFactory

All Implemented Interfaces:
  java.util.concurrent.ThreadFactory

    public class ThreadGroupFactory

extends java.lang.Object
implements java.util.concurrent.ThreadFactory

Constructor Summary
`ThreadGroupFactory(java.lang.String namePrefix)` Creates an instance where the threads created by this factory are assigned to the current thread's ThreadGroup.
`ThreadGroupFactory(java.lang.ThreadGroup group, java.lang.String namePrefix)` Creates an instance where the threads created by this factory are assigned to the specified ThreadGroup.

Method Summary
`void` | `createDaemonThreads(boolean daemonThreads)` Set the threads created by this factory to be daemon threads.
`java.lang.Thread` | `newThread(java.lang.Runnable r)`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### ThreadGroupFactory

    public ThreadGroupFactory(java.lang.ThreadGroup group,
                              java.lang.String namePrefix)

  Creates an instance where the threads created by this factory are assigned to the specified ThreadGroup.

  Parameters:
    `group` - The ThreadGroup.
    `namePrefix` - The name prefix for each thread created by this factory.

### ThreadGroupFactory

    public ThreadGroupFactory(java.lang.String namePrefix)

  Creates an instance where the threads created by this factory are assigned to the current thread's ThreadGroup.

  Parameters:
    `namePrefix` - The name prefix for each thread created by this factory.

Method Detail

### createDaemonThreads

    public void createDaemonThreads(boolean daemonThreads)

  Set the threads created by this factory to be daemon threads.

  Parameters:
    `daemonThreads` - `true` to set threads created by this factory to be daemon threads.

### newThread

    public java.lang.Thread newThread(java.lang.Runnable r)

  Specified by:
    `newThread` in interface `java.util.concurrent.ThreadFactory`

Overview | Package | Class | Tree | Deprecated | Index | Help
| Hyperic HQ Plugin API v. 4.4.0.2
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2004-2006 Hyperic, Inc. support@hyperic.net, All Rights Reserved.