All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.sap.hana.datalake.files.utils.threads.ThreadFactoryProvider Maven / Gradle / Ivy

Go to download

An implementation of org.apache.hadoop.fs.FileSystem targeting SAP HANA Data Lake Files.

There is a newer version: 3.0.27
Show newest version
// © 2024 SAP SE or an SAP affiliate company. All rights reserved.
package com.sap.hana.datalake.files.utils.threads;

import java.util.concurrent.ThreadFactory;

public interface ThreadFactoryProvider {

  /**
   * Creates a thread factory that names threads with a prefix and also sets the threads to daemon.
   *
   * @param namePrefix Prefix for thread names. The actual thread name will be suffixed with `-{ID}`, where ID is a sequential integer value.
   *                   For example, "my-thread" will generate thread names like "my-thread-0", "my-thread-1", ...
   * @return ThreadFactory
   */
  ThreadFactory createDaemonThreadFactory(String namePrefix);

}

// © 2024 SAP SE or an SAP affiliate company. All rights reserved.




© 2015 - 2025 Weber Informatics LLC | Privacy Policy