Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.cassandra.concurrent
Class NamedThreadFactory

    java.lang.Object
      org.apache.cassandra.concurrent.NamedThreadFactory

All Implemented Interfaces:
  java.util.concurrent.ThreadFactory

    public class NamedThreadFactory

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

This class is an implementation of the ThreadFactory interface. This is useful to give Java threads meaningful names which is useful when using a tool like JConsole.

Field Summary
`protected java.lang.String` | `id`
`protected java.util.concurrent.atomic.AtomicInteger` | `n`

Constructor Summary
`NamedThreadFactory(java.lang.String id)`
`NamedThreadFactory(java.lang.String id, int priority)`

Method Summary
`java.lang.Thread` | `newThread(java.lang.Runnable runnable)`

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

Field Detail

### id

    protected final java.lang.String id

### n

    protected final java.util.concurrent.atomic.AtomicInteger n

Constructor Detail

### NamedThreadFactory

    public NamedThreadFactory(java.lang.String id)

### NamedThreadFactory

    public NamedThreadFactory(java.lang.String id,
                              int priority)

Method Detail

### newThread

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

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

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2013 The Apache Software Foundation