public interface ThreadNameDeterminer
ThreadRenamingRunnable
.限定符和类型 | 字段和说明 |
---|---|
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. |
限定符和类型 | 方法和说明 |
---|---|
java.lang.String |
determineThreadName(java.lang.String currentThreadName,
java.lang.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.java.lang.String determineThreadName(java.lang.String currentThreadName, java.lang.String proposedThreadName) throws java.lang.Exception
ThreadRenamingRunnable
.currentThreadName
- the current thread nameproposedThreadName
- the proposed new thread namenull
is returned, the proposed thread name is
discarded (i.e. no rename).java.lang.Exception