Class GridDistributedTxMapping


  • public class GridDistributedTxMapping
    extends Object
    Transaction node mapping.
    • Constructor Detail

      • GridDistributedTxMapping

        public GridDistributedTxMapping​(ClusterNode primary)
        Parameters:
        primary - Primary node.
    • Method Detail

      • last

        public boolean last()
        Returns:
        True if this is last mapping for node.
      • last

        public void last​(boolean last)
        Parameters:
        last - If True this is last mapping for node.
      • clientFirst

        public boolean clientFirst()
        Returns:
        True if this is first mapping for optimistic tx on client node.
      • clientFirst

        public void clientFirst​(boolean clientFirst)
        Parameters:
        clientFirst - True if this is first mapping for optimistic tx on client node.
      • hasColocatedCacheEntries

        public boolean hasColocatedCacheEntries()
        Returns:
        True if has colocated cache entries.
      • hasNearCacheEntries

        public boolean hasNearCacheEntries()
        Returns:
        True if has near cache entries.
      • primary

        public ClusterNode primary()
        Returns:
        Node.
      • nearCacheEntries

        @Nullable
        public @Nullable Collection<IgniteTxEntry> nearCacheEntries()
        Returns:
        Near cache entries.
      • explicitLock

        public boolean explicitLock()
        Returns:
        True if lock is explicit.
      • markExplicitLock

        public void markExplicitLock()
        Sets explicit flag to true.
      • colocatedEntriesWrites

        public Collection<IgniteTxEntry> colocatedEntriesWrites()
        Returns:
        Colocated cache writes.
      • add

        public void add​(IgniteTxEntry entry)
        Parameters:
        entry - Adds entry.
      • removeEntry

        public boolean removeEntry​(IgniteTxEntry entry)
        Parameters:
        entry - Entry to remove.
        Returns:
        True if entry was removed.
      • evictReaders

        public void evictReaders​(@Nullable
                                 @Nullable Collection<IgniteTxKey> keys)
        Parameters:
        keys - Keys to evict readers for.
      • empty

        public boolean empty()
        Whether empty or not.
        Returns:
        Empty or not.