Class CacheObjectImpl

    • Constructor Detail

      • CacheObjectImpl

        public CacheObjectImpl()
      • CacheObjectImpl

        public CacheObjectImpl​(Object val,
                               byte[] valBytes)
        Parameters:
        val - Value.
        valBytes - Value bytes.
    • Method Detail

      • isPlatformType

        public boolean isPlatformType()
        Gets flag indicating whether object value is a platform type. Platform types will be automatically deserialized on public API cache operations regardless whether IgniteCache.withKeepBinary() is used or not.
        Returns:
        Platform type flag.
      • value

        @Nullable
        public <T> T value​(CacheObjectValueContext ctx,
                           boolean cpy)
        Parameters:
        ctx - Context.
        cpy - If true need to copy value.
        Returns:
        Value.
      • value

        @Nullable
        public <T> T value​(CacheObjectValueContext ctx,
                           boolean cpy,
                           ClassLoader ldr)
        Deserializes a value from an internal representation.
        Parameters:
        ctx - Context.
        cpy - If true need to copy value.
        ldr - Class loader, if it is null, default class loader will be used.
        Returns:
        Value.
      • onAckReceived

        public void onAckReceived()
        Method called when ack message received.
      • directType

        public short directType()
        Gets message type.
        Returns:
        Message type.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • prepareForCache

        public CacheObject prepareForCache​(CacheObjectContext ctx)
        Prepares cache object for cache (e.g. copies user-provided object if needed).
        Parameters:
        ctx - Cache context.
        Returns:
        Instance to store in cache.