com.sap.hana.datalake.files.utils.threads.SimpleThreadFactoryProvider 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 org.apache.hadoop.thirdparty.com.google.common.util.concurrent.ThreadFactoryBuilder;
import java.util.concurrent.ThreadFactory;
public class SimpleThreadFactoryProvider implements ThreadFactoryProvider {
@Override
public ThreadFactory createDaemonThreadFactory(final String namePrefix) {
return new ThreadFactoryBuilder()
.setDaemon(true)
.setNameFormat(namePrefix + "-%d")
.build();
}
}
// © 2024 SAP SE or an SAP affiliate company. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy