Package org.ametys.core.observation
Class ObservationManager.AsyncObserveThreadFactory
- java.lang.Object
-
- org.ametys.core.observation.ObservationManager.AsyncObserveThreadFactory
-
- All Implemented Interfaces:
ThreadFactory
- Enclosing class:
- ObservationManager
static class ObservationManager.AsyncObserveThreadFactory extends Object implements ThreadFactory
Thread factory for async observers. Set the thread name format and marks the thread as daemon.
-
-
Field Summary
Fields Modifier and Type Field Description private static AtomicLong
_count
private static ThreadFactory
_defaultThreadFactory
private static String
_nameFormat
-
Constructor Summary
Constructors Constructor Description AsyncObserveThreadFactory()
-
-
-
Field Detail
-
_defaultThreadFactory
private static ThreadFactory _defaultThreadFactory
-
_nameFormat
private static String _nameFormat
-
_count
private static AtomicLong _count
-
-
Constructor Detail
-
AsyncObserveThreadFactory
public AsyncObserveThreadFactory()
-
-
Method Detail
-
newThread
public Thread newThread(Runnable r)
- Specified by:
newThread
in interfaceThreadFactory
-
-