public class GridNearLockResponse<K,V> extends GridDistributedLockResponse<K,V>
verCACHE_MSG_INDEX_FIELD_NAME, MAX_CACHE_MSG_LOOKUP_INDEXBIT_SET_NOT_READ, BOOLEAN_ARR_NOT_READ, BYTE_ARR_LIST_NOT_READ, BYTE_ARR_NOT_READ, CACHE_VER_NOT_READ, CHAR_ARR_NOT_READ, CLOCK_DELTA_VER_NOT_READ, commState, DHT_PART_EXCHANGE_ID_NOT_READ, DOUBLE_ARR_NOT_READ, DR_INT_REQ_ENTRY_NOT_READ, ENUM_NOT_READ, FLOAT_ARR_NOT_READ, GRID_UUID_NOT_READ, INT_ARR_NOT_READ, LONG_ARR_NOT_READ, LONG_LIST_NOT_READ, MSG_NOT_READ, NULL, SHORT_ARR_NOT_READ, STR_NOT_READ, UUID_NOT_READ, VAL_BYTES_NOT_READ| Constructor and Description |
|---|
GridNearLockResponse()
Empty constructor (required by
Externalizable). |
GridNearLockResponse(GridCacheVersion lockVer,
GridUuid futId,
GridUuid 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) |
GridTcpCommunicationMessageAdapter |
clone() |
protected void |
clone0(GridTcpCommunicationMessageAdapter _msg)
Clones all fields of the provided message to
this. |
GridCacheVersion |
dhtVersion(int idx) |
byte |
directType() |
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.
|
GridUuid |
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) |
String |
toString() |
boolean |
writeTo(ByteBuffer buf) |
addValueBytes, error, error, finishUnmarshal, futureId, isCurrentlyLocked, prepareMarshal, setCandidates, value, valueBytes, valuesSizecandidatesByIndex, candidatesByIndex, candidatesByKey, candidatesByKey, candidatesByKey, committedVersions, completedVersions, keysCount, rolledbackVersions, version, versionallowForStartup, classError, deployInfo, ignoreClassErrors, lookupIndex, marshalBooleanLinkedMap, marshalCollection, marshalFilter, marshalInfo, marshalInfos, marshalTx, marshalValuesCollection, messageId, nextIndexId, onClassError, prepare, prepareFilter, prepareObject, prepareObjects, topologyVersion, unmarshalBooleanLinkedMap, unmarshalCollection, unmarshalFilter, unmarshalInfo, unmarshalInfos, unmarshalTx, unmarshalValueBytesCollectionarrayIterator, messageReader, messageWriterequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdeployInfo, preparepublic GridNearLockResponse()
Externalizable).public GridNearLockResponse(GridCacheVersion lockVer, GridUuid futId, GridUuid miniId, boolean filterRes, int cnt, Throwable err)
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 GridUuid 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 GridException
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.GridException - If failed.public GridTcpCommunicationMessageAdapter clone()
clone in class GridDistributedLockResponse<K,V>protected void clone0(GridTcpCommunicationMessageAdapter _msg)
this.clone0 in class GridDistributedLockResponse<K,V>_msg - Message to clone from.public boolean writeTo(ByteBuffer buf)
writeTo in class GridDistributedLockResponse<K,V>buf - Byte buffer.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>Copyright © 2014. All rights reserved.