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