Class JvmCacheAdapter<K,​V>

  • All Implemented Interfaces:
    com.atlassian.cache.Cache<K,​V>

    @Deprecated
    public final class JvmCacheAdapter<K,​V>
    extends Object
    implements com.atlassian.cache.Cache<K,​V>
    Deprecated.
    since 7.20
    An implementation of Cache backed by a JvmCache. This can be useful for backwards compatibility code.
    Since:
    7.20
    • Constructor Detail

      • JvmCacheAdapter

        public JvmCacheAdapter​(com.atlassian.vcache.JvmCache<K,​V> delegate)
        Deprecated.
    • Method Detail

      • getName

        @Nonnull
        public String getName()
        Deprecated.
        Specified by:
        getName in interface com.atlassian.cache.Cache<K,​V>
      • containsKey

        public boolean containsKey​(@Nonnull
                                   K key)
        Deprecated.
        Specified by:
        containsKey in interface com.atlassian.cache.Cache<K,​V>
      • getKeys

        @Nonnull
        public Collection<K> getKeys()
        Deprecated.
        Specified by:
        getKeys in interface com.atlassian.cache.Cache<K,​V>
      • get

        @Nullable
        public V get​(@Nonnull
                     K key)
        Deprecated.
        Specified by:
        get in interface com.atlassian.cache.Cache<K,​V>
      • get

        @Nonnull
        public V get​(@Nonnull
                     K key,
                     @Nonnull
                     com.atlassian.cache.Supplier<? extends V> valueSupplier)
        Deprecated.
        Specified by:
        get in interface com.atlassian.cache.Cache<K,​V>
      • put

        public void put​(@Nonnull
                        K key,
                        @Nonnull
                        V value)
        Deprecated.
        Specified by:
        put in interface com.atlassian.cache.Cache<K,​V>
      • putIfAbsent

        @Nullable
        public V putIfAbsent​(@Nonnull
                             K key,
                             @Nonnull
                             V value)
        Deprecated.
        Specified by:
        putIfAbsent in interface com.atlassian.cache.Cache<K,​V>
      • remove

        public void remove​(@Nonnull
                           K key)
        Deprecated.
        Specified by:
        remove in interface com.atlassian.cache.Cache<K,​V>
      • remove

        public boolean remove​(@Nonnull
                              K key,
                              @Nonnull
                              V value)
        Deprecated.
        Specified by:
        remove in interface com.atlassian.cache.Cache<K,​V>
      • removeAll

        public void removeAll()
        Deprecated.
        Specified by:
        removeAll in interface com.atlassian.cache.Cache<K,​V>
      • replace

        public boolean replace​(@Nonnull
                               K key,
                               @Nonnull
                               V oldValue,
                               @Nonnull
                               V newValue)
        Deprecated.
        Specified by:
        replace in interface com.atlassian.cache.Cache<K,​V>
      • addListener

        public void addListener​(@Nonnull
                                com.atlassian.cache.CacheEntryListener<K,​V> listener,
                                boolean includeValues)
        Deprecated.
        Specified by:
        addListener in interface com.atlassian.cache.Cache<K,​V>
      • removeListener

        public void removeListener​(@Nonnull
                                   com.atlassian.cache.CacheEntryListener<K,​V> listener)
        Deprecated.
        Specified by:
        removeListener in interface com.atlassian.cache.Cache<K,​V>