Class GridAbsClosure

java.lang.Object
org.apache.ignite.internal.util.lang.GridAbsClosure
All Implemented Interfaces:
Runnable

public abstract class GridAbsClosure extends Object implements Runnable
Defines a convenient absolute, i.e. no-arg and no return value closure. This closure that has void return 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 org.apache.ignite.compute.ComputeJob interface for convenience and can be used in org.apache.ignite.compute.ComputeTask implementations directly, if needed, as an alternative to org.apache.ignite.compute.ComputeJobAdapter.

See Also:
  • Constructor Details

    • GridAbsClosure

      public GridAbsClosure()
  • Method Details

    • apply

      public abstract void apply()
      Absolute closure body.
    • run

      public final void run()
      Delegates to apply() method.

      Specified by:
      run in interface Runnable