Class TimeoutRegistry<K,​V>

    • Constructor Summary

      Constructors 
      Constructor Description
      TimeoutRegistry()  
    • Method Summary

      Modifier and Type Method Description
      void close()  
      void put​(K key, V value, int timeoutMs, java.lang.Runnable timeoutRunnable)  
      java.util.Optional<V> remove​(K key)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TimeoutRegistry

        public TimeoutRegistry()
    • Method Detail

      • put

        public void put​(K key,
                        V value,
                        int timeoutMs,
                        java.lang.Runnable timeoutRunnable)
      • remove

        public java.util.Optional<V> remove​(K key)
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface NotThrowingAutoCloseable