Class ExecutorUtils.LibraryThreadFactory
java.lang.Object
org.gcube.documentstore.persistence.ExecutorUtils.LibraryThreadFactory
- All Implemented Interfaces:
ThreadFactory
- Enclosing class:
- ExecutorUtils
Creates the library's daemon threads. When the library has credentials of its own
(
LibraryCredentials), a new thread does not inherit the secret of the thread that
causes its creation: every task sets the library's secret itself. Otherwise the secret is
inherited, as the library always did.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
LibraryThreadFactory
- Parameters:
prefix- the prefix of the threads' names
-
-
Method Details
-
newThread
- Specified by:
newThreadin interfaceThreadFactory
-