org.gridgain.grid.lang
Class GridOutClosureX<T>
java.lang.Object
org.gridgain.grid.lang.GridMetadataAwareAdapter
org.gridgain.grid.lang.GridLambdaAdapter
org.gridgain.grid.lang.GridOutClosure<T>
org.gridgain.grid.lang.GridOutClosureX<T>
- All Implemented Interfaces:
- Serializable, Cloneable, Callable<T>, GridJob, GridMetadataAware, GridPeerDeployAware, GridLambda
- Direct Known Subclasses:
- COX
public abstract class GridOutClosureX<T>
- extends GridOutClosure<T>
Convenient out-closure subclass that allows for thrown grid exception. This class
implements GridOutClosureX.apply() method that calls GridOutClosureX.applyx() method and properly
wraps GridException into GridClosureException instance.
- See Also:
- Serialized Form
-

| Methods inherited from class org.gridgain.grid.lang.GridMetadataAwareAdapter |
addMeta, addMetaIfAbsent, addMetaIfAbsent, allMeta, clone, copyMeta, copyMeta, hasMeta, hasMeta, meta, putMetaIfAbsent, putMetaIfAbsent, readExternalMeta, removeMeta, removeMeta, replaceMeta, writeExternalMeta |
| Methods inherited from interface org.gridgain.grid.GridMetadataAware |
addMeta, addMetaIfAbsent, addMetaIfAbsent, allMeta, copyMeta, copyMeta, hasMeta, hasMeta, meta, putMetaIfAbsent, putMetaIfAbsent, removeMeta, removeMeta, replaceMeta |
GridOutClosureX
public GridOutClosureX()
apply
public T apply()
- Factory closure body.
- Specified by:
apply in class GridOutClosure<T>
- Returns:
- Element.
applyx
public abstract T applyx()
throws GridException
- Out-closure body that can throw
GridException.
- Throws:
GridException - Thrown in case of any error condition inside of the closure.
- Returns:
- Element.