Class IgniteClosureX<E,R>
- java.lang.Object
-
- org.apache.ignite.internal.util.lang.IgniteClosureX<E,R>
-
- All Implemented Interfaces:
Serializable,IgniteClosure<E,R>
- Direct Known Subclasses:
CX1
public abstract class IgniteClosureX<E,R> extends Object implements IgniteClosure<E,R>
Convenient closure subclass that allows for thrown grid exception. This class implementsapply(Object)method that callsapplyx(Object)method and properly wrapsIgniteCheckedExceptionintoGridClosureExceptioninstance.- See Also:
CX1, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description IgniteClosureX()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Rapply(E e)Closure body.abstract Rapplyx(E e)Closure body that can throwIgniteCheckedException.
-
-
-
Method Detail
-
apply
public R apply(E e)
Closure body.- Specified by:
applyin interfaceIgniteClosure<E,R>- Parameters:
e- Closure parameter.- Returns:
- Closure return value.
-
applyx
public abstract R applyx(E e) throws IgniteCheckedException
Closure body that can throwIgniteCheckedException.- Parameters:
e- The variable the closure is called or closed on.- Returns:
- Optional return value.
- Throws:
IgniteCheckedException- Thrown in case of any error condition inside of the closure.
-
-