public class GridDistributedTxMapping extends Object implements Externalizable
| Constructor and Description |
|---|
GridDistributedTxMapping()
Empty constructor required for
Externalizable. |
GridDistributedTxMapping(ClusterNode node) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(IgniteTxEntry entry) |
GridCacheVersion |
dhtVersion() |
void |
dhtVersion(GridCacheVersion dhtVer) |
boolean |
empty() |
Collection<IgniteTxEntry> |
entries() |
void |
entries(Collection<IgniteTxEntry> entries,
boolean readOnly) |
void |
evictPartitions(int[] parts) |
void |
evictReaders(Collection<IgniteTxKey> keys) |
boolean |
explicitLock() |
boolean |
last() |
void |
last(boolean last) |
Collection<UUID> |
lastBackups() |
void |
lastBackups(Collection<UUID> lastBackups) |
void |
markExplicitLock()
Sets explicit flag to
true. |
boolean |
near() |
void |
near(boolean near) |
ClusterNode |
node() |
void |
readExternal(ObjectInput in) |
Collection<IgniteTxEntry> |
reads() |
boolean |
removeEntry(IgniteTxEntry entry) |
String |
toString() |
void |
writeExternal(ObjectOutput out) |
Collection<IgniteTxEntry> |
writes() |
public GridDistributedTxMapping()
Externalizable.public GridDistributedTxMapping(ClusterNode node)
node - Mapped node.@Nullable public Collection<UUID> lastBackups()
public void lastBackups(@Nullable Collection<UUID> lastBackups)
lastBackups - IDs of backup nodes receiving last prepare request during this mapping.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 near()
True if mapping is for near caches, false otherwise.public void near(boolean near)
near - True if mapping is for near caches, false otherwise.public ClusterNode node()
public Collection<IgniteTxEntry> entries()
public void entries(Collection<IgniteTxEntry> entries, boolean readOnly)
entries - Mapped entries.readOnly - Flag indicating that passed in collection is read-only.public boolean explicitLock()
True if lock is explicit.public void markExplicitLock()
true.public GridCacheVersion dhtVersion()
public void dhtVersion(GridCacheVersion dhtVer)
dhtVer - DHT version.public Collection<IgniteTxEntry> reads()
public Collection<IgniteTxEntry> writes()
public void add(IgniteTxEntry entry)
entry - Adds entry.public boolean removeEntry(IgniteTxEntry entry)
entry - Entry to remove.True if entry was removed.public void evictPartitions(@Nullable int[] parts)
parts - Evicts partitions from mapping.public void evictReaders(@Nullable Collection<IgniteTxKey> keys)
keys - Keys to evict readers for.public boolean empty()
public void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundException
Follow @ApacheIgnite
Ignite Fabric : ver. 1.0.0-RC3 Release Date : March 24 2015