Package org.apache.ignite.lang
Interface IgniteClosure<E,R>
- Type Parameters:
E- Type of closure parameter.R- Type of the closure return value.
- All Superinterfaces:
Serializable
- All Known Subinterfaces:
C1<E1,R>
Defines generic closure with one parameter. Closure is a simple executable which accepts a parameter and
returns a value.
In Ignite closures are mainly used for executing distributed computations
on the grid, like in org.apache.ignite.IgniteCompute#apply(IgniteClosure, Object) method.
-
Method Summary
-
Method Details
-
apply
Closure body.- Parameters:
e- Closure parameter.- Returns:
- Closure return value.
-