public interface ThreadNameDeterminer
ThreadRenamingRunnable
.Modifier and Type | Field and Description |
---|---|
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. |
Modifier and Type | Method and Description |
---|---|
String |
determineThreadName(String currentThreadName,
String proposedThreadName)
Overrides the thread name proposed by
ThreadRenamingRunnable . |
static final ThreadNameDeterminer PROPOSED
ThreadNameDeterminer
that accepts the proposed thread name
as is.static final ThreadNameDeterminer CURRENT
ThreadNameDeterminer
that rejects the proposed thread name and
retains the current one.String determineThreadName(String currentThreadName, String proposedThreadName) throws Exception
ThreadRenamingRunnable
.currentThreadName
- the current thread nameproposedThreadName
- the proposed new thread namenull
is returned, the proposed thread name is
discarded (i.e. no rename).Exception
Copyright © 2008-2015 The Netty Project. All Rights Reserved.