GridGain™ 3.6.0e
Enterprise Edition

org.gridgain.grid.lang
Class GridInClosure3X<E1,E2,E3>

java.lang.Object
  extended by org.gridgain.grid.lang.GridMetadataAwareAdapter
      extended by org.gridgain.grid.lang.GridLambdaAdapter
          extended by org.gridgain.grid.lang.GridInClosure3<E1,E2,E3>
              extended by org.gridgain.grid.lang.GridInClosure3X<E1,E2,E3>
All Implemented Interfaces:
Serializable, Cloneable, GridMetadataAware, GridPeerDeployAware, GridLambda
Direct Known Subclasses:
CIX3

public abstract class GridInClosure3X<E1,E2,E3>
extends GridInClosure3<E1,E2,E3>

Convenient in-closure subclass that allows for thrown grid exception. This class implements GridInClosure3X.apply(Object, Object, Object) method that calls GridInClosure3X.applyx(Object, Object, Object) method and properly wraps GridException into GridClosureException instance.

Wiki & Forum:


Wiki
Forum

See Also:
CIX3, Serialized Form
 

Constructor Summary
GridInClosure3X()
           
 
Method Summary
 void apply(E1 e1, E2 e2, E3 e3)
          Closure body.
abstract  void applyx(E1 e1, E2 e2, E3 e3)
          In-closure body that can throw GridException.
 
Methods inherited from class org.gridgain.grid.lang.GridInClosure3
curry, curry, curry
 
Methods inherited from class org.gridgain.grid.lang.GridLambdaAdapter
classLoader, deployClass, peerDeployLike, withMeta
 
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 class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.gridgain.grid.GridMetadataAware
addMeta, addMetaIfAbsent, addMetaIfAbsent, allMeta, copyMeta, copyMeta, hasMeta, hasMeta, meta, putMetaIfAbsent, putMetaIfAbsent, removeMeta, removeMeta, replaceMeta
 

Constructor Detail

GridInClosure3X

public GridInClosure3X()
Method Detail

apply

public void apply(E1 e1,
                  E2 e2,
                  E3 e3)
Closure body.

Specified by:
apply in class GridInClosure3<E1,E2,E3>
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.
e3 - Third bound free variable, i.e. the element the closure is called or closed on.

applyx

public abstract void applyx(E1 e1,
                            E2 e2,
                            E3 e3)
                     throws GridException
In-closure body that can throw GridException.

Throws:
GridException - Thrown in case of any error condition inside of the closure.
Parameters:
e1 - First variable the closure is called or closed on.
e2 - Second variable the closure is called or closed on.
e3 - Third variable the closure is called or closed on.

GridGain™ 3.6.0e
Enterprise Edition

GridGain - Real Time Big Data
Enterprise Edition, ver. 3.6.0e.13012012
2012 Copyright © GridGain Systems
Follow us:   Follow GridGain on Github Follow GridGain on Facebook Join GridGain User Group Follow GridGain on Twitter Follow GridGain on YouTube