Class RunnableWrapperClosure
- java.lang.Object
-
- org.apache.ignite.internal.util.lang.GridAbsClosure
-
- org.apache.ignite.internal.util.lang.gridfunc.RunnableWrapperClosure
-
- All Implemented Interfaces:
Serializable,Runnable,IgniteRunnable
public class RunnableWrapperClosure extends GridAbsClosure
Closure that wraps given runnable. Note that wrapping closure always returnsnull.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RunnableWrapperClosure(Runnable r)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapply()Absolute closure body.StringtoString()-
Methods inherited from class org.apache.ignite.internal.util.lang.GridAbsClosure
run
-
-
-
-
Constructor Detail
-
RunnableWrapperClosure
public RunnableWrapperClosure(Runnable r)
- Parameters:
r- Runnable to convert to closure. Ifnull- no-op closure is returned.
-
-
Method Detail
-
apply
public void apply()
Absolute closure body.- Specified by:
applyin classGridAbsClosure
-
-