Top Description Fields Constructors Methods
org.javamoney.moneta.spi.loader

public final Enum DaemonThreadFactory

extends Enum<DaemonThreadFactory>
implements ThreadFactory
Class Inheritance
All Implemented Interfaces
java.util.concurrent.ThreadFactory
Imports
java.util.concurrent.Executors, .ThreadFactory

Decorator to Executors#defaultThreadFactory() that make thread as daemon.

Set Thread#setDaemon(boolean) as true
Author
Otavio Santana
See Also
Thread

Field Summary

Modifier and TypeField and Description
public static final DaemonThreadFactory
INSTANCE

The singleton instance to DaemonThreadFactory

private final ThreadFactory

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public Thread
newThread(Runnable runnable)

Implements java.util.concurrent.ThreadFactory.newThread.

Constructs a new unstarted Thread to run the given runnable.

public static DaemonThreadFactory
public static DaemonThreadFactory[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

INSTANCEback to summary
public static final DaemonThreadFactory INSTANCE

The singleton instance to DaemonThreadFactory

threadFactoryback to summary
private final ThreadFactory threadFactory

Constructor Detail

DaemonThreadFactoryback to summary
private DaemonThreadFactory()

Method Detail

newThreadback to summary
public Thread newThread(Runnable runnable)

Implements java.util.concurrent.ThreadFactory.newThread.

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

Constructs a new unstarted Thread to run the given runnable.

Annotations
@Override
valueOfback to summary
public static DaemonThreadFactory valueOf(String name)
valuesback to summary
public static DaemonThreadFactory[] values()