public class GridNearTxPrepareResponse<K,V> extends GridDistributedTxPrepareResponse<K,V>
MessageAdapter.TypeverCACHE_MSG_INDEX_FIELD_NAME, cacheId, MAX_CACHE_MSG_LOOKUP_INDEXreader, readState| Constructor and Description |
|---|
GridNearTxPrepareResponse()
Empty constructor required by
Externalizable. |
GridNearTxPrepareResponse(GridCacheVersion xid,
IgniteUuid futId,
IgniteUuid miniId,
GridCacheVersion dhtVer,
Collection<Integer> invalidParts,
GridCacheReturn<V> retVal,
Throwable err) |
| Modifier and Type | Method and Description |
|---|---|
void |
addOwnedValue(IgniteTxKey<K> key,
GridCacheVersion ver,
V val,
byte[] valBytes)
Adds owned value.
|
GridCacheVersion |
dhtVersion() |
byte |
directType()
Gets message type.
|
Collection<IgniteTxKey<K>> |
filterFailedKeys() |
void |
filterFailedKeys(Collection<IgniteTxKey<K>> filterFailedKeys) |
void |
finishUnmarshal(GridCacheSharedContext<K,V> ctx,
ClassLoader ldr)
This method is called after the message is deserialized and is responsible for
unmarshalling state marshalled in
GridCacheMessage.prepareMarshal(GridCacheSharedContext) method. |
IgniteUuid |
futureId() |
boolean |
hasOwnedValue(IgniteTxKey<K> key) |
Collection<Integer> |
invalidPartitions() |
IgniteUuid |
miniId() |
Map<IgniteTxKey<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(GridCacheSharedContext<K,V> ctx)
This method is called before the whole message is serialized
and is responsible for pre-marshalling state.
|
boolean |
readFrom(ByteBuffer buf)
Reads this message from provided byte buffer.
|
GridCacheReturn<V> |
returnValue() |
String |
toString() |
boolean |
writeTo(ByteBuffer buf,
MessageWriter writer)
Writes this message to provided byte buffer.
|
candidates, candidatesForKey, error, error, isRollbackcandidatesByIndex, 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 GridNearTxPrepareResponse()
Externalizable.public GridNearTxPrepareResponse(GridCacheVersion xid, IgniteUuid futId, IgniteUuid miniId, GridCacheVersion dhtVer, Collection<Integer> invalidParts, GridCacheReturn<V> retVal, 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 IgniteUuid miniId()
public IgniteUuid futureId()
public GridCacheVersion dhtVersion()
public void addOwnedValue(IgniteTxKey<K> key, GridCacheVersion ver, V val, byte[] valBytes)
key - Key.ver - DHT version.val - Value.valBytes - Value bytes.public Map<IgniteTxKey<K>,GridTuple3<GridCacheVersion,V,byte[]>> ownedValues()
public GridCacheReturn<V> returnValue()
public void filterFailedKeys(Collection<IgniteTxKey<K>> filterFailedKeys)
filterFailedKeys - Collection of keys that did not pass the filter.public Collection<IgniteTxKey<K>> filterFailedKeys()
public boolean hasOwnedValue(IgniteTxKey<K> key)
key - Key.True if response has owned value for given key.public Collection<Integer> invalidPartitions()
public void prepareMarshal(GridCacheSharedContext<K,V> ctx) throws IgniteCheckedException
prepareMarshal in class GridDistributedTxPrepareResponse<K,V>ctx - IgniteCheckedException - If failed.public void finishUnmarshal(GridCacheSharedContext<K,V> ctx, ClassLoader ldr) throws IgniteCheckedException
GridCacheMessage.prepareMarshal(GridCacheSharedContext) method.finishUnmarshal in class GridDistributedTxPrepareResponse<K,V>ctx - Context.ldr - Class loader.IgniteCheckedException - If failed.public boolean writeTo(ByteBuffer buf, MessageWriter writer)
writeTo in class GridDistributedTxPrepareResponse<K,V>buf - Byte buffer.writer - Writer.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>
Follow @ApacheIgnite
Ignite Fabric : ver. 1.0.0-RC1 Release Date : February 17 2015