public class GridDhtAssignmentFetchFuture extends GridFutureAdapter<GridDhtAffinityAssignmentResponse>
| Constructor and Description |
|---|
GridDhtAssignmentFetchFuture(GridCacheSharedContext ctx,
int grpId,
AffinityTopologyVersion topVer,
DiscoCache discoCache) |
| Modifier and Type | Method and Description |
|---|---|
int |
groupId() |
long |
id() |
void |
init(boolean needPartState)
Initializes fetch future.
|
boolean |
onDone(@Nullable GridDhtAffinityAssignmentResponse res,
@Nullable 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, reset, resultpublic GridDhtAssignmentFetchFuture(GridCacheSharedContext ctx, int grpId, AffinityTopologyVersion topVer, DiscoCache discoCache)
ctx - Context.grpId - Group ID.topVer - Topology version.discoCache - Discovery cache.public int groupId()
public long id()
public void init(boolean needPartState)
needPartState - True if also need fetch partitions state.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
@Nullable GridDhtAffinityAssignmentResponse res,
@Nullable
@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 Database and Caching Platform : ver. 2.11.1 Release Date : December 20 2021