org.gridgain.grid.lang
Class GridAbsClosureX
java.lang.Object
org.gridgain.grid.lang.GridMetadataAwareAdapter
org.gridgain.grid.lang.GridLambdaAdapter
org.gridgain.grid.lang.GridAbsClosure
org.gridgain.grid.lang.GridAbsClosureX
- All Implemented Interfaces:
- Serializable, Cloneable, Runnable, GridJob, GridMetadataAware, GridPeerDeployAware, GridLambda
- Direct Known Subclasses:
- CAX
public abstract class GridAbsClosureX
- extends GridAbsClosure
Convenient abs-closure subclass that allows for thrown grid exception. This class
implements GridAbsClosureX.apply() method that calls GridAbsClosureX.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 |
GridAbsClosureX
public GridAbsClosureX()
apply
public void apply()
- Absolute closure body.
- Specified by:
apply in class GridAbsClosure
applyx
public abstract void applyx()
throws GridException
- Closure body that can throw
GridException.
- Throws:
GridException - Thrown in case of any error condition inside of the closure.