public class GridDhtLockResponse<K,V> extends GridDistributedLockResponse<K,V>
MessageAdapter.TypeverCACHE_MSG_INDEX_FIELD_NAME, cacheId, MAX_CACHE_MSG_LOOKUP_INDEXreader, readState| Constructor and Description |
|---|
GridDhtLockResponse()
Empty constructor (required by
Externalizable). |
GridDhtLockResponse(int cacheId,
GridCacheVersion lockVer,
IgniteUuid futId,
IgniteUuid miniId,
int cnt) |
GridDhtLockResponse(int cacheId,
GridCacheVersion lockVer,
IgniteUuid futId,
IgniteUuid miniId,
Throwable err) |
| Modifier and Type | Method and Description |
|---|---|
void |
addInvalidPartition(int part) |
void |
addPreloadEntry(GridCacheEntryInfo<K,V> info)
Adds preload entry to lock response.
|
byte |
directType()
Gets message type.
|
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. |
Collection<Integer> |
invalidPartitions() |
IgniteUuid |
miniId() |
Collection<IgniteTxKey<K>> |
nearEvicted() |
void |
nearEvicted(Collection<IgniteTxKey<K>> nearEvicted) |
void |
nearEvictedBytes(Collection<byte[]> nearEvictedBytes) |
Collection<GridCacheEntryInfo<K,V>> |
preloadEntries()
Gets preload entries returned from backup.
|
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.
|
String |
toString() |
boolean |
writeTo(ByteBuffer buf,
MessageWriter writer)
Writes this message to provided byte buffer.
|
addValueBytes, error, error, futureId, isCurrentlyLocked, 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 GridDhtLockResponse()
Externalizable).public GridDhtLockResponse(int cacheId,
GridCacheVersion lockVer,
IgniteUuid futId,
IgniteUuid miniId,
int cnt)
lockVer - Lock version.futId - Future ID.miniId - Mini future ID.cnt - Key count.public GridDhtLockResponse(int cacheId,
GridCacheVersion lockVer,
IgniteUuid futId,
IgniteUuid miniId,
Throwable err)
lockVer - Lock ID.futId - Future ID.miniId - Mini future ID.err - Error.public Collection<IgniteTxKey<K>> nearEvicted()
public void nearEvicted(Collection<IgniteTxKey<K>> nearEvicted)
nearEvicted - Evicted readers.public void nearEvictedBytes(Collection<byte[]> nearEvictedBytes)
nearEvictedBytes - Key bytes.public IgniteUuid miniId()
public void addInvalidPartition(int part)
part - Invalid partition.public Collection<Integer> invalidPartitions()
public void addPreloadEntry(GridCacheEntryInfo<K,V> info)
info - Info to add.public Collection<GridCacheEntryInfo<K,V>> preloadEntries()
public void prepareMarshal(GridCacheSharedContext<K,V> ctx) throws IgniteCheckedException
prepareMarshal in class GridDistributedLockResponse<K,V>ctx - IgniteCheckedException - If failed.public void finishUnmarshal(GridCacheSharedContext<K,V> ctx, ClassLoader ldr) throws IgniteCheckedException
GridCacheMessage.prepareMarshal(GridCacheSharedContext) method.finishUnmarshal in class GridDistributedLockResponse<K,V>ctx - Context.ldr - Class loader.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