Package com.oracle.bmc.http.internal
Class BaseAsyncClient
- java.lang.Object
-
- com.oracle.bmc.http.internal.BaseAsyncClient
-
- All Implemented Interfaces:
AutoCloseable
- Direct Known Subclasses:
AccessGovernanceCPAsyncClient,AccessRequestsAsyncClient,AccountAsyncClient,AddressRuleServiceAsyncClient,AddressServiceAsyncClient,AiDataPlatformAsyncClient,AIServiceDocumentAsyncClient,AIServiceLanguageAsyncClient,AIServiceSpeechAsyncClient,AIServiceVisionAsyncClient,AnalyticsAsyncClient,AnnouncementAsyncClient,AnnouncementsPreferencesAsyncClient,AnnouncementSubscriptionAsyncClient,ApiGatewayAsyncClient,ApiMetadataAsyncClient,ApiPlatformAsyncClient,ApmDomainAsyncClient,ApmSyntheticAsyncClient,ApplicationDependencyManagementAsyncClient,AppmgmtControlAsyncClient,ArtifactsAsyncClient,AttachmentAsyncClient,AttributesAsyncClient,AuditAsyncClient,AutoScalingAsyncClient,BastionAsyncClient,BdsAsyncClient,BillingScheduleAsyncClient,BillingScheduleAsyncClient,BlockchainPlatformAsyncClient,BlockstorageAsyncClient,BudgetAsyncClient,CapacityManagementAsyncClient,CertificatesAsyncClient,CertificatesManagementAsyncClient,ChannelsAsyncClient,CloudGuardAsyncClient,ClusterAsyncClient,ClusterPlacementGroupsCPAsyncClient,CommitmentAsyncClient,CommitmentAsyncClient,CommonAsyncClient,ComputeAsyncClient,ComputeCloudAtCustomerAsyncClient,ComputedUsageAsyncClient,ComputedUsageAsyncClient,ComputeInstanceAgentAsyncClient,ComputeManagementAsyncClient,ConfigAsyncClient,ConnectorPluginsAsyncClient,ContainerEngineAsyncClient,ContainerInstanceAsyncClient,DashboardAsyncClient,DashboardGroupAsyncClient,DashxApisAsyncClient,DatabaseAsyncClient,DatabaseMigrationAsyncClient,DatabaseRecoveryAsyncClient,DatabaseToolsAsyncClient,DataCatalogAsyncClient,DataFlowAsyncClient,DataIntegrationAsyncClient,DataLabelingAsyncClient,DataLabelingManagementAsyncClient,DataplaneAsyncClient,DataSafeAsyncClient,DataScienceAsyncClient,DatastoreAsyncClient,DatastoreClusterAsyncClient,DbBackupsAsyncClient,DbLifeCycleManagementAsyncClient,DbManagementAsyncClient,DbMulticloudGCPProviderAsyncClient,DbSystemAsyncClient,DelegateAccessControlAsyncClient,DemandSignalAsyncClient,DeploymentAsyncClient,DesktopServiceAsyncClient,DevopsAsyncClient,DiagnosabilityAsyncClient,DisasterRecoveryAsyncClient,DiscoveryAsyncClient,DistributedAutonomousDbServiceAsyncClient,DistributedDbPrivateEndpointServiceAsyncClient,DistributedDbServiceAsyncClient,DistributedDbWorkRequestServiceAsyncClient,DnsAsyncClient,DomainAsyncClient,DomainGovernanceAsyncClient,EkmAsyncClient,EmailAsyncClient,EmailDPAsyncClient,EmWarehouseAsyncClient,EsxiHostAsyncClient,EventAsyncClient,EventsAsyncClient,FileStorageAsyncClient,FleetAppsManagementAdminAsyncClient,FleetAppsManagementAsyncClient,FleetAppsManagementCatalogAsyncClient,FleetAppsManagementMaintenanceWindowAsyncClient,FleetAppsManagementOperationsAsyncClient,FleetAppsManagementProvisionAsyncClient,FleetAppsManagementRunbooksAsyncClient,FleetAppsManagementWorkRequestAsyncClient,FleetSoftwareUpdateAsyncClient,FunctionsInvokeAsyncClient,FunctionsManagementAsyncClient,FusionApplicationsAsyncClient,GatewayAsyncClient,GenerativeAiAgentAsyncClient,GenerativeAiAgentRuntimeAsyncClient,GenerativeAiAsyncClient,GenerativeAiInferenceAsyncClient,GenericArtifactsContentAsyncClient,GoldenGateAsyncClient,GovernanceAsyncClient,GovernanceRuleAsyncClient,HealthChecksAsyncClient,IdentityAsyncClient,IdentityDomainsAsyncClient,IncidentAsyncClient,IntegrationInstanceAsyncClient,InternalDemandSignalAsyncClient,InventoryAsyncClient,InvoiceServiceAsyncClient,InvoiceSummaryAsyncClient,IotAsyncClient,JavaDownloadAsyncClient,JavaManagementServiceAsyncClient,JmsUtilsAsyncClient,KafkaClusterAsyncClient,KmsCryptoAsyncClient,KmsHsmClusterAsyncClient,KmsManagementAsyncClient,KmsVaultAsyncClient,LicenseManagerAsyncClient,LifecycleEnvironmentAsyncClient,LimitsAsyncClient,LinkAsyncClient,LoadBalancerAsyncClient,LockboxAsyncClient,LogAnalyticsAsyncClient,LoggingAsyncClient,LoggingManagementAsyncClient,LogSearchAsyncClient,LustreFileStorageAsyncClient,MacDeviceAsyncClient,MacOrderAsyncClient,ManagedInstanceAsyncClient,ManagedInstanceGroupAsyncClient,ManagedMySqlDatabasesAsyncClient,ManagementAgentAsyncClient,ManagementAsyncClient,ManagementStationAsyncClient,MarketplaceAsyncClient,MarketplacePublisherAsyncClient,MediaServicesAsyncClient,MediaStreamAsyncClient,MetadataAsyncClient,MigrationAsyncClient,ModelDeploymentAsyncClient,MonitoredRegionAsyncClient,MonitoringAsyncClient,MultiCloudResourceDiscoveryAsyncClient,MultiCloudsMetadataAsyncClient,MysqlaasAsyncClient,NetworkFirewallAsyncClient,NetworkLoadBalancerAsyncClient,NosqlAsyncClient,NotificationControlPlaneAsyncClient,NotificationDataPlaneAsyncClient,ObjectStorageAsyncClient,OcbAgentSvcAsyncClient,OccDemandSignalAsyncClient,OccMetricsAsyncClient,OceInstanceAsyncClient,OciCacheConfigSetAsyncClient,OciCacheDefaultConfigSetAsyncClient,OciCacheUserAsyncClient,OdaAsyncClient,OdapackageAsyncClient,OfferAsyncClient,OmhubNetworkAnchorAsyncClient,OmhubResourceAnchorAsyncClient,OnboardingAsyncClient,OpensearchClusterAsyncClient,OpensearchClusterBackupAsyncClient,OpensearchClusterPipelineAsyncClient,OperationsInsightsAsyncClient,OperatorActionsAsyncClient,OperatorControlAssignmentAsyncClient,OperatorControlAsyncClient,OptimizerAsyncClient,OracleDBAzureBlobContainerAsyncClient,OracleDBAzureBlobMountAsyncClient,OracleDBAzureConnectorAsyncClient,OracleDbAzureKeyAsyncClient,OracleDbAzureVaultAssociationAsyncClient,OracleDbAzureVaultAsyncClient,OrdersAsyncClient,OrganizationAsyncClient,OrganizationSubscriptionAsyncClient,OrganizationSubscriptionAsyncClient,PerfhubAsyncClient,PluginAsyncClient,PluginconfigAsyncClient,PostgresqlAsyncClient,PrivilegedApiControlAsyncClient,PrivilegedApiRequestsAsyncClient,PrivilegedApiWorkRequestAsyncClient,QueryAsyncClient,QueueAdminAsyncClient,QueueAsyncClient,QuotasAsyncClient,RatecardAsyncClient,RatecardAsyncClient,RecipientInvitationAsyncClient,RedirectAsyncClient,RedisClusterAsyncClient,RedisIdentityAsyncClient,ReplicasAsyncClient,ReportingManagedInstanceAsyncClient,ResourceAnalyticsInstanceAsyncClient,ResourceManagerAsyncClient,ResourcesAsyncClient,ResourceSearchAsyncClient,RewardsAsyncClient,RoverBundleAsyncClient,RoverClusterAsyncClient,RoverEntitlementAsyncClient,RoverNodeAsyncClient,ScheduleAsyncClient,ScheduledJobAsyncClient,ScheduledQueryAsyncClient,SddcAsyncClient,SecretsAsyncClient,SecurityAttributeAsyncClient,SenderInvitationAsyncClient,ServiceAsyncClient,ServiceCatalogAsyncClient,ServiceConnectorAsyncClient,ServiceManagerProxyAsyncClient,ShapeAsyncClient,ShardedDatabaseServiceAsyncClient,SoftwareSourceAsyncClient,SqlTuningAsyncClient,StackMonitoringAsyncClient,StreamAdminAsyncClient,StreamAsyncClient,SubscribedServiceAsyncClient,SubscribersAsyncClient,SubscriptionAsyncClient,SubscriptionAsyncClient,SubscriptionAsyncClient,SubscriptionServiceAsyncClient,TenancyAttachmentAsyncClient,ThreatintelAsyncClient,TraceAsyncClient,UsageapiAsyncClient,UsagelimitsAsyncClient,UsagePlansAsyncClient,VaultsAsyncClient,VbInstanceAsyncClient,VbsInstanceAsyncClient,VirtualNetworkAsyncClient,VnMonitoringAsyncClient,VulnerabilityScanningAsyncClient,WaaAsyncClient,WaasAsyncClient,WafAsyncClient,WeblogicManagementServiceAsyncClient,WeblogicManagementServiceConfigurationAsyncClient,WorkRequestAsyncClient,WorkRequestAsyncClient,WorkRequestAsyncClient,WorkRequestAsyncClient,WorkRequestAsyncClient,WorkRequestAsyncClient,WorkRequestAsyncClient,WorkRequestAsyncClient,WorkRequestsAsyncClient,WorkRequestsAsyncClient,WorkRequestsAsyncClient,ZprAsyncClient
public class BaseAsyncClient extends Object implements AutoCloseable
-
-
Field Summary
Fields Modifier and Type Field Description StringclientCommonLibraryVersionCompatible SDK version, provided by the codegen.Optional<String>minimumClientCommonLibraryVersionFromClientMinimum compatible SDK version, maybe provided by the codegen.
-
Constructor Summary
Constructors Modifier Constructor Description protectedBaseAsyncClient(ClientBuilderBase<?,?> builder, AbstractAuthenticationDetailsProvider authenticationDetailsProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected <REQ extends BmcRequest<?>,RESP extends BmcResponse,RESP_BUILDER extends BmcResponse.Builder<RESP>>
ClientCall<REQ,RESP,RESP_BUILDER>clientCall(REQ request, Supplier<RESP_BUILDER> responseBuilder)voidclose()StringgetClientCommonLibraryVersion()protected ClientConfiguratorgetDefaultConfigurator()StringgetEndpoint()Optional<String>getMinimumClientCommonLibraryVersionFromClient()voidpopulateServiceParametersInEndpoint(String endpoint, Map<String,Object> requiredParametersMap)Populate the parameters in the endpoint with its corresponding value and update the base endpoint.voidrefreshClient()Rebuild the backingHttpClient.voidsetEndpoint(String endpoint)protected voidsetRegion(Region region)protected voidsetRegion(String regionId)voidupdateBaseEndpoint(String endpoint)This method should be used for parameterized endpoint templates only.voiduseRealmSpecificEndpointTemplate(boolean useOfRealmSpecificEndpointTemplateEnabled)This method should be used to enable or disable the use of realm-specific endpoint template.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.AutoCloseable
close
-
-
-
-
Field Detail
-
clientCommonLibraryVersion
public final String clientCommonLibraryVersion
Compatible SDK version, provided by the codegen.
-
-
Constructor Detail
-
BaseAsyncClient
protected BaseAsyncClient(ClientBuilderBase<?,?> builder, AbstractAuthenticationDetailsProvider authenticationDetailsProvider)
-
-
Method Detail
-
getDefaultConfigurator
protected ClientConfigurator getDefaultConfigurator()
-
useRealmSpecificEndpointTemplate
public void useRealmSpecificEndpointTemplate(boolean useOfRealmSpecificEndpointTemplateEnabled)
This method should be used to enable or disable the use of realm-specific endpoint template.The default value is null. To enable the use of endpoint template defined for the realm in use, set the flag to true To disable the use of endpoint template defined for the realm in use, set the flag to false
- Parameters:
useOfRealmSpecificEndpointTemplateEnabled- This flag can be set to true or false to enable or disable the use of realm-specific endpoint template respectively
-
populateServiceParametersInEndpoint
public final void populateServiceParametersInEndpoint(String endpoint, Map<String,Object> requiredParametersMap)
Populate the parameters in the endpoint with its corresponding value and update the base endpoint.The value will be populated iff the parameter in endpoint is a required request path parameter or a required request query parameter. If not, the parameter in the endpoint will be ignored and left blank.
- Parameters:
endpoint- The endpoint template in userequiredParametersMap- Map of parameter name as key and value set in request path or query parameter as value
-
updateBaseEndpoint
public final void updateBaseEndpoint(String endpoint)
This method should be used for parameterized endpoint templates only.This does not include {region} and {secondLevelDomain} parameters.
- Parameters:
endpoint- The updated endpoint to use
-
setEndpoint
public final void setEndpoint(String endpoint)
-
getEndpoint
public final String getEndpoint()
-
refreshClient
public final void refreshClient()
Rebuild the backingHttpClient.This will call
ClientConfigurators again, and can be used to e.g. refresh the SSL certificate.
-
setRegion
protected void setRegion(Region region)
-
setRegion
protected void setRegion(String regionId)
-
close
public final void close()
- Specified by:
closein interfaceAutoCloseable
-
getClientCommonLibraryVersion
public String getClientCommonLibraryVersion()
-
getMinimumClientCommonLibraryVersionFromClient
public Optional<String> getMinimumClientCommonLibraryVersionFromClient()
-
clientCall
protected <REQ extends BmcRequest<?>,RESP extends BmcResponse,RESP_BUILDER extends BmcResponse.Builder<RESP>> ClientCall<REQ,RESP,RESP_BUILDER> clientCall(REQ request, Supplier<RESP_BUILDER> responseBuilder)
-
-