Class GridAbsClosure
- java.lang.Object
-
- org.apache.ignite.internal.util.lang.GridAbsClosure
-
- All Implemented Interfaces:
Serializable,Runnable,IgniteRunnable
- Direct Known Subclasses:
CA,GridAbsClosureX,NoOpClosure,RunnableWrapperClosure
public abstract class GridAbsClosure extends Object implements IgniteRunnable
Defines a convenient absolute, i.e.no-argandno return valueclosure. This closure that hasvoidreturn type and no arguments (free variables).Thread Safety
Note that this interface does not impose or assume any specific thread-safety by its implementations. Each implementation can elect what type of thread-safety it provides, if any.Note that this class implements
ComputeJobinterface for convenience and can be used inComputeTaskimplementations directly, if needed, as an alternative toComputeJobAdapter.- See Also:
GridFunc, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GridAbsClosure()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract voidapply()Absolute closure body.voidrun()Delegates toapply()method.
-