-
- All Implemented Interfaces:
-
com.datadog.android.internal.thread.NamedExecutionUnit,java.util.concurrent.Callable
public final class NamedCallable<V extends Object> implements NamedExecutionUnit, Callable<V>
A wrapper around a Callable that assigns it a sanitized, lowercase name.
This class is useful when you want to associate a human-readable name with a Callable, for logging, debugging, or tracking purposes.
The provided name is sanitized by replacing spaces, colons, periods, and commas with underscores (
_), and converting all characters to lowercase.
-
-
Constructor Summary
Constructors Constructor Description NamedCallable(String name, Callable<V> callable)
-