public class GridNearLockResponse extends GridDistributedLockResponse
verCACHE_MSG_INDEX_FIELD_NAME, cacheId, MAX_CACHE_MSG_LOOKUP_INDEX| Constructor and Description |
|---|
GridNearLockResponse()
Empty constructor (required by
Externalizable). |
GridNearLockResponse(int cacheId,
GridCacheVersion lockVer,
IgniteUuid futId,
IgniteUuid miniId,
boolean filterRes,
int cnt,
Throwable err,
AffinityTopologyVersion clientRemapVer) |
| Modifier and Type | Method and Description |
|---|---|
void |
addValueBytes(CacheObject val,
boolean filterPassed,
GridCacheVersion dhtVer,
GridCacheVersion mappedVer) |
AffinityTopologyVersion |
clientRemapVersion() |
GridCacheVersion |
dhtVersion(int idx) |
byte |
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.
|
IgniteUuid |
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, isCurrentlyLocked, prepareMarshal, setCandidates, value, valuesSizecandidatesByIndex, candidatesByIndex, committedVersions, completedVersions, keysCount, rolledbackVersions, version, versionallowForStartup, cacheId, cacheId, classError, deployInfo, finishUnmarshalCacheObjects, finishUnmarshalCacheObjects, ignoreClassErrors, lookupIndex, marshalCollection, marshalInfo, marshalInfos, marshalInvokeArguments, marshalTx, messageId, nextIndexId, onClassError, partitionExchangeMessage, prepare, prepareMarshalCacheObjects, prepareMarshalCacheObjects, 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,
IgniteUuid miniId,
boolean filterRes,
int cnt,
Throwable err,
AffinityTopologyVersion clientRemapVer)
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.@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 IgniteUuid 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 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 byte 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 Fabric : ver. 1.2.0-incubating Release Date : June 16 2015