use of io.mantisrx.shaded.com.google.common.annotations.VisibleForTesting in project mantis by Netflix.
the class IcebergWriterStage method newTransformer.
@VisibleForTesting
static Transformer newTransformer(WriterConfig writerConfig, WriterMetrics writerMetrics, IcebergWriterPool writerPool, Partitioner partitioner, WorkerInfo workerInfo) {
int workerIdx = workerInfo.getWorkerIndex();
String nameFormat = "IcebergWriter (" + (workerIdx + 1) + ")-%d";
Scheduler executingService = new MantisRxSingleThreadScheduler(new ThreadFactoryBuilder().setNameFormat(nameFormat).build());
return new Transformer(writerConfig, writerMetrics, writerPool, partitioner, Schedulers.computation(), executingService);
}
Aggregations