Class ConsistentMapOptions<O extends ConsistentMapOptions<O,​K,​V>,​K,​V>

    • Constructor Detail

      • ConsistentMapOptions

        public ConsistentMapOptions()
    • Method Detail

      • withNullValues

        public O withNullValues()
        Enables null values in the map.
        Returns:
        this builder
      • withPurgeOnUninstall

        public O withPurgeOnUninstall()
        Clears map contents when the owning application is uninstalled.
        Returns:
        this builder
      • withCompatibilityFunction

        public O withCompatibilityFunction​(BiFunction<V,​Version,​V> compatibilityFunction)
        Sets a compatibility function on the map.
        Parameters:
        compatibilityFunction - the compatibility function
        Returns:
        the consistent map builder
      • nullValues

        public boolean nullValues()
        Returns whether null values are supported by the map.
        Returns:
        true if null values are supported; false otherwise
      • purgeOnUninstall

        public boolean purgeOnUninstall()
        Returns if map entries need to be cleared when owning application is uninstalled.
        Returns:
        true if yes; false otherwise.