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) |
boolean |
clientFirst() |
void |
clientFirst(boolean clientFirst) |
GridCacheVersion |
dhtVersion() |
void |
dhtVersion(GridCacheVersion dhtVer,
GridCacheVersion writeVer) |
boolean |
empty()
Whether empty or not.
|
Collection<IgniteTxEntry> |
entries() |
void |
evictReaders(Collection<IgniteTxKey> keys) |
boolean |
explicitLock() |
boolean |
last() |
void |
last(boolean last) |
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.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 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 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 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
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.9.0 Release Date : March 2 2017