public class GridDistributedTxMapping extends Object
| Constructor and Description |
|---|
GridDistributedTxMapping(ClusterNode primary) |
public GridDistributedTxMapping(ClusterNode primary)
primary - Primary node.public boolean last()
True if this is last mapping for node.public void last(boolean last)
last - If True this is last mapping for node.public boolean clientFirst()
True if this is first mapping for optimistic tx on client node.public void clientFirst(boolean clientFirst)
clientFirst - True if this is first mapping for optimistic tx on client node.public boolean hasColocatedCacheEntries()
True if has colocated cache entries.public boolean hasNearCacheEntries()
True if has near cache entries.public ClusterNode primary()
public Collection<IgniteTxEntry> entries()
@Nullable public @Nullable Collection<IgniteTxEntry> nearCacheEntries()
public boolean queryUpdate()
True if mapping was created for a query update.public void markQueryUpdate()
true.public boolean explicitLock()
True if lock is explicit.public void markExplicitLock()
true.public GridCacheVersion dhtVersion()
public void dhtVersion(GridCacheVersion dhtVer, GridCacheVersion writeVer)
dhtVer - DHT version.writeVer - DHT writeVersion.public Collection<IgniteTxEntry> reads()
public Collection<IgniteTxEntry> writes()
public Collection<IgniteTxEntry> nearEntriesReads()
public Collection<IgniteTxEntry> nearEntriesWrites()
public Collection<IgniteTxEntry> colocatedEntriesReads()
public Collection<IgniteTxEntry> colocatedEntriesWrites()
public void add(IgniteTxEntry entry)
entry - Adds entry.public boolean removeEntry(IgniteTxEntry entry)
entry - Entry to remove.True if entry was removed.public void evictReaders(@Nullable
@Nullable Collection<IgniteTxKey> keys)
keys - Keys to evict readers for.public boolean empty()
public void addBackups(Collection<UUID> newBackups)
newBackups - Backups to be added to this mapping.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.11.1 Release Date : December 20 2021