public interface ContractService
extends org.mule.runtime.api.service.Service
Contracts for tracked ApiContractss.| Modifier and Type | Method and Description |
|---|---|
default ContractService |
contractPrefetch(ApiContractsPrefetch prefetch)
|
com.mulesoft.mule.runtime.gw.api.ApiContracts |
contracts(com.mulesoft.mule.runtime.gw.api.key.ApiKey apiKey) |
ContractService |
contractSupplier(com.mulesoft.mule.runtime.gw.api.ApiContractsSupplier supplier)
The
ContractService delegates the maintaining of up-to-date ApiContractss to an ApiContractsSupplier. |
ContractService |
track(com.mulesoft.mule.runtime.gw.api.key.ApiKey key,
String trackerDescription)
Notifies the
ContractService that someone needs to track an ApiContracts with matching key, therefore its contracts
must be fetched. |
List<com.mulesoft.mule.runtime.gw.api.key.ApiKey> |
trackedApis() |
ContractService |
untrack(com.mulesoft.mule.runtime.gw.api.key.ApiKey key,
String trackerDescription)
Notifies the
ContractService that someone is not tracking an ApiContracts anymore, if this Service decides to,
can stop fetching Contracts for it. |
ContractService contractSupplier(com.mulesoft.mule.runtime.gw.api.ApiContractsSupplier supplier)
ContractService delegates the maintaining of up-to-date ApiContractss to an ApiContractsSupplier. Every information
regarding them, will be forwarded to the ApiContractsSupplier.supplier - the ApiContractsSupplier.default ContractService contractPrefetch(ApiContractsPrefetch prefetch)
ContractService delegates the pre fetching of the ApiContractss to an ApiContractsPrefetch. Every information
regarding them, will be forwarded to the ApiContractsSupplier.prefetch - the ApiContractsPrefetch.com.mulesoft.mule.runtime.gw.api.ApiContracts contracts(com.mulesoft.mule.runtime.gw.api.key.ApiKey apiKey)
throws UnknownAPIException
ApiContracts matching the ApiKey, raises an exception when not found.UnknownAPIExceptionContractService track(com.mulesoft.mule.runtime.gw.api.key.ApiKey key, String trackerDescription)
ContractService that someone needs to track an ApiContracts with matching key, therefore its contracts
must be fetched. A description of the tracker is only added for detailed logging.key - ApiKey.trackerDescription - String describing the tracker.ContractService untrack(com.mulesoft.mule.runtime.gw.api.key.ApiKey key, String trackerDescription)
ContractService that someone is not tracking an ApiContracts anymore, if this Service decides to,
can stop fetching Contracts for it. Implementation should only stop fetching them when everyone has stopped tracking
it.key - ApiKey.trackerDescription - String describing the tracker.List<com.mulesoft.mule.runtime.gw.api.key.ApiKey> trackedApis()
ApiKey, every Api in this list will be requiring Contracts.Copyright © 2014–2021 MuleSoft, Inc.. All rights reserved.