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.jboss.netty.util
Interface ThreadNameDeterminer

    public interface ThreadNameDeterminer

Overrides the thread name proposed by `ThreadRenamingRunnable`.

Version:
  $Rev: 2080 $, $Date: 2010-01-26 18:04:19 +0900 (Tue, 26 Jan 2010) $
Author:
  The Netty Project, Trustin Lee

Field Summary
`static ThreadNameDeterminer` | `CURRENT` `ThreadNameDeterminer` that rejects the proposed thread name and retains the current one.
`static ThreadNameDeterminer` | `PROPOSED` `ThreadNameDeterminer` that accepts the proposed thread name as is.

Method Summary
`String` | `determineThreadName(String currentThreadName, String proposedThreadName)` Overrides the thread name proposed by `ThreadRenamingRunnable`.

Field Detail

### PROPOSED

    static final ThreadNameDeterminer PROPOSED

  `ThreadNameDeterminer` that accepts the proposed thread name as is.

### CURRENT

    static final ThreadNameDeterminer CURRENT

  `ThreadNameDeterminer` that rejects the proposed thread name and retains the current one.

Method Detail

### determineThreadName

    String determineThreadName(String currentThreadName,
                               String proposedThreadName)
                               throws Exception

  Overrides the thread name proposed by `ThreadRenamingRunnable`.

  Parameters:
    `currentThreadName` - the current thread name
    `proposedThreadName` - the proposed new thread name
  Returns:
    the actual new thread name. If `null` is returned, the proposed thread name is discarded (i.e. no rename).
  Throws:
    `Exception`

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 © 2008-2010 JBoss, a division of Red Hat, Inc.. All Rights Reserved.