Class RunOnce
- java.lang.Object
-
- com.linkedin.alpini.base.concurrency.RunOnce
-
- All Implemented Interfaces:
java.lang.Runnable
public final class RunOnce extends java.lang.Object implements java.lang.Runnable
A simple filterRunnable
which will only invoke the contained runnable no more than once.
-
-
Constructor Summary
Constructors Constructor Description RunOnce(java.lang.Runnable task)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.lang.Runnable
make(java.lang.Runnable task)
static <T> java.lang.Runnable
make(T value, java.util.function.Consumer<T> task)
void
run()
-