org.gridgain.grid.lang
Class GridClosure2X<E1,E2,R>
java.lang.Object
org.gridgain.grid.lang.GridMetadataAwareAdapter
org.gridgain.grid.lang.GridLambdaAdapter
org.gridgain.grid.lang.GridClosure2<E1,E2,R>
org.gridgain.grid.lang.GridClosure2X<E1,E2,R>
- All Implemented Interfaces:
- Serializable, Cloneable, GridMetadataAware, GridPeerDeployAware, GridLambda
- Direct Known Subclasses:
- CX2
public abstract class GridClosure2X<E1,E2,R>
- extends GridClosure2<E1,E2,R>
Convenient closure subclass that allows for thrown grid exception. This class
implements GridClosure2X.apply(Object, Object) method that calls GridClosure2X.applyx(Object, Object)
method and properly wraps GridException into GridClosureException instance.
- See Also:
CX2,
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 |
GridClosure2X
public GridClosure2X()
apply
public R apply(E1 e1,
E2 e2)
- Closure body.
- Specified by:
apply in class GridClosure2<E1,E2,R>
- Parameters:
e1 - First bound free variable, i.e. the element the closure is called or closed on.e2 - Second bound free variable, i.e. the element the closure is called or closed on.
- Returns:
- Optional return value.
applyx
public abstract R applyx(E1 e1,
E2 e2)
throws GridException
- Closure body that can throw
GridException.
- Throws:
GridException - Thrown in case of any error condition inside of the closure.- Parameters:
e1 - First bound free variable, i.e. the element the closure is called or closed on.e2 - Second bound free variable, i.e. the element the closure is called or closed on.
- Returns:
- Optional return value.