com.sap.hana.datalake.files.utils.threads.ThreadFactoryProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sap-hdlfs Show documentation
Show all versions of sap-hdlfs Show documentation
An implementation of org.apache.hadoop.fs.FileSystem targeting SAP HANA Data Lake Files.
// © 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