public class GridDhtAssignmentFetchFuture extends GridFutureAdapter<GridDhtAffinityAssignmentResponse>
| Constructor and Description |
|---|
GridDhtAssignmentFetchFuture(GridCacheSharedContext ctx,
String cacheName,
AffinityTopologyVersion topVer,
DiscoCache discoCache) |
| Modifier and Type | Method and Description |
|---|---|
void |
init()
Initializes fetch future.
|
T2<Integer,AffinityTopologyVersion> |
key() |
boolean |
onDone(GridDhtAffinityAssignmentResponse res,
Throwable err)
Callback to notify that future is finished.
|
void |
onNodeLeft(UUID leftNodeId) |
void |
onResponse(UUID nodeId,
GridDhtAffinityAssignmentResponse res) |
String |
toString() |
cancel, chain, chain, error, get, get, get, getUninterruptibly, ignoreInterrupts, isCancelled, isDone, isFailed, listen, logger, onCancelled, onDone, onDone, onDone, onDone, resultpublic GridDhtAssignmentFetchFuture(GridCacheSharedContext ctx, String cacheName, AffinityTopologyVersion topVer, DiscoCache discoCache)
ctx - Context.cacheName - Cache name.topVer - Topology version.discoCache - Discovery cache.public void init()
public T2<Integer,AffinityTopologyVersion> key()
public void onResponse(UUID nodeId, GridDhtAffinityAssignmentResponse res)
nodeId - Node ID.res - Response.public void onNodeLeft(UUID leftNodeId)
leftNodeId - Left node ID.public boolean onDone(@Nullable
GridDhtAffinityAssignmentResponse res,
@Nullable
Throwable err)
null exception is passed in
the result value will be ignored.onDone in class GridFutureAdapter<GridDhtAffinityAssignmentResponse>res - Optional result.err - Optional error.True if result was set by this call.public String toString()
toString in class GridFutureAdapter<GridDhtAffinityAssignmentResponse>
Follow @ApacheIgnite
Ignite Fabric : ver. 2.0.0 Release Date : April 30 2017