public class GridEmbeddedFuture<A,B> extends GridFutureAdapter<A>
| Constructor and Description |
|---|
GridEmbeddedFuture(IgniteBiClosure<B,Exception,A> c,
IgniteInternalFuture<B> embedded) |
GridEmbeddedFuture(IgniteInternalFuture<B> embedded,
IgniteBiClosure<B,Exception,IgniteInternalFuture<A>> c)
Embeds futures.
|
GridEmbeddedFuture(IgniteInternalFuture<B> embedded,
IgniteBiClosure<B,Exception,IgniteInternalFuture<A>> c1,
IgniteBiClosure<A,Exception,A> c2)
Embeds futures.
|
GridEmbeddedFuture(IgniteInternalFuture<B> embedded,
IgniteOutClosure<IgniteInternalFuture<A>> c) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancel()
Default no-op implementation that always returns
false. |
boolean |
isCancelled()
Returns
true if this computation was cancelled before it completed normally. |
String |
toString() |
public GridEmbeddedFuture(IgniteBiClosure<B,Exception,A> c, IgniteInternalFuture<B> embedded)
c - Closure to execute upon completion of embedded future.embedded - Embedded future.public GridEmbeddedFuture(IgniteInternalFuture<B> embedded, IgniteBiClosure<B,Exception,IgniteInternalFuture<A>> c)
embedded - Embedded future.c - Closure which runs upon completion of embedded closure and which returns another future.public GridEmbeddedFuture(IgniteInternalFuture<B> embedded, IgniteBiClosure<B,Exception,IgniteInternalFuture<A>> c1, IgniteBiClosure<A,Exception,A> c2)
embedded - Future.c1 - Closure which runs upon completion of embedded future and which returns another future.c2 - Closure will runs upon completion of future returned by c1 closure.public GridEmbeddedFuture(IgniteInternalFuture<B> embedded, IgniteOutClosure<IgniteInternalFuture<A>> c)
embedded - Embedded future.c - Closure to create next future.public boolean cancel()
throws IgniteCheckedException
false.
Futures that do support cancellation should override this method
and call GridFutureAdapter.onCancelled() callback explicitly if cancellation
indeed did happen.cancel in interface IgniteInternalFuture<A>cancel in class GridFutureAdapter<A>True if future was canceled (i.e. was not finished prior to this call).IgniteCheckedException - If cancellation failed.public boolean isCancelled()
true if this computation was cancelled before it completed normally.isCancelled in interface IgniteInternalFuture<A>isCancelled in class GridFutureAdapter<A>True if this computation was cancelled before it completed normally.public String toString()
toString in class GridFutureAdapter<A>
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.10.0 Release Date : March 10 2021