Top Description Fields Constructors Methods
org.apache.sshd.common.util.threads

public Class SshdThreadFactory

extends AbstractLoggingBean
implements ThreadFactory
Class Inheritance
All Implemented Interfaces
java.util.concurrent.ThreadFactory
Imports
java.security.AccessController, .PrivilegedActionException, .PrivilegedExceptionAction, java.util.concurrent.ThreadFactory, java.util.concurrent.atomic.AtomicInteger, org.apache.sshd.common.util.logging.AbstractLoggingBean

Default ThreadFactory used by ThreadUtils to create thread pools if user did provide one
Author
Apache MINA SSHD Project

Field Summary

Modifier and TypeField and Description
private final ThreadGroup
private final String
private final AtomicInteger
Inherited from org.apache.sshd.common.util.logging.AbstractLoggingBean:
log

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Thread
newThread(Runnable
a runnable to be executed by new thread instance
r
)

Implements java.util.concurrent.ThreadFactory.newThread.

Constructs a new unstarted Thread to run the given runnable.

Inherited from org.apache.sshd.common.util.logging.AbstractLoggingBean:
debugdebugdebugdebugdebugerrorerrorerrorerrorerrorgetSimplifiedLoggerinfoinfowarnwarnwarnwarnwarnwarnwarnwarn

Field Detail

groupback to summary
private final ThreadGroup group
namePrefixback to summary
private final String namePrefix
threadNumberback to summary
private final AtomicInteger threadNumber

Constructor Detail

SshdThreadFactoryback to summary
public SshdThreadFactory(String name)

Method Detail

newThreadback to summary
public Thread newThread(Runnable r)

Implements java.util.concurrent.ThreadFactory.newThread.

Doc from java.util.concurrent.ThreadFactory.newThread.

Constructs a new unstarted Thread to run the given runnable.

Parameters
r:Runnable

a runnable to be executed by new thread instance

Returns:Thread

constructed thread, or null if the request to create a thread is rejected

Annotations
@Override