public interface ApiConfigurationCache
| 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
|
void set(com.mulesoft.mule.runtime.gw.api.key.ApiKey apiKey, PolicySet policySet, List<com.mulesoft.mule.runtime.gw.api.contract.Sla> slas)
policySet - policy set of the specified APIslas - SLAs of the specified APIvoid remove(com.mulesoft.mule.runtime.gw.api.key.ApiKey apiKey)
apiKey - API's key.Optional<PolicySet> getPolicies(com.mulesoft.mule.runtime.gw.api.key.ApiKey apiKey)
apiKey - the APIvoid initialise(ApiTrackingService apiTrackingService)
ApiConfigurationCache with an ApiTrackingService. Both object depend on each other, so this
parameter cannot be set in the constructor.apiTrackingService - current ApiTrackingService.Copyright © 2014–2024 MuleSoft, Inc.. All rights reserved.