public class DistributedApiConfigurationCache extends Object implements ApiConfigurationCache
| Constructor and Description |
|---|
DistributedApiConfigurationCache(ApiService apiService,
PolicySetDeploymentService policySetDeploymentService,
ContractSnapshots contractSnapshots,
com.mulesoft.mule.runtime.module.cluster.internal.HazelcastClusterManager hazelcastManager) |
| Modifier and Type | Method and Description |
|---|---|
Optional<PolicySet> |
getPolicies(com.mulesoft.mule.runtime.gw.api.key.ApiKey apiKey)
Retrieves the set of policies of an API
|
void |
initialise(ApiTrackingService apiTrackingService)
Initialises the
ApiConfigurationCache with an ApiTrackingService. |
void |
remove(com.mulesoft.mule.runtime.gw.api.key.ApiKey apiKey)
Removes a record of the set of policies of an API
|
void |
set(com.mulesoft.mule.runtime.gw.api.key.ApiKey apiKey,
PolicySet policySet,
List<com.mulesoft.mule.runtime.gw.api.contract.Sla> slas)
Creates or updates a record of the set of policies of an API
|
public DistributedApiConfigurationCache(ApiService apiService, PolicySetDeploymentService policySetDeploymentService, ContractSnapshots contractSnapshots, com.mulesoft.mule.runtime.module.cluster.internal.HazelcastClusterManager hazelcastManager)
public void set(com.mulesoft.mule.runtime.gw.api.key.ApiKey apiKey, PolicySet policySet, List<com.mulesoft.mule.runtime.gw.api.contract.Sla> slas)
ApiConfigurationCacheset in interface ApiConfigurationCachepolicySet - policy set of the specified APIslas - SLAs of the specified APIpublic void remove(com.mulesoft.mule.runtime.gw.api.key.ApiKey apiKey)
ApiConfigurationCacheremove in interface ApiConfigurationCacheapiKey - API's key.public Optional<PolicySet> getPolicies(com.mulesoft.mule.runtime.gw.api.key.ApiKey apiKey)
ApiConfigurationCachegetPolicies in interface ApiConfigurationCacheapiKey - the APIpublic void initialise(ApiTrackingService apiTrackingService)
ApiConfigurationCacheApiConfigurationCache with an ApiTrackingService. Both object depend on each other, so this
parameter cannot be set in the constructor.initialise in interface ApiConfigurationCacheapiTrackingService - current ApiTrackingService.Copyright © 2014–2024 MuleSoft, Inc.. All rights reserved.