public final class Demons extends Object implements ThreadFactory
ThreadFactory
which allows to build daemon threads
within particular naming.Constructor and Description |
---|
Demons(String prn)
Ctor.
|
Demons(String prn,
org.cactoos.Scalar<ThreadFactory> fct,
AtomicLong trd)
Ctor.
|
public Demons(String prn)
prn
- The naming pattern which has '%s' symbol, which will be
replaced by the thread number.public Demons(String prn, org.cactoos.Scalar<ThreadFactory> fct, AtomicLong trd)
prn
- The naming pattern which has '%s' symbol, which will be
replaced by the thread number.fct
- Implementation of ThreadFactory
for allocating of new
threads.trd
- Amount of allocated threads.public Thread newThread(Runnable task)
newThread
in interface ThreadFactory
Copyright © 2019. All rights reserved.