public class GridNearLockResponse extends GridDistributedLockResponse
ver
addDepInfo, CACHE_MSG_INDEX_FIELD_NAME, cacheId, forceAddDepInfo, MAX_CACHE_MSG_LOOKUP_INDEX
DIRECT_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) |
Modifier and Type | Method and Description |
---|---|
void |
addValueBytes(CacheObject val,
boolean filterPassed,
GridCacheVersion dhtVer,
GridCacheVersion mappedVer) |
AffinityTopologyVersion |
clientRemapVersion() |
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, valuesSize
addDeploymentInfo, committedVersions, completedVersions, rolledbackVersions, version, version
appendFlag, cacheId, cacheId, classError, deployInfo, finishUnmarshalCacheObjects, finishUnmarshalCacheObjects, ignoreClassErrors, lookupIndex, marshalCollection, marshalInfo, marshalInfos, marshalInvokeArguments, marshalTx, messageId, nextIndexId, onAckReceived, onClassError, partition, partitionExchangeMessage, prepare, prepareMarshalCacheObject, prepareMarshalCacheObjects, prepareMarshalCacheObjects, prepareObject, topologyVersion, transferExpiryPolicy, unmarshalCollection, unmarshalInfo, unmarshalInfos, unmarshalInvokeArguments, unmarshalTx
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
deployInfo, prepare
public GridNearLockResponse()
Externalizable
).public GridNearLockResponse(int cacheId, GridCacheVersion lockVer, IgniteUuid futId, int miniId, boolean filterRes, int cnt, Throwable err, AffinityTopologyVersion clientRemapVer, boolean addDepInfo)
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.addDepInfo
- Deployment info.@Nullable public AffinityTopologyVersion clientRemapVersion()
True
if client node should remap lock request.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 CacheObject val, boolean filterPassed, @Nullable GridCacheVersion dhtVer, @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 Message
writeTo
in class GridDistributedLockResponse
buf
- Byte buffer.writer
- Writer.public boolean readFrom(ByteBuffer buf, MessageReader reader)
readFrom
in interface Message
readFrom
in class GridDistributedLockResponse
buf
- Byte buffer.reader
- Reader.public short directType()
directType
in interface Message
directType
in class GridDistributedLockResponse
public byte fieldsCount()
fieldsCount
in interface Message
fieldsCount
in class GridDistributedLockResponse
public String toString()
toString
in class GridDistributedLockResponse
Follow @ApacheIgnite
Ignite Fabric : ver. 2.0.0 Release Date : April 30 2017