-
- All Implemented Interfaces:
-
com.datadog.android.internal.thread.NamedExecutionUnit,java.lang.Runnable
public final class NamedRunnable implements NamedExecutionUnit, Runnable
A wrapper around a Runnable that assigns it a sanitized, lowercase name.
This class is useful when you want to associate a human-readable name with a Runnable, 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 NamedRunnable(String name, Runnable runnable)
-