Class DataEntry

    • Constructor Detail

      • DataEntry

        public DataEntry​(int cacheId,
                         KeyCacheObject key,
                         @Nullable
                         @Nullable CacheObject val,
                         GridCacheOperation op,
                         GridCacheVersion nearXidVer,
                         GridCacheVersion writeVer,
                         long expireTime,
                         int partId,
                         long partCnt,
                         byte flags)
        Parameters:
        cacheId - Cache ID.
        key - Key.
        val - Value or null for delete operation.
        op - Operation.
        nearXidVer - Near transaction version.
        writeVer - Write version.
        expireTime - Expire time.
        partId - Partition ID.
        partCnt - Partition counter.
        flags - Entry flags.
    • Method Detail

      • flags

        public static byte flags​(boolean primary)
        Parameters:
        primary - True if node is primary for partition in the moment of logging.
        Returns:
        Flags value.
      • flags

        public static byte flags​(boolean primary,
                                 boolean preload,
                                 boolean fromStore)
        Parameters:
        primary - True if node is primary for partition in the moment of logging.
        preload - True if logged during preload(rebalance).
        fromStore - True if logged during loading from third-party store.
        Returns:
        Flags value.
      • cacheId

        public int cacheId()
        Returns:
        Cache ID.
      • value

        public CacheObject value()
        Returns:
        Value cache object.
      • nearXidVersion

        public GridCacheVersion nearXidVersion()
        Returns:
        Near transaction version if the write was transactional.
      • partitionId

        public int partitionId()
        Returns:
        Partition ID.
      • partitionCounter

        public long partitionCounter()
        Returns:
        Partition counter.
      • partitionCounter

        public DataEntry partitionCounter​(long partCnt)
        Sets partition update counter to entry.
        Parameters:
        partCnt - Partition update counter.
        Returns:
        this for chaining.
      • expireTime

        public long expireTime()
        Returns:
        Expire time.
      • flags

        public byte flags()
        Entry flags.
        See Also:
        flags