Interface CustomDependencyProvider

  • All Superinterfaces:
    java.lang.AutoCloseable

    public interface CustomDependencyProvider
    extends java.lang.AutoCloseable
    This interface provides implementation for the instance of ExtensibleDependency on the server-side.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      ExtensibleDependency createDependency​(java.lang.String key, java.util.Map<java.lang.String,​java.lang.String> dependencyParameters)
      This method is called on server side to create the instance of ExntensbileDependency ExtensibleDependency.
      void init​(java.util.Map<java.lang.String,​java.lang.String> parameters, java.lang.String cacheName)
      Initializes the CustomDependencyProvider instance with parameters provided at the time of cache configuration.
      • Methods inherited from interface java.lang.AutoCloseable

        close
    • Method Detail

      • init

        void init​(java.util.Map<java.lang.String,​java.lang.String> parameters,
                  java.lang.String cacheName)
           throws java.lang.Exception
        Initializes the CustomDependencyProvider instance with parameters provided at the time of cache configuration.
        Parameters:
        parameters - Collection of parameters provided at the time of cache configuration.
        cacheName - Name of the cache that initiated this instance.
        Throws:
        java.lang.Exception
      • createDependency

        ExtensibleDependency createDependency​(java.lang.String key,
                                              java.util.Map<java.lang.String,​java.lang.String> dependencyParameters)
                                       throws java.lang.Exception
        This method is called on server side to create the instance of ExntensbileDependency ExtensibleDependency. Provider can create instance of any class derived from either ExtensiblDependency ExtensibleDependency or BulkExtensibleDependency BulkExtensibleDependency
        Parameters:
        key - Cache key.
        dependencyParameters - Collection of parameters in key/value pair passed by application to create the instance of Extensible Dependency.
        Returns:
        Instance of ExtensibleDependency ExtensibleDependency
        Throws:
        java.lang.Exception