Class IgniteInClosureX<T>
- java.lang.Object
-
- org.apache.ignite.internal.util.lang.IgniteInClosureX<T>
-
- All Implemented Interfaces:
Serializable,IgniteInClosure<T>
- Direct Known Subclasses:
CIX1
public abstract class IgniteInClosureX<T> extends Object implements IgniteInClosure<T>
Convenient in-closure subclass that allows for thrown grid exception. This class implementsapply(Object)method that callsapplyx(Object)method and properly wrapsIgniteCheckedExceptionintoGridClosureExceptioninstance.- See Also:
CIX1, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description IgniteInClosureX()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidapply(T t)Closure body.abstract voidapplyx(T t)In-closure body that can throwIgniteCheckedException.
-
-
-
Method Detail
-
apply
public void apply(T t)
Closure body.- Specified by:
applyin interfaceIgniteInClosure<T>- Parameters:
t- Closure argument.
-
applyx
public abstract void applyx(T t) throws IgniteCheckedException
In-closure body that can throwIgniteCheckedException.- Parameters:
t- The variable the closure is called or closed on.- Throws:
IgniteCheckedException- Thrown in case of any error condition inside of the closure.
-
-