public class GridNearLockResponse<K,V> extends GridDistributedLockResponse<K,V>
MessageAdapter.TypeverCACHE_MSG_INDEX_FIELD_NAME, cacheId, MAX_CACHE_MSG_LOOKUP_INDEXreader, readState| Constructor and Description |
|---|
GridNearLockResponse()
Empty constructor (required by
Externalizable). |
GridNearLockResponse(int cacheId,
GridCacheVersion lockVer,
IgniteUuid futId,
IgniteUuid miniId,
boolean filterRes,
int cnt,
Throwable err) |
| Modifier and Type | Method and Description |
|---|---|
void |
addValueBytes(V val,
byte[] valBytes,
boolean filterPassed,
GridCacheVersion dhtVer,
GridCacheVersion mappedVer,
GridCacheContext<K,V> ctx) |
GridCacheVersion |
dhtVersion(int idx) |
byte |
directType()
Gets message type.
|
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)
Reads this message from provided byte buffer.
|
String |
toString() |
boolean |
writeTo(ByteBuffer buf,
MessageWriter writer)
Writes this message to provided byte buffer.
|
addValueBytes, error, error, finishUnmarshal, futureId, isCurrentlyLocked, prepareMarshal, setCandidates, value, valueBytes, valuesSizecandidatesByIndex, candidatesByIndex, candidatesByKey, candidatesByKey, candidatesByKey, committedVersions, completedVersions, keysCount, rolledbackVersions, version, versionallowForStartup, cacheId, cacheId, classError, deployInfo, ignoreClassErrors, lookupIndex, marshalBooleanLinkedMap, marshalCollection, marshalFilter, marshalInfo, marshalInfos, marshalInvokeArguments, marshalTx, marshalValuesCollection, messageId, nextIndexId, onClassError, prepare, prepareFilter, prepareObject, prepareObjects, topologyVersion, transactional, transferExpiryPolicy, unmarshalBooleanLinkedMap, unmarshalCollection, unmarshalFilter, unmarshalInfo, unmarshalInfos, unmarshalInvokeArguments, unmarshalTx, unmarshalValueBytesCollectionsetReader, skipRecoveryclone, 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)
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.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 V val, @Nullable byte[] valBytes, boolean filterPassed, @Nullable GridCacheVersion dhtVer, @Nullable GridCacheVersion mappedVer, GridCacheContext<K,V> ctx) throws IgniteCheckedException
val - Value.valBytes - Value bytes (possibly null).filterPassed - Boolean flag indicating whether filter passed for fast-commit transaction.dhtVer - DHT version.mappedVer - Mapped version.ctx - Context.IgniteCheckedException - If failed.public boolean writeTo(ByteBuffer buf, MessageWriter writer)
writeTo in class GridDistributedLockResponse<K,V>buf - Byte buffer.writer - Writer.public boolean readFrom(ByteBuffer buf)
readFrom in class GridDistributedLockResponse<K,V>buf - Byte buffer.public byte directType()
directType in class GridDistributedLockResponse<K,V>public String toString()
toString in class GridDistributedLockResponse<K,V>
Follow @ApacheIgnite
Ignite Fabric : ver. 1.0.0-RC1 Release Date : February 17 2015