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

com.sap.hana.datalake.files.utils.threads.SimpleThreadFactoryProvider 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 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