Interface Bean<K,​V extends BeanInstance<K>>

    • Method Detail

      • isValid

        boolean isValid()
        Indicates whether or not this bean is valid, i.e. not closed nor removed.
        Returns:
        true, if this bean is valid, false otherwise
      • remove

        void remove​(Consumer<V> removeTask)
        Removes this bean from the cache, executing the specified task.
      • close

        void close()
        Closes any resources used by this bean.
        Specified by:
        close in interface AutoCloseable