Interface CachePluginProvider<C extends CachePluginConfiguration>

    • Method Detail

      • stop

        void stop​(boolean cancel)
        Stops grid component.
        Parameters:
        cancel - If true, then all ongoing tasks or jobs for relevant components need to be cancelled.
      • onIgniteStart

        void onIgniteStart()
                    throws IgniteCheckedException
        Callback that notifies that Ignite has successfully started, including all internal components.
        Throws:
        IgniteCheckedException - Thrown in case of any errors.
      • onIgniteStop

        void onIgniteStop​(boolean cancel)
        Callback to notify that Ignite is about to stop.
        Parameters:
        cancel - Flag indicating whether jobs should be canceled.
      • createComponent

        @Nullable
        <T> T createComponent​(Class<T> cls)
        Type Parameters:
        T - Type of the component to create.
        Parameters:
        cls - Ignite component class.
        Returns:
        Ignite component or null if component is not supported.
      • unwrapCacheEntry

        @Nullable
        <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 - Type of the object cache entry be unwrapped to.
        V - Cache entry value type.
        K - Cache entry key type.
        Parameters:
        entry - Mutable entry to unwrap.
        cls - Type of the expected component.
        Returns:
        New instance of underlying type or null if it's not available.