Interface CacheObjectValueContext


  • public interface CacheObjectValueContext
    Context to get value of cache object.
    • Method Detail

      • copyOnGet

        boolean copyOnGet()
        Returns:
        Copy on get flag.
      • storeValue

        boolean storeValue()
        Returns:
        True if should store unmarshalled value in cache.
      • addDeploymentInfo

        boolean addDeploymentInfo()
        Returns:
        True if deployment info should be associated with the objects of this cache.
      • binaryEnabled

        boolean binaryEnabled()
        Returns:
        Binary enabled flag.
      • binaryContext

        BinaryContext binaryContext()
        Returns:
        Binary context.
      • waitMetadataWriteIfNeeded

        void waitMetadataWriteIfNeeded​(int typeId)
        Forces caller thread to wait for binary metadata write operation for given type ID. In case of in-memory mode this method becomes a No-op as no binary metadata is written to disk in this mode.
        Parameters:
        typeId - ID of binary type to wait for metadata write operation.
      • classLoader

        @Nullable
        @Nullable ClassLoader classLoader()
        Returns:
        User's class loader.
      • globalLoader

        ClassLoader globalLoader()
        Gets distributed class loader.
        Returns:
        Cache class loader.
      • log

        IgniteLogger log​(Class<?> cls)
        Parameters:
        cls - Class
        Returns:
        Logger for class.
      • isPeerClassLoadingEnabled

        boolean isPeerClassLoadingEnabled()
        Returns:
        true if peer class loading is enabled, false otherwise.
      • transformIfNecessary

        default byte[] transformIfNecessary​(byte[] bytes)
        Transforms bytes according to CacheObjectTransformerProcessor when specified.
        Parameters:
        bytes - Given bytes.
        Returns:
        Transformed bytes.
      • transformIfNecessary

        byte[] transformIfNecessary​(byte[] bytes,
                                    int offset,
                                    int length)
        Transforms bytes according to CacheObjectTransformerProcessor when specified.
        Parameters:
        bytes - Given bytes.
        offset - Index to start from.
        length - Data length.
        Returns:
        Transformed bytes.
      • restoreIfNecessary

        byte[] restoreIfNecessary​(byte[] bytes)
        Restores transformed bytes if necessary.
        Parameters:
        bytes - Given bytes.
        Returns:
        Restored bytes.