public class GridNearLockResponse extends GridDistributedLockResponse
vercacheIdaddDepInfo, CACHE_MSG_INDEX_FIELD_NAME, forceAddDepInfo, MAX_CACHE_MSG_LOOKUP_INDEXDIRECT_TYPE_SIZE| Constructor and Description |
|---|
GridNearLockResponse()
Empty constructor (required by
Externalizable). |
GridNearLockResponse(int cacheId,
GridCacheVersion lockVer,
IgniteUuid futId,
int miniId,
boolean filterRes,
int cnt,
Throwable err,
AffinityTopologyVersion clientRemapVer,
boolean addDepInfo,
boolean compatibleRemapVer) |
| Modifier and Type | Method and Description |
|---|---|
void |
addValueBytes(@Nullable CacheObject val,
boolean filterPassed,
@Nullable GridCacheVersion dhtVer,
@Nullable GridCacheVersion mappedVer) |
@Nullable AffinityTopologyVersion |
clientRemapVersion() |
boolean |
compatibleRemapVersion() |
GridCacheVersion |
dhtVersion(int idx) |
short |
directType()
Gets message type.
|
byte |
fieldsCount()
Gets fields count.
|
boolean |
filterResult(int idx)
Gets filter evaluation result for fast-commit transaction.
|
GridCacheVersion |
mappedVersion(int idx)
Returns DHT candidate version for acquired near lock on DHT node.
|
int |
miniId() |
Collection<GridCacheVersion> |
pending()
Gets pending versions that are less than
GridDistributedBaseMessage.version(). |
void |
pending(Collection<GridCacheVersion> pending)
Sets pending versions that are less than
GridDistributedBaseMessage.version(). |
boolean |
readFrom(ByteBuffer buf,
MessageReader reader)
Reads this message from provided byte buffer.
|
String |
toString() |
boolean |
writeTo(ByteBuffer buf,
MessageWriter writer)
Writes this message to provided byte buffer.
|
addValue, error, error, finishUnmarshal, futureId, messageLogger, prepareMarshal, value, valuesSizeaddDeploymentInfo, committedVersions, completedVersions, rolledbackVersions, version, versioncacheGroupMessage, cacheId, cacheId, handlerIdappendFlag, classError, deployInfo, finishUnmarshalCacheObjects, finishUnmarshalCacheObjects, ignoreClassErrors, lastAffinityChangedTopologyVersion, lastAffinityChangedTopologyVersion, lookupIndex, marshalCollection, marshalInfo, marshalInfos, marshalInvokeArguments, marshalTx, messageId, nextIndexId, onAckReceived, onClassError, partition, partitionExchangeMessage, prepare, prepareMarshalCacheObject, prepareMarshalCacheObjects, prepareMarshalCacheObjects, prepareObject, prepareObject, topologyVersion, transferExpiryPolicy, unmarshalCollection, unmarshalInfo, unmarshalInfos, unmarshalInvokeArguments, unmarshalTxclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdeployInfo, preparepublic GridNearLockResponse()
Externalizable).public GridNearLockResponse(int cacheId,
GridCacheVersion lockVer,
IgniteUuid futId,
int miniId,
boolean filterRes,
int cnt,
Throwable err,
AffinityTopologyVersion clientRemapVer,
boolean addDepInfo,
boolean compatibleRemapVer)
cacheId - Cache ID.lockVer - Lock ID.futId - Future ID.miniId - Mini future ID.filterRes - True if need to allocate array for filter evaluation results.cnt - Count.err - Error.clientRemapVer - True if client node should remap lock request. If compatibleRemapVer is
true when first request is not remapped, but all subsequent will use remap version.addDepInfo - Deployment info.compatibleRemapVer - True if remap version is compatible with lock version.@Nullable public @Nullable AffinityTopologyVersion clientRemapVersion()
True if client node should remap lock request.public boolean compatibleRemapVersion()
True is remap version is compatible with current topology version.public Collection<GridCacheVersion> pending()
GridDistributedBaseMessage.version().public void pending(Collection<GridCacheVersion> pending)
GridDistributedBaseMessage.version().pending - Pending versions.public int miniId()
public GridCacheVersion dhtVersion(int idx)
idx - Index.public GridCacheVersion mappedVersion(int idx)
idx - Key index.public boolean filterResult(int idx)
idx - Result index.True if filter passed on primary node, false otherwise.public void addValueBytes(@Nullable
@Nullable CacheObject val,
boolean filterPassed,
@Nullable
@Nullable GridCacheVersion dhtVer,
@Nullable
@Nullable GridCacheVersion mappedVer)
throws IgniteCheckedException
val - Value.filterPassed - Boolean flag indicating whether filter passed for fast-commit transaction.dhtVer - DHT version.mappedVer - Mapped version.IgniteCheckedException - If failed.public boolean writeTo(ByteBuffer buf, MessageWriter writer)
writeTo in interface MessagewriteTo in class GridDistributedLockResponsebuf - Byte buffer.writer - Writer.public boolean readFrom(ByteBuffer buf, MessageReader reader)
readFrom in interface MessagereadFrom in class GridDistributedLockResponsebuf - Byte buffer.reader - Reader.public short directType()
directType in interface MessagedirectType in class GridDistributedLockResponsepublic byte fieldsCount()
fieldsCount in interface MessagefieldsCount in class GridDistributedLockResponsepublic String toString()
toString in class GridDistributedLockResponse
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.9.0 Release Date : October 15 2020