Package step.grid

Class ExpiringMap<T,​V>

  • All Implemented Interfaces:
    Map<T,​V>, org.jvnet.hk2.internal.Closeable

    public class ExpiringMap<T,​V>
    extends Object
    implements Map<T,​V>, org.jvnet.hk2.internal.Closeable
    • Constructor Detail

      • ExpiringMap

        public ExpiringMap​(long keepaliveTimeout)
      • ExpiringMap

        public ExpiringMap​(long keepaliveTimeout,
                           long checkIntervalMs)
    • Method Detail

      • size

        public int size()
        Specified by:
        size in interface Map<T,​V>
      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface Map<T,​V>
      • containsKey

        public boolean containsKey​(Object key)
        Specified by:
        containsKey in interface Map<T,​V>
      • get

        public V get​(Object key)
        Specified by:
        get in interface Map<T,​V>
      • put

        public V put​(T key,
                     V value)
        Specified by:
        put in interface Map<T,​V>
      • remove

        public V remove​(Object key)
        Specified by:
        remove in interface Map<T,​V>
      • putAll

        public void putAll​(Map<? extends T,​? extends V> m)
        Specified by:
        putAll in interface Map<T,​V>
      • clear

        public void clear()
        Specified by:
        clear in interface Map<T,​V>
      • keySet

        public Set<T> keySet()
        Specified by:
        keySet in interface Map<T,​V>
      • close

        public boolean close()
        Specified by:
        close in interface org.jvnet.hk2.internal.Closeable
      • putOrTouch

        public void putOrTouch​(T key,
                               V value)
      • touch

        public void touch​(T key)
      • isClosed

        public boolean isClosed()
        Specified by:
        isClosed in interface org.jvnet.hk2.internal.Closeable