Package org.threadly.concurrent
Class DoNothingRunnable
- java.lang.Object
-
- org.threadly.concurrent.DoNothingRunnable
-
- All Implemented Interfaces:
java.lang.Runnable
public final class DoNothingRunnable extends java.lang.Object implements java.lang.Runnable
Runnable
implementation which does no action.- Since:
- 4.1.0
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DoNothingRunnable
instance()
Call to get a default instance of theDoNothingRunnable
.void
run()
-
-
-
Method Detail
-
instance
public static DoNothingRunnable instance()
Call to get a default instance of theDoNothingRunnable
. Because there is no saved or shared state, the same instance can be reused as much as desired.- Returns:
- a static instance of DoNothingRunnable
-
run
public final void run()
- Specified by:
run
in interfacejava.lang.Runnable
-
-