Class DouiRestInterfaceCacheManager


  • public final class DouiRestInterfaceCacheManager
    extends Object
    DOUI REST interface cache manager.
    Since:
    10.4.0
    Version:
    $Revision: 24335 $ $Date: 2021-01-28 13:08:29 -0300 (Thu, 28 Jan 2021) $
    • Method Detail

      • getCacheConfig

        public static RestInterfaceCacheConfig getCacheConfig​(String serviceInstanceId,
                                                              String restInterfaceId,
                                                              String serviceId)
                                                       throws PortalException
        Returns the REST interface cache configuration.
        Parameters:
        serviceInstanceId - the service instance identifier.
        restInterfaceId - the REST interface identifier.
        Returns:
        the REST interface cache configuration.
        Throws:
        PortalException
        Since:
        10.4.0
      • saveCacheConfigs

        public static void saveCacheConfigs​(String serviceInstanceId,
                                            Map<String,​RestInterfaceCacheConfig> cacheConfigs)
                                     throws PortalException
        Saves the given REST interfaces cache configurations.
        Parameters:
        serviceInstanceId - the service instance identifier.
        cacheConfigs - the cache configurations for each REST interface.
        Throws:
        PortalException
        Since:
        10.4.0
      • clearCache

        public static void clearCache​(ServiceInstanceConfig serviceInstance)
                               throws PortalException
        Clears the REST interface related caches of the given service instance.
        Parameters:
        serviceInstance - the service instance.
        Throws:
        PortalException
        Since:
        10.4.0