public class GridNearTxPrepareResponse<K,V> extends GridDistributedTxPrepareResponse<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 |
|---|
GridNearTxPrepareResponse()
Empty constructor required by
Externalizable. |
GridNearTxPrepareResponse(GridCacheVersion xid,
GridUuid futId,
GridUuid miniId,
GridCacheVersion dhtVer,
Collection<Integer> invalidParts,
Throwable err) |
| Modifier and Type | Method and Description |
|---|---|
void |
addOwnedValue(K key,
GridCacheVersion ver,
V val,
byte[] valBytes)
Adds owned value.
|
GridTcpCommunicationMessageAdapter |
clone() |
protected void |
clone0(GridTcpCommunicationMessageAdapter _msg)
Clones all fields of the provided message to
this. |
GridCacheVersion |
dhtVersion() |
byte |
directType() |
void |
finishUnmarshal(GridCacheContext<K,V> ctx,
ClassLoader ldr)
This method is called after the message is deserialized and is responsible for
unmarshalling state marshalled in
GridCacheMessage.prepareMarshal(GridCacheContext) method. |
GridUuid |
futureId() |
boolean |
hasOwnedValue(K key) |
Collection<Integer> |
invalidPartitions() |
GridUuid |
miniId() |
Map<K,GridTuple3<GridCacheVersion,V,byte[]>> |
ownedValues() |
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(). |
void |
prepareMarshal(GridCacheContext<K,V> ctx)
This method is called before the whole message is serialized
and is responsible for pre-marshalling state.
|
boolean |
readFrom(ByteBuffer buf) |
String |
toString() |
boolean |
writeTo(ByteBuffer buf) |
candidates, candidatesForKey, error, error, isRollbackcandidatesByIndex, 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 GridNearTxPrepareResponse()
Externalizable.public GridNearTxPrepareResponse(GridCacheVersion xid, GridUuid futId, GridUuid miniId, GridCacheVersion dhtVer, Collection<Integer> invalidParts, Throwable err)
xid - Xid version.futId - Future ID.miniId - Mini future ID.dhtVer - DHT version.invalidParts - Invalid partitions.err - Error.public Collection<GridCacheVersion> pending()
GridDistributedBaseMessage.version().public void pending(Collection<GridCacheVersion> pending)
GridDistributedBaseMessage.version().pending - Pending versions.public GridUuid miniId()
public GridUuid futureId()
public GridCacheVersion dhtVersion()
public void addOwnedValue(K key, GridCacheVersion ver, V val, byte[] valBytes)
key - Key.ver - DHT version.val - Value.valBytes - Value bytes.public Map<K,GridTuple3<GridCacheVersion,V,byte[]>> ownedValues()
public boolean hasOwnedValue(K key)
key - Key.True if response has owned value for given key.public Collection<Integer> invalidPartitions()
public void prepareMarshal(GridCacheContext<K,V> ctx) throws GridException
prepareMarshal in class GridDistributedTxPrepareResponse<K,V>ctx - Cache context.GridException - If failed.public void finishUnmarshal(GridCacheContext<K,V> ctx, ClassLoader ldr) throws GridException
GridCacheMessage.prepareMarshal(GridCacheContext) method.finishUnmarshal in class GridDistributedTxPrepareResponse<K,V>ctx - Context.ldr - Class loader.GridException - If failed.public GridTcpCommunicationMessageAdapter clone()
clone in class GridDistributedTxPrepareResponse<K,V>protected void clone0(GridTcpCommunicationMessageAdapter _msg)
this.clone0 in class GridDistributedTxPrepareResponse<K,V>_msg - Message to clone from.public boolean writeTo(ByteBuffer buf)
writeTo in class GridDistributedTxPrepareResponse<K,V>buf - Byte buffer.public boolean readFrom(ByteBuffer buf)
readFrom in class GridDistributedTxPrepareResponse<K,V>buf - Byte buffer.public byte directType()
directType in class GridDistributedTxPrepareResponse<K,V>public String toString()
toString in class GridDistributedTxPrepareResponse<K,V>Copyright © 2014. All rights reserved.