org.gridgain.grid.lang
Class GridInClosureX<T>
java.lang.Object
org.gridgain.grid.lang.GridMetadataAwareAdapter
org.gridgain.grid.lang.GridLambdaAdapter
org.gridgain.grid.lang.GridInClosure<T>
org.gridgain.grid.lang.GridInClosureX<T>
- All Implemented Interfaces:
- Serializable, Cloneable, GridMetadataAware, GridPeerDeployAware, GridLambda
- Direct Known Subclasses:
- CIX1
public abstract class GridInClosureX<T>
- extends GridInClosure<T>
Convenient in-closure subclass that allows for thrown grid exception. This class
implements GridInClosureX.apply(Object) method that calls GridInClosureX.applyx(Object) method
and properly wraps GridException into GridClosureException instance.
- See Also:
CIX1,
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 |
GridInClosureX
public GridInClosureX()
apply
public void apply(T t)
- In-closure body.
- Specified by:
apply in class GridInClosure<T>
- Parameters:
t - Bound free variable, i.t. the element the closure is called or closed on.
applyx
public abstract void applyx(T t)
throws GridException
- In-closure body that can throw
GridException.
- Throws:
GridException - Thrown in case of any error condition inside of the closure.- Parameters:
t - The variable the closure is called or closed on.