Class IgniteOutClosureX<T>
- java.lang.Object
-
- org.apache.ignite.internal.util.lang.IgniteOutClosureX<T>
-
- All Implemented Interfaces:
Serializable,IgniteOutClosure<T>
- Direct Known Subclasses:
COX
public abstract class IgniteOutClosureX<T> extends Object implements IgniteOutClosure<T>
Convenient out-closure subclass that allows for thrown grid exception. This class implementsapply()method that callsapplyx()method and properly wrapsIgniteCheckedExceptionintoGridClosureExceptioninstance.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description IgniteOutClosureX()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Tapply()Closure body.abstract Tapplyx()Out-closure body that can throwIgniteCheckedException.
-
-
-
Method Detail
-
apply
public T apply()
Closure body.- Specified by:
applyin interfaceIgniteOutClosure<T>- Returns:
- Return value.
-
applyx
public abstract T applyx() throws IgniteCheckedException
Out-closure body that can throwIgniteCheckedException.- Returns:
- Element.
- Throws:
IgniteCheckedException- Thrown in case of any error condition inside of the closure.
-
-