Class ExecutorUtils.LibraryThreadFactory

java.lang.Object
org.gcube.documentstore.persistence.ExecutorUtils.LibraryThreadFactory
All Implemented Interfaces:
ThreadFactory
Enclosing class:
ExecutorUtils

public static class ExecutorUtils.LibraryThreadFactory extends Object implements ThreadFactory
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 Details

    • LibraryThreadFactory

      public LibraryThreadFactory(String prefix)
      Parameters:
      prefix - the prefix of the threads' names
  • Method Details