Class CachePluginManager

    • Method Detail

      • stop0

        protected void stop0​(boolean cancel,
                             boolean destroy)
        Overrides:
        stop0 in class GridCacheManagerAdapter
        Parameters:
        cancel - Cancel flag.
        destroy - Cache destroy flag.
      • createComponent

        public <T> T createComponent​(Class<T> cls)
        Creates optional component.
        Parameters:
        cls - Component class.
        Returns:
        Created component.
      • unwrapCacheEntry

        @Nullable
        public <T,​K,​V> T unwrapCacheEntry​(javax.cache.Cache.Entry<K,​V> entry,
                                                      Class<T> cls)
        Unwrap entry to specified type. For details see javax.cache.Cache.Entry.unwrap(Class).
        Type Parameters:
        T - Return type.
        K - Key type.
        V - Value type.
        Parameters:
        entry - Entry to unwrap.
        cls - Type of the expected component.
        Returns:
        New instance of underlying type or null if it's not available.