com.oracle.bmc.dataintegration.DataIntegrationAsyncClient Maven / Gradle / Ivy
Show all versions of oci-java-sdk-dataintegration Show documentation
/**
* Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
*/
package com.oracle.bmc.dataintegration;
import com.oracle.bmc.dataintegration.internal.http.*;
import com.oracle.bmc.dataintegration.requests.*;
import com.oracle.bmc.dataintegration.responses.*;
/**
* Async client implementation for DataIntegration service.
* There are two ways to use async client:
* 1. Use AsyncHandler: using AsyncHandler, if the response to the call is an {@link java.io.InputStream}, like
* getObject Api in object storage service, developers need to process the stream in AsyncHandler, and not anywhere else,
* because the stream will be closed right after the AsyncHandler is invoked.
* 2. Use Java Future: using Java Future, developers need to close the stream after they are done with the Java Future.
* Accessing the result should be done in a mutually exclusive manner, either through the Future or the AsyncHandler,
* but not both. If the Future is used, the caller should pass in null as the AsyncHandler. If the AsyncHandler
* is used, it is still safe to use the Future to determine whether or not the request was completed via
* Future.isDone/isCancelled.
* Please refer to https://github.com/oracle/oci-java-sdk/blob/master/bmc-examples/src/main/java/ResteasyClientWithObjectStorageExample.java
*/
@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200430")
@lombok.extern.slf4j.Slf4j
public class DataIntegrationAsyncClient implements DataIntegrationAsync {
/**
* Service instance for DataIntegration.
*/
public static final com.oracle.bmc.Service SERVICE =
com.oracle.bmc.Services.serviceBuilder()
.serviceName("DATAINTEGRATION")
.serviceEndpointPrefix("")
.serviceEndpointTemplate(
"https://dataintegration.{region}.oci.{secondLevelDomain}")
.build();
@lombok.Getter(value = lombok.AccessLevel.PACKAGE)
private final com.oracle.bmc.http.internal.RestClient client;
private final com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider
authenticationDetailsProvider;
/**
* Creates a new service instance using the given authentication provider.
* @param authenticationDetailsProvider The authentication details provider, required.
*/
public DataIntegrationAsyncClient(
com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider) {
this(authenticationDetailsProvider, null);
}
/**
* Creates a new service instance using the given authentication provider and client configuration.
* @param authenticationDetailsProvider The authentication details provider, required.
* @param configuration The client configuration, optional.
*/
public DataIntegrationAsyncClient(
com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider,
com.oracle.bmc.ClientConfiguration configuration) {
this(authenticationDetailsProvider, configuration, null);
}
/**
* Creates a new service instance using the given authentication provider and client configuration. Additionally,
* a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization.
* @param authenticationDetailsProvider The authentication details provider, required.
* @param configuration The client configuration, optional.
* @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional.
*/
public DataIntegrationAsyncClient(
com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider,
com.oracle.bmc.ClientConfiguration configuration,
com.oracle.bmc.http.ClientConfigurator clientConfigurator) {
this(
authenticationDetailsProvider,
configuration,
clientConfigurator,
new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory(
com.oracle.bmc.http.signing.SigningStrategy.STANDARD));
}
/**
* Creates a new service instance using the given authentication provider and client configuration. Additionally,
* a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization.
*
* This is an advanced constructor for clients that want to take control over how requests are signed.
* @param authenticationDetailsProvider The authentication details provider, required.
* @param configuration The client configuration, optional.
* @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional.
* @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service.
*/
public DataIntegrationAsyncClient(
com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
com.oracle.bmc.ClientConfiguration configuration,
com.oracle.bmc.http.ClientConfigurator clientConfigurator,
com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory) {
this(
authenticationDetailsProvider,
configuration,
clientConfigurator,
defaultRequestSignerFactory,
new java.util.ArrayList());
}
/**
* Creates a new service instance using the given authentication provider and client configuration. Additionally,
* a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization.
*
* This is an advanced constructor for clients that want to take control over how requests are signed.
* @param authenticationDetailsProvider The authentication details provider, required.
* @param configuration The client configuration, optional.
* @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional.
* @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service.
* @param additionalClientConfigurators Additional client configurators to be run after the primary configurator.
*/
public DataIntegrationAsyncClient(
com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
com.oracle.bmc.ClientConfiguration configuration,
com.oracle.bmc.http.ClientConfigurator clientConfigurator,
com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory,
java.util.List additionalClientConfigurators) {
this(
authenticationDetailsProvider,
configuration,
clientConfigurator,
defaultRequestSignerFactory,
additionalClientConfigurators,
null);
}
/**
* Creates a new service instance using the given authentication provider and client configuration. Additionally,
* a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization.
*
* This is an advanced constructor for clients that want to take control over how requests are signed.
* @param authenticationDetailsProvider The authentication details provider, required.
* @param configuration The client configuration, optional.
* @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional.
* @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service.
* @param additionalClientConfigurators Additional client configurators to be run after the primary configurator.
* @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider})
*/
public DataIntegrationAsyncClient(
com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
com.oracle.bmc.ClientConfiguration configuration,
com.oracle.bmc.http.ClientConfigurator clientConfigurator,
com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory,
java.util.List additionalClientConfigurators,
String endpoint) {
this(
authenticationDetailsProvider,
configuration,
clientConfigurator,
defaultRequestSignerFactory,
com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory
.createDefaultRequestSignerFactories(),
additionalClientConfigurators,
endpoint);
}
/**
* Creates a new service instance using the given authentication provider and client configuration. Additionally,
* a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization.
*
* This is an advanced constructor for clients that want to take control over how requests are signed.
* @param authenticationDetailsProvider The authentication details provider, required.
* @param configuration The client configuration, optional.
* @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional.
* @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service.
* @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer
* @param additionalClientConfigurators Additional client configurators to be run after the primary configurator.
* @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider})
*/
public DataIntegrationAsyncClient(
com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
com.oracle.bmc.ClientConfiguration configuration,
com.oracle.bmc.http.ClientConfigurator clientConfigurator,
com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory,
java.util.Map<
com.oracle.bmc.http.signing.SigningStrategy,
com.oracle.bmc.http.signing.RequestSignerFactory>
signingStrategyRequestSignerFactories,
java.util.List additionalClientConfigurators,
String endpoint) {
this(
authenticationDetailsProvider,
configuration,
clientConfigurator,
defaultRequestSignerFactory,
signingStrategyRequestSignerFactories,
additionalClientConfigurators,
endpoint,
com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder());
}
/**
* Creates a new service instance using the given authentication provider and client configuration. Additionally,
* a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization.
*
* This is an advanced constructor for clients that want to take control over how requests are signed.
* @param authenticationDetailsProvider The authentication details provider, required.
* @param configuration The client configuration, optional.
* @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional.
* @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service.
* @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer
* @param additionalClientConfigurators Additional client configurators to be run after the primary configurator.
* @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider})
* @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory}
*/
public DataIntegrationAsyncClient(
com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
com.oracle.bmc.ClientConfiguration configuration,
com.oracle.bmc.http.ClientConfigurator clientConfigurator,
com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory,
java.util.Map<
com.oracle.bmc.http.signing.SigningStrategy,
com.oracle.bmc.http.signing.RequestSignerFactory>
signingStrategyRequestSignerFactories,
java.util.List additionalClientConfigurators,
String endpoint,
com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) {
this.authenticationDetailsProvider = authenticationDetailsProvider;
java.util.List authenticationDetailsConfigurators =
new java.util.ArrayList<>();
if (this.authenticationDetailsProvider
instanceof com.oracle.bmc.auth.ProvidesClientConfigurators) {
authenticationDetailsConfigurators.addAll(
((com.oracle.bmc.auth.ProvidesClientConfigurators)
this.authenticationDetailsProvider)
.getClientConfigurators());
}
java.util.List allConfigurators =
new java.util.ArrayList<>(additionalClientConfigurators);
allConfigurators.addAll(authenticationDetailsConfigurators);
com.oracle.bmc.http.internal.RestClientFactory restClientFactory =
restClientFactoryBuilder
.clientConfigurator(clientConfigurator)
.additionalClientConfigurators(allConfigurators)
.build();
com.oracle.bmc.http.signing.RequestSigner defaultRequestSigner =
defaultRequestSignerFactory.createRequestSigner(
SERVICE, this.authenticationDetailsProvider);
java.util.Map<
com.oracle.bmc.http.signing.SigningStrategy,
com.oracle.bmc.http.signing.RequestSigner>
requestSigners = new java.util.HashMap<>();
if (this.authenticationDetailsProvider
instanceof com.oracle.bmc.auth.BasicAuthenticationDetailsProvider) {
for (com.oracle.bmc.http.signing.SigningStrategy s :
com.oracle.bmc.http.signing.SigningStrategy.values()) {
requestSigners.put(
s,
signingStrategyRequestSignerFactories
.get(s)
.createRequestSigner(SERVICE, authenticationDetailsProvider));
}
}
this.client = restClientFactory.create(defaultRequestSigner, requestSigners, configuration);
if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RegionProvider) {
com.oracle.bmc.auth.RegionProvider provider =
(com.oracle.bmc.auth.RegionProvider) this.authenticationDetailsProvider;
if (provider.getRegion() != null) {
this.setRegion(provider.getRegion());
if (endpoint != null) {
LOG.info(
"Authentication details provider configured for region '{}', but endpoint specifically set to '{}'. Using endpoint setting instead of region.",
provider.getRegion(),
endpoint);
}
}
}
if (endpoint != null) {
setEndpoint(endpoint);
}
}
/**
* Create a builder for this client.
* @return builder
*/
public static Builder builder() {
return new Builder(SERVICE);
}
/**
* Builder class for this client. The "authenticationDetailsProvider" is required and must be passed to the
* {@link #build(AbstractAuthenticationDetailsProvider)} method.
*/
public static class Builder
extends com.oracle.bmc.common.RegionalClientBuilder<
Builder, DataIntegrationAsyncClient> {
private Builder(com.oracle.bmc.Service service) {
super(service);
requestSignerFactory =
new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory(
com.oracle.bmc.http.signing.SigningStrategy.STANDARD);
}
/**
* Build the client.
* @param authenticationDetailsProvider authentication details provider
* @return the client
*/
public DataIntegrationAsyncClient build(
@lombok.NonNull
com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider
authenticationDetailsProvider) {
return new DataIntegrationAsyncClient(
authenticationDetailsProvider,
configuration,
clientConfigurator,
requestSignerFactory,
signingStrategyRequestSignerFactories,
additionalClientConfigurators,
endpoint);
}
}
@Override
public void setEndpoint(String endpoint) {
LOG.info("Setting endpoint to {}", endpoint);
client.setEndpoint(endpoint);
}
@Override
public String getEndpoint() {
String endpoint = null;
java.net.URI uri = client.getBaseTarget().getUri();
if (uri != null) {
endpoint = uri.toString();
}
return endpoint;
}
@Override
public void setRegion(com.oracle.bmc.Region region) {
com.google.common.base.Optional endpoint = region.getEndpoint(SERVICE);
if (endpoint.isPresent()) {
setEndpoint(endpoint.get());
} else {
throw new IllegalArgumentException(
"Endpoint for " + SERVICE + " is not known in region " + region);
}
}
@Override
public void setRegion(String regionId) {
regionId = regionId.toLowerCase(java.util.Locale.ENGLISH);
try {
com.oracle.bmc.Region region = com.oracle.bmc.Region.fromRegionId(regionId);
setRegion(region);
} catch (IllegalArgumentException e) {
LOG.info("Unknown regionId '{}', falling back to default endpoint format", regionId);
String endpoint = com.oracle.bmc.Region.formatDefaultRegionEndpoint(SERVICE, regionId);
setEndpoint(endpoint);
}
}
@Override
public void close() {
client.close();
}
@Override
public java.util.concurrent.Future changeCompartment(
ChangeCompartmentRequest request,
final com.oracle.bmc.responses.AsyncHandler<
ChangeCompartmentRequest, ChangeCompartmentResponse>
handler) {
LOG.trace("Called async changeCompartment");
final ChangeCompartmentRequest interceptedRequest =
ChangeCompartmentConverter.interceptRequest(request);
final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
ChangeCompartmentConverter.fromRequest(client, interceptedRequest);
final com.google.common.base.Function
transformer = ChangeCompartmentConverter.fromResponse();
com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib);
com.oracle.bmc.responses.AsyncHandler
handlerToUse = handler;
java.util.function.Function<
com.oracle.bmc.responses.AsyncHandler<
ChangeCompartmentRequest, ChangeCompartmentResponse>,
java.util.concurrent.Future>
futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer);
if (this.authenticationDetailsProvider
instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) {
return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper<
ChangeCompartmentRequest, ChangeCompartmentResponse>(
(com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider)
this.authenticationDetailsProvider,
handlerToUse,
futureSupplier) {
@Override
protected void beforeRetryAction() {}
};
} else {
return futureSupplier.apply(handlerToUse);
}
}
@Override
public java.util.concurrent.Future createApplication(
CreateApplicationRequest request,
final com.oracle.bmc.responses.AsyncHandler<
CreateApplicationRequest, CreateApplicationResponse>
handler) {
LOG.trace("Called async createApplication");
final CreateApplicationRequest interceptedRequest =
CreateApplicationConverter.interceptRequest(request);
final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
CreateApplicationConverter.fromRequest(client, interceptedRequest);
final com.google.common.base.Function
transformer = CreateApplicationConverter.fromResponse();
com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib);
com.oracle.bmc.responses.AsyncHandler
handlerToUse = handler;
java.util.function.Function<
com.oracle.bmc.responses.AsyncHandler<
CreateApplicationRequest, CreateApplicationResponse>,
java.util.concurrent.Future>
futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer);
if (this.authenticationDetailsProvider
instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) {
return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper<
CreateApplicationRequest, CreateApplicationResponse>(
(com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider)
this.authenticationDetailsProvider,
handlerToUse,
futureSupplier) {
@Override
protected void beforeRetryAction() {}
};
} else {
return futureSupplier.apply(handlerToUse);
}
}
@Override
public java.util.concurrent.Future createConnection(
CreateConnectionRequest request,
final com.oracle.bmc.responses.AsyncHandler<
CreateConnectionRequest, CreateConnectionResponse>
handler) {
LOG.trace("Called async createConnection");
final CreateConnectionRequest interceptedRequest =
CreateConnectionConverter.interceptRequest(request);
final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
CreateConnectionConverter.fromRequest(client, interceptedRequest);
final com.google.common.base.Function
transformer = CreateConnectionConverter.fromResponse();
com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib);
com.oracle.bmc.responses.AsyncHandler
handlerToUse = handler;
java.util.function.Function<
com.oracle.bmc.responses.AsyncHandler<
CreateConnectionRequest, CreateConnectionResponse>,
java.util.concurrent.Future>
futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer);
if (this.authenticationDetailsProvider
instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) {
return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper<
CreateConnectionRequest, CreateConnectionResponse>(
(com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider)
this.authenticationDetailsProvider,
handlerToUse,
futureSupplier) {
@Override
protected void beforeRetryAction() {}
};
} else {
return futureSupplier.apply(handlerToUse);
}
}
@Override
public java.util.concurrent.Future
createConnectionValidation(
CreateConnectionValidationRequest request,
final com.oracle.bmc.responses.AsyncHandler<
CreateConnectionValidationRequest,
CreateConnectionValidationResponse>
handler) {
LOG.trace("Called async createConnectionValidation");
final CreateConnectionValidationRequest interceptedRequest =
CreateConnectionValidationConverter.interceptRequest(request);
final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
CreateConnectionValidationConverter.fromRequest(client, interceptedRequest);
final com.google.common.base.Function<
javax.ws.rs.core.Response, CreateConnectionValidationResponse>
transformer = CreateConnectionValidationConverter.fromResponse();
com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib);
com.oracle.bmc.responses.AsyncHandler<
CreateConnectionValidationRequest, CreateConnectionValidationResponse>
handlerToUse = handler;
java.util.function.Function<
com.oracle.bmc.responses.AsyncHandler<
CreateConnectionValidationRequest,
CreateConnectionValidationResponse>,
java.util.concurrent.Future>
futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer);
if (this.authenticationDetailsProvider
instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) {
return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper<
CreateConnectionValidationRequest, CreateConnectionValidationResponse>(
(com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider)
this.authenticationDetailsProvider,
handlerToUse,
futureSupplier) {
@Override
protected void beforeRetryAction() {}
};
} else {
return futureSupplier.apply(handlerToUse);
}
}
@Override
public java.util.concurrent.Future createDataAsset(
CreateDataAssetRequest request,
final com.oracle.bmc.responses.AsyncHandler<
CreateDataAssetRequest, CreateDataAssetResponse>
handler) {
LOG.trace("Called async createDataAsset");
final CreateDataAssetRequest interceptedRequest =
CreateDataAssetConverter.interceptRequest(request);
final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
CreateDataAssetConverter.fromRequest(client, interceptedRequest);
final com.google.common.base.Function
transformer = CreateDataAssetConverter.fromResponse();
com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib);
com.oracle.bmc.responses.AsyncHandler
handlerToUse = handler;
java.util.function.Function<
com.oracle.bmc.responses.AsyncHandler<
CreateDataAssetRequest, CreateDataAssetResponse>,
java.util.concurrent.Future>
futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer);
if (this.authenticationDetailsProvider
instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) {
return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper<
CreateDataAssetRequest, CreateDataAssetResponse>(
(com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider)
this.authenticationDetailsProvider,
handlerToUse,
futureSupplier) {
@Override
protected void beforeRetryAction() {}
};
} else {
return futureSupplier.apply(handlerToUse);
}
}
@Override
public java.util.concurrent.Future createDataFlow(
CreateDataFlowRequest request,
final com.oracle.bmc.responses.AsyncHandler<
CreateDataFlowRequest, CreateDataFlowResponse>
handler) {
LOG.trace("Called async createDataFlow");
final CreateDataFlowRequest interceptedRequest =
CreateDataFlowConverter.interceptRequest(request);
final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
CreateDataFlowConverter.fromRequest(client, interceptedRequest);
final com.google.common.base.Function
transformer = CreateDataFlowConverter.fromResponse();
com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib);
com.oracle.bmc.responses.AsyncHandler
handlerToUse = handler;
java.util.function.Function<
com.oracle.bmc.responses.AsyncHandler<
CreateDataFlowRequest, CreateDataFlowResponse>,
java.util.concurrent.Future>
futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer);
if (this.authenticationDetailsProvider
instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) {
return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper<
CreateDataFlowRequest, CreateDataFlowResponse>(
(com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider)
this.authenticationDetailsProvider,
handlerToUse,
futureSupplier) {
@Override
protected void beforeRetryAction() {}
};
} else {
return futureSupplier.apply(handlerToUse);
}
}
@Override
public java.util.concurrent.Future createDataFlowValidation(
CreateDataFlowValidationRequest request,
final com.oracle.bmc.responses.AsyncHandler<
CreateDataFlowValidationRequest, CreateDataFlowValidationResponse>
handler) {
LOG.trace("Called async createDataFlowValidation");
final CreateDataFlowValidationRequest interceptedRequest =
CreateDataFlowValidationConverter.interceptRequest(request);
final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
CreateDataFlowValidationConverter.fromRequest(client, interceptedRequest);
final com.google.common.base.Function<
javax.ws.rs.core.Response, CreateDataFlowValidationResponse>
transformer = CreateDataFlowValidationConverter.fromResponse();
com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib);
com.oracle.bmc.responses.AsyncHandler<
CreateDataFlowValidationRequest, CreateDataFlowValidationResponse>
handlerToUse = handler;
java.util.function.Function<
com.oracle.bmc.responses.AsyncHandler<
CreateDataFlowValidationRequest, CreateDataFlowValidationResponse>,
java.util.concurrent.Future>
futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer);
if (this.authenticationDetailsProvider
instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) {
return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper<
CreateDataFlowValidationRequest, CreateDataFlowValidationResponse>(
(com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider)
this.authenticationDetailsProvider,
handlerToUse,
futureSupplier) {
@Override
protected void beforeRetryAction() {}
};
} else {
return futureSupplier.apply(handlerToUse);
}
}
@Override
public java.util.concurrent.Future createEntityShape(
CreateEntityShapeRequest request,
final com.oracle.bmc.responses.AsyncHandler<
CreateEntityShapeRequest, CreateEntityShapeResponse>
handler) {
LOG.trace("Called async createEntityShape");
final CreateEntityShapeRequest interceptedRequest =
CreateEntityShapeConverter.interceptRequest(request);
final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
CreateEntityShapeConverter.fromRequest(client, interceptedRequest);
final com.google.common.base.Function
transformer = CreateEntityShapeConverter.fromResponse();
com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib);
com.oracle.bmc.responses.AsyncHandler
handlerToUse = handler;
java.util.function.Function<
com.oracle.bmc.responses.AsyncHandler<
CreateEntityShapeRequest, CreateEntityShapeResponse>,
java.util.concurrent.Future>
futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer);
if (this.authenticationDetailsProvider
instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) {
return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper<
CreateEntityShapeRequest, CreateEntityShapeResponse>(
(com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider)
this.authenticationDetailsProvider,
handlerToUse,
futureSupplier) {
@Override
protected void beforeRetryAction() {}
};
} else {
return futureSupplier.apply(handlerToUse);
}
}
@Override
public java.util.concurrent.Future createExternalPublication(
CreateExternalPublicationRequest request,
final com.oracle.bmc.responses.AsyncHandler<
CreateExternalPublicationRequest, CreateExternalPublicationResponse>
handler) {
LOG.trace("Called async createExternalPublication");
final CreateExternalPublicationRequest interceptedRequest =
CreateExternalPublicationConverter.interceptRequest(request);
final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
CreateExternalPublicationConverter.fromRequest(client, interceptedRequest);
final com.google.common.base.Function<
javax.ws.rs.core.Response, CreateExternalPublicationResponse>
transformer = CreateExternalPublicationConverter.fromResponse();
com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib);
com.oracle.bmc.responses.AsyncHandler<
CreateExternalPublicationRequest, CreateExternalPublicationResponse>
handlerToUse = handler;
java.util.function.Function<
com.oracle.bmc.responses.AsyncHandler<
CreateExternalPublicationRequest,
CreateExternalPublicationResponse>,
java.util.concurrent.Future>
futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer);
if (this.authenticationDetailsProvider
instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) {
return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper<
CreateExternalPublicationRequest, CreateExternalPublicationResponse>(
(com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider)
this.authenticationDetailsProvider,
handlerToUse,
futureSupplier) {
@Override
protected void beforeRetryAction() {}
};
} else {
return futureSupplier.apply(handlerToUse);
}
}
@Override
public java.util.concurrent.Future
createExternalPublicationValidation(
CreateExternalPublicationValidationRequest request,
final com.oracle.bmc.responses.AsyncHandler<
CreateExternalPublicationValidationRequest,
CreateExternalPublicationValidationResponse>
handler) {
LOG.trace("Called async createExternalPublicationValidation");
final CreateExternalPublicationValidationRequest interceptedRequest =
CreateExternalPublicationValidationConverter.interceptRequest(request);
final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
CreateExternalPublicationValidationConverter.fromRequest(
client, interceptedRequest);
final com.google.common.base.Function<
javax.ws.rs.core.Response, CreateExternalPublicationValidationResponse>
transformer = CreateExternalPublicationValidationConverter.fromResponse();
com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib);
com.oracle.bmc.responses.AsyncHandler<
CreateExternalPublicationValidationRequest,
CreateExternalPublicationValidationResponse>
handlerToUse = handler;
java.util.function.Function<
com.oracle.bmc.responses.AsyncHandler<
CreateExternalPublicationValidationRequest,
CreateExternalPublicationValidationResponse>,
java.util.concurrent.Future>
futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer);
if (this.authenticationDetailsProvider
instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) {
return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper<
CreateExternalPublicationValidationRequest,
CreateExternalPublicationValidationResponse>(
(com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider)
this.authenticationDetailsProvider,
handlerToUse,
futureSupplier) {
@Override
protected void beforeRetryAction() {}
};
} else {
return futureSupplier.apply(handlerToUse);
}
}
@Override
public java.util.concurrent.Future createFolder(
CreateFolderRequest request,
final com.oracle.bmc.responses.AsyncHandler
handler) {
LOG.trace("Called async createFolder");
final CreateFolderRequest interceptedRequest =
CreateFolderConverter.interceptRequest(request);
final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
CreateFolderConverter.fromRequest(client, interceptedRequest);
final com.google.common.base.Function
transformer = CreateFolderConverter.fromResponse();
com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib);
com.oracle.bmc.responses.AsyncHandler
handlerToUse = handler;
java.util.function.Function<
com.oracle.bmc.responses.AsyncHandler<
CreateFolderRequest, CreateFolderResponse>,
java.util.concurrent.Future>
futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer);
if (this.authenticationDetailsProvider
instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) {
return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper<
CreateFolderRequest, CreateFolderResponse>(
(com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider)
this.authenticationDetailsProvider,
handlerToUse,
futureSupplier) {
@Override
protected void beforeRetryAction() {}
};
} else {
return futureSupplier.apply(handlerToUse);
}
}
@Override
public java.util.concurrent.Future createPatch(
CreatePatchRequest request,
final com.oracle.bmc.responses.AsyncHandler
handler) {
LOG.trace("Called async createPatch");
final CreatePatchRequest interceptedRequest =
CreatePatchConverter.interceptRequest(request);
final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
CreatePatchConverter.fromRequest(client, interceptedRequest);
final com.google.common.base.Function
transformer = CreatePatchConverter.fromResponse();
com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib);
com.oracle.bmc.responses.AsyncHandler
handlerToUse = handler;
java.util.function.Function<
com.oracle.bmc.responses.AsyncHandler<
CreatePatchRequest, CreatePatchResponse>,
java.util.concurrent.Future>
futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer);
if (this.authenticationDetailsProvider
instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) {
return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper<
CreatePatchRequest, CreatePatchResponse>(
(com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider)
this.authenticationDetailsProvider,
handlerToUse,
futureSupplier) {
@Override
protected void beforeRetryAction() {}
};
} else {
return futureSupplier.apply(handlerToUse);
}
}
@Override
public java.util.concurrent.Future createPipeline(
CreatePipelineRequest request,
final com.oracle.bmc.responses.AsyncHandler<
CreatePipelineRequest, CreatePipelineResponse>
handler) {
LOG.trace("Called async createPipeline");
final CreatePipelineRequest interceptedRequest =
CreatePipelineConverter.interceptRequest(request);
final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
CreatePipelineConverter.fromRequest(client, interceptedRequest);
final com.google.common.base.Function
transformer = CreatePipelineConverter.fromResponse();
com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib);
com.oracle.bmc.responses.AsyncHandler
handlerToUse = handler;
java.util.function.Function<
com.oracle.bmc.responses.AsyncHandler<
CreatePipelineRequest, CreatePipelineResponse>,
java.util.concurrent.Future>
futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer);
if (this.authenticationDetailsProvider
instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) {
return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper<
CreatePipelineRequest, CreatePipelineResponse>(
(com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider)
this.authenticationDetailsProvider,
handlerToUse,
futureSupplier) {
@Override
protected void beforeRetryAction() {}
};
} else {
return futureSupplier.apply(handlerToUse);
}
}
@Override
public java.util.concurrent.Future createPipelineValidation(
CreatePipelineValidationRequest request,
final com.oracle.bmc.responses.AsyncHandler<
CreatePipelineValidationRequest, CreatePipelineValidationResponse>
handler) {
LOG.trace("Called async createPipelineValidation");
final CreatePipelineValidationRequest interceptedRequest =
CreatePipelineValidationConverter.interceptRequest(request);
final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
CreatePipelineValidationConverter.fromRequest(client, interceptedRequest);
final com.google.common.base.Function<
javax.ws.rs.core.Response, CreatePipelineValidationResponse>
transformer = CreatePipelineValidationConverter.fromResponse();
com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib);
com.oracle.bmc.responses.AsyncHandler<
CreatePipelineValidationRequest, CreatePipelineValidationResponse>
handlerToUse = handler;
java.util.function.Function<
com.oracle.bmc.responses.AsyncHandler<
CreatePipelineValidationRequest, CreatePipelineValidationResponse>,
java.util.concurrent.Future>
futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer);
if (this.authenticationDetailsProvider
instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) {
return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper<
CreatePipelineValidationRequest, CreatePipelineValidationResponse>(
(com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider)
this.authenticationDetailsProvider,
handlerToUse,
futureSupplier) {
@Override
protected void beforeRetryAction() {}
};
} else {
return futureSupplier.apply(handlerToUse);
}
}
@Override
public java.util.concurrent.Future createProject(
CreateProjectRequest request,
final com.oracle.bmc.responses.AsyncHandler
handler) {
LOG.trace("Called async createProject");
final CreateProjectRequest interceptedRequest =
CreateProjectConverter.interceptRequest(request);
final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
CreateProjectConverter.fromRequest(client, interceptedRequest);
final com.google.common.base.Function
transformer = CreateProjectConverter.fromResponse();
com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib);
com.oracle.bmc.responses.AsyncHandler
handlerToUse = handler;
java.util.function.Function<
com.oracle.bmc.responses.AsyncHandler<
CreateProjectRequest, CreateProjectResponse>,
java.util.concurrent.Future>
futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer);
if (this.authenticationDetailsProvider
instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) {
return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper<
CreateProjectRequest, CreateProjectResponse>(
(com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider)
this.authenticationDetailsProvider,
handlerToUse,
futureSupplier) {
@Override
protected void beforeRetryAction() {}
};
} else {
return futureSupplier.apply(handlerToUse);
}
}
@Override
public java.util.concurrent.Future createTask(
CreateTaskRequest request,
final com.oracle.bmc.responses.AsyncHandler
handler) {
LOG.trace("Called async createTask");
final CreateTaskRequest interceptedRequest = CreateTaskConverter.interceptRequest(request);
final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
CreateTaskConverter.fromRequest(client, interceptedRequest);
final com.google.common.base.Function
transformer = CreateTaskConverter.fromResponse();
com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib);
com.oracle.bmc.responses.AsyncHandler handlerToUse =
handler;
java.util.function.Function<
com.oracle.bmc.responses.AsyncHandler<
CreateTaskRequest, CreateTaskResponse>,
java.util.concurrent.Future>
futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer);
if (this.authenticationDetailsProvider
instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) {
return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper<
CreateTaskRequest, CreateTaskResponse>(
(com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider)
this.authenticationDetailsProvider,
handlerToUse,
futureSupplier) {
@Override
protected void beforeRetryAction() {}
};
} else {
return futureSupplier.apply(handlerToUse);
}
}
@Override
public java.util.concurrent.Future createTaskRun(
CreateTaskRunRequest request,
final com.oracle.bmc.responses.AsyncHandler
handler) {
LOG.trace("Called async createTaskRun");
final CreateTaskRunRequest interceptedRequest =
CreateTaskRunConverter.interceptRequest(request);
final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
CreateTaskRunConverter.fromRequest(client, interceptedRequest);
final com.google.common.base.Function
transformer = CreateTaskRunConverter.fromResponse();
com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib);
com.oracle.bmc.responses.AsyncHandler
handlerToUse = handler;
java.util.function.Function<
com.oracle.bmc.responses.AsyncHandler<
CreateTaskRunRequest, CreateTaskRunResponse>,
java.util.concurrent.Future>
futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer);
if (this.authenticationDetailsProvider
instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) {
return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper<
CreateTaskRunRequest, CreateTaskRunResponse>(
(com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider)
this.authenticationDetailsProvider,
handlerToUse,
futureSupplier) {
@Override
protected void beforeRetryAction() {}
};
} else {
return futureSupplier.apply(handlerToUse);
}
}
@Override
public java.util.concurrent.Future createTaskValidation(
CreateTaskValidationRequest request,
final com.oracle.bmc.responses.AsyncHandler<
CreateTaskValidationRequest, CreateTaskValidationResponse>
handler) {
LOG.trace("Called async createTaskValidation");
final CreateTaskValidationRequest interceptedRequest =
CreateTaskValidationConverter.interceptRequest(request);
final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
CreateTaskValidationConverter.fromRequest(client, interceptedRequest);
final com.google.common.base.Function<
javax.ws.rs.core.Response, CreateTaskValidationResponse>
transformer = CreateTaskValidationConverter.fromResponse();
com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib);
com.oracle.bmc.responses.AsyncHandler<
CreateTaskValidationRequest, CreateTaskValidationResponse>
handlerToUse = handler;
java.util.function.Function<
com.oracle.bmc.responses.AsyncHandler<
CreateTaskValidationRequest, CreateTaskValidationResponse>,
java.util.concurrent.Future>
futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer);
if (this.authenticationDetailsProvider
instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) {
return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper<
CreateTaskValidationRequest, CreateTaskValidationResponse>(
(com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider)
this.authenticationDetailsProvider,
handlerToUse,
futureSupplier) {
@Override
protected void beforeRetryAction() {}
};
} else {
return futureSupplier.apply(handlerToUse);
}
}
@Override
public java.util.concurrent.Future createWorkspace(
CreateWorkspaceRequest request,
final com.oracle.bmc.responses.AsyncHandler<
CreateWorkspaceRequest, CreateWorkspaceResponse>
handler) {
LOG.trace("Called async createWorkspace");
final CreateWorkspaceRequest interceptedRequest =
CreateWorkspaceConverter.interceptRequest(request);
final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
CreateWorkspaceConverter.fromRequest(client, interceptedRequest);
final com.google.common.base.Function
transformer = CreateWorkspaceConverter.fromResponse();
com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib);
com.oracle.bmc.responses.AsyncHandler
handlerToUse = handler;
java.util.function.Function<
com.oracle.bmc.responses.AsyncHandler<
CreateWorkspaceRequest, CreateWorkspaceResponse>,
java.util.concurrent.Future>
futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer);
if (this.authenticationDetailsProvider
instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) {
return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper<
CreateWorkspaceRequest, CreateWorkspaceResponse>(
(com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider)
this.authenticationDetailsProvider,
handlerToUse,
futureSupplier) {
@Override
protected void beforeRetryAction() {}
};
} else {
return futureSupplier.apply(handlerToUse);
}
}
@Override
public java.util.concurrent.Future deleteApplication(
DeleteApplicationRequest request,
final com.oracle.bmc.responses.AsyncHandler<
DeleteApplicationRequest, DeleteApplicationResponse>
handler) {
LOG.trace("Called async deleteApplication");
final DeleteApplicationRequest interceptedRequest =
DeleteApplicationConverter.interceptRequest(request);
final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
DeleteApplicationConverter.fromRequest(client, interceptedRequest);
final com.google.common.base.Function
transformer = DeleteApplicationConverter.fromResponse();
com.oracle.bmc.responses.AsyncHandler
handlerToUse = handler;
java.util.function.Function<
com.oracle.bmc.responses.AsyncHandler<
DeleteApplicationRequest, DeleteApplicationResponse>,
java.util.concurrent.Future>
futureSupplier = client.deleteFutureSupplier(interceptedRequest, ib, transformer);
if (this.authenticationDetailsProvider
instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) {
return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper<
DeleteApplicationRequest, DeleteApplicationResponse>(
(com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider)
this.authenticationDetailsProvider,
handlerToUse,
futureSupplier) {
@Override
protected void beforeRetryAction() {}
};
} else {
return futureSupplier.apply(handlerToUse);
}
}
@Override
public java.util.concurrent.Future deleteConnection(
DeleteConnectionRequest request,
final com.oracle.bmc.responses.AsyncHandler<
DeleteConnectionRequest, DeleteConnectionResponse>
handler) {
LOG.trace("Called async deleteConnection");
final DeleteConnectionRequest interceptedRequest =
DeleteConnectionConverter.interceptRequest(request);
final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
DeleteConnectionConverter.fromRequest(client, interceptedRequest);
final com.google.common.base.Function
transformer = DeleteConnectionConverter.fromResponse();
com.oracle.bmc.responses.AsyncHandler
handlerToUse = handler;
java.util.function.Function<
com.oracle.bmc.responses.AsyncHandler<
DeleteConnectionRequest, DeleteConnectionResponse>,
java.util.concurrent.Future>
futureSupplier = client.deleteFutureSupplier(interceptedRequest, ib, transformer);
if (this.authenticationDetailsProvider
instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) {
return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper<
DeleteConnectionRequest, DeleteConnectionResponse>(
(com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider)
this.authenticationDetailsProvider,
handlerToUse,
futureSupplier) {
@Override
protected void beforeRetryAction() {}
};
} else {
return futureSupplier.apply(handlerToUse);
}
}
@Override
public java.util.concurrent.Future
deleteConnectionValidation(
DeleteConnectionValidationRequest request,
final com.oracle.bmc.responses.AsyncHandler<
DeleteConnectionValidationRequest,
DeleteConnectionValidationResponse>
handler) {
LOG.trace("Called async deleteConnectionValidation");
final DeleteConnectionValidationRequest interceptedRequest =
DeleteConnectionValidationConverter.interceptRequest(request);
final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
DeleteConnectionValidationConverter.fromRequest(client, interceptedRequest);
final com.google.common.base.Function<
javax.ws.rs.core.Response, DeleteConnectionValidationResponse>
transformer = DeleteConnectionValidationConverter.fromResponse();
com.oracle.bmc.responses.AsyncHandler<
DeleteConnectionValidationRequest, DeleteConnectionValidationResponse>
handlerToUse = handler;
java.util.function.Function<
com.oracle.bmc.responses.AsyncHandler<
DeleteConnectionValidationRequest,
DeleteConnectionValidationResponse>,
java.util.concurrent.Future>
futureSupplier = client.deleteFutureSupplier(interceptedRequest, ib, transformer);
if (this.authenticationDetailsProvider
instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) {
return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper<
DeleteConnectionValidationRequest, DeleteConnectionValidationResponse>(
(com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider)
this.authenticationDetailsProvider,
handlerToUse,
futureSupplier) {
@Override
protected void beforeRetryAction() {}
};
} else {
return futureSupplier.apply(handlerToUse);
}
}
@Override
public java.util.concurrent.Future deleteDataAsset(
DeleteDataAssetRequest request,
final com.oracle.bmc.responses.AsyncHandler<
DeleteDataAssetRequest, DeleteDataAssetResponse>
handler) {
LOG.trace("Called async deleteDataAsset");
final DeleteDataAssetRequest interceptedRequest =
DeleteDataAssetConverter.interceptRequest(request);
final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
DeleteDataAssetConverter.fromRequest(client, interceptedRequest);
final com.google.common.base.Function
transformer = DeleteDataAssetConverter.fromResponse();
com.oracle.bmc.responses.AsyncHandler
handlerToUse = handler;
java.util.function.Function<
com.oracle.bmc.responses.AsyncHandler<
DeleteDataAssetRequest, DeleteDataAssetResponse>,
java.util.concurrent.Future>
futureSupplier = client.deleteFutureSupplier(interceptedRequest, ib, transformer);
if (this.authenticationDetailsProvider
instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) {
return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper<
DeleteDataAssetRequest, DeleteDataAssetResponse>(
(com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider)
this.authenticationDetailsProvider,
handlerToUse,
futureSupplier) {
@Override
protected void beforeRetryAction() {}
};
} else {
return futureSupplier.apply(handlerToUse);
}
}
@Override
public java.util.concurrent.Future deleteDataFlow(
DeleteDataFlowRequest request,
final com.oracle.bmc.responses.AsyncHandler<
DeleteDataFlowRequest, DeleteDataFlowResponse>
handler) {
LOG.trace("Called async deleteDataFlow");
final DeleteDataFlowRequest interceptedRequest =
DeleteDataFlowConverter.interceptRequest(request);
final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
DeleteDataFlowConverter.fromRequest(client, interceptedRequest);
final com.google.common.base.Function
transformer = DeleteDataFlowConverter.fromResponse();
com.oracle.bmc.responses.AsyncHandler
handlerToUse = handler;
java.util.function.Function<
com.oracle.bmc.responses.AsyncHandler<
DeleteDataFlowRequest, DeleteDataFlowResponse>,
java.util.concurrent.Future>
futureSupplier = client.deleteFutureSupplier(interceptedRequest, ib, transformer);
if (this.authenticationDetailsProvider
instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) {
return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper<
DeleteDataFlowRequest, DeleteDataFlowResponse>(
(com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider)
this.authenticationDetailsProvider,
handlerToUse,
futureSupplier) {
@Override
protected void beforeRetryAction() {}
};
} else {
return futureSupplier.apply(handlerToUse);
}
}
@Override
public java.util.concurrent.Future deleteDataFlowValidation(
DeleteDataFlowValidationRequest request,
final com.oracle.bmc.responses.AsyncHandler<
DeleteDataFlowValidationRequest, DeleteDataFlowValidationResponse>
handler) {
LOG.trace("Called async deleteDataFlowValidation");
final DeleteDataFlowValidationRequest interceptedRequest =
DeleteDataFlowValidationConverter.interceptRequest(request);
final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
DeleteDataFlowValidationConverter.fromRequest(client, interceptedRequest);
final com.google.common.base.Function<
javax.ws.rs.core.Response, DeleteDataFlowValidationResponse>
transformer = DeleteDataFlowValidationConverter.fromResponse();
com.oracle.bmc.responses.AsyncHandler<
DeleteDataFlowValidationRequest, DeleteDataFlowValidationResponse>
handlerToUse = handler;
java.util.function.Function<
com.oracle.bmc.responses.AsyncHandler<
DeleteDataFlowValidationRequest, DeleteDataFlowValidationResponse>,
java.util.concurrent.Future>
futureSupplier = client.deleteFutureSupplier(interceptedRequest, ib, transformer);
if (this.authenticationDetailsProvider
instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) {
return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper<
DeleteDataFlowValidationRequest, DeleteDataFlowValidationResponse>(
(com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider)
this.authenticationDetailsProvider,
handlerToUse,
futureSupplier) {
@Override
protected void beforeRetryAction() {}
};
} else {
return futureSupplier.apply(handlerToUse);
}
}
@Override
public java.util.concurrent.Future deleteExternalPublication(
DeleteExternalPublicationRequest request,
final com.oracle.bmc.responses.AsyncHandler<
DeleteExternalPublicationRequest, DeleteExternalPublicationResponse>
handler) {
LOG.trace("Called async deleteExternalPublication");
final DeleteExternalPublicationRequest interceptedRequest =
DeleteExternalPublicationConverter.interceptRequest(request);
final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
DeleteExternalPublicationConverter.fromRequest(client, interceptedRequest);
final com.google.common.base.Function<
javax.ws.rs.core.Response, DeleteExternalPublicationResponse>
transformer = DeleteExternalPublicationConverter.fromResponse();
com.oracle.bmc.responses.AsyncHandler<
DeleteExternalPublicationRequest, DeleteExternalPublicationResponse>
handlerToUse = handler;
java.util.function.Function<
com.oracle.bmc.responses.AsyncHandler<
DeleteExternalPublicationRequest,
DeleteExternalPublicationResponse>,
java.util.concurrent.Future>
futureSupplier = client.deleteFutureSupplier(interceptedRequest, ib, transformer);
if (this.authenticationDetailsProvider
instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) {
return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper<
DeleteExternalPublicationRequest, DeleteExternalPublicationResponse>(
(com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider)
this.authenticationDetailsProvider,
handlerToUse,
futureSupplier) {
@Override
protected void beforeRetryAction() {}
};
} else {
return futureSupplier.apply(handlerToUse);
}
}
@Override
public java.util.concurrent.Future
deleteExternalPublicationValidation(
DeleteExternalPublicationValidationRequest request,
final com.oracle.bmc.responses.AsyncHandler<
DeleteExternalPublicationValidationRequest,
DeleteExternalPublicationValidationResponse>
handler) {
LOG.trace("Called async deleteExternalPublicationValidation");
final DeleteExternalPublicationValidationRequest interceptedRequest =
DeleteExternalPublicationValidationConverter.interceptRequest(request);
final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
DeleteExternalPublicationValidationConverter.fromRequest(
client, interceptedRequest);
final com.google.common.base.Function<
javax.ws.rs.core.Response, DeleteExternalPublicationValidationResponse>
transformer = DeleteExternalPublicationValidationConverter.fromResponse();
com.oracle.bmc.responses.AsyncHandler<
DeleteExternalPublicationValidationRequest,
DeleteExternalPublicationValidationResponse>
handlerToUse = handler;
java.util.function.Function<
com.oracle.bmc.responses.AsyncHandler<
DeleteExternalPublicationValidationRequest,
DeleteExternalPublicationValidationResponse>,
java.util.concurrent.Future>
futureSupplier = client.deleteFutureSupplier(interceptedRequest, ib, transformer);
if (this.authenticationDetailsProvider
instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) {
return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper<
DeleteExternalPublicationValidationRequest,
DeleteExternalPublicationValidationResponse>(
(com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider)
this.authenticationDetailsProvider,
handlerToUse,
futureSupplier) {
@Override
protected void beforeRetryAction() {}
};
} else {
return futureSupplier.apply(handlerToUse);
}
}
@Override
public java.util.concurrent.Future deleteFolder(
DeleteFolderRequest request,
final com.oracle.bmc.responses.AsyncHandler
handler) {
LOG.trace("Called async deleteFolder");
final DeleteFolderRequest interceptedRequest =
DeleteFolderConverter.interceptRequest(request);
final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
DeleteFolderConverter.fromRequest(client, interceptedRequest);
final com.google.common.base.Function
transformer = DeleteFolderConverter.fromResponse();
com.oracle.bmc.responses.AsyncHandler
handlerToUse = handler;
java.util.function.Function<
com.oracle.bmc.responses.AsyncHandler<
DeleteFolderRequest, DeleteFolderResponse>,
java.util.concurrent.Future>
futureSupplier = client.deleteFutureSupplier(interceptedRequest, ib, transformer);
if (this.authenticationDetailsProvider
instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) {
return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper<
DeleteFolderRequest, DeleteFolderResponse>(
(com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider)
this.authenticationDetailsProvider,
handlerToUse,
futureSupplier) {
@Override
protected void beforeRetryAction() {}
};
} else {
return futureSupplier.apply(handlerToUse);
}
}
@Override
public java.util.concurrent.Future deletePatch(
DeletePatchRequest request,
final com.oracle.bmc.responses.AsyncHandler
handler) {
LOG.trace("Called async deletePatch");
final DeletePatchRequest interceptedRequest =
DeletePatchConverter.interceptRequest(request);
final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
DeletePatchConverter.fromRequest(client, interceptedRequest);
final com.google.common.base.Function
transformer = DeletePatchConverter.fromResponse();
com.oracle.bmc.responses.AsyncHandler
handlerToUse = handler;
java.util.function.Function<
com.oracle.bmc.responses.AsyncHandler<
DeletePatchRequest, DeletePatchResponse>,
java.util.concurrent.Future>
futureSupplier = client.deleteFutureSupplier(interceptedRequest, ib, transformer);
if (this.authenticationDetailsProvider
instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) {
return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper<
DeletePatchRequest, DeletePatchResponse>(
(com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider)
this.authenticationDetailsProvider,
handlerToUse,
futureSupplier) {
@Override
protected void beforeRetryAction() {}
};
} else {
return futureSupplier.apply(handlerToUse);
}
}
@Override
public java.util.concurrent.Future deletePipeline(
DeletePipelineRequest request,
final com.oracle.bmc.responses.AsyncHandler<
DeletePipelineRequest, DeletePipelineResponse>
handler) {
LOG.trace("Called async deletePipeline");
final DeletePipelineRequest interceptedRequest =
DeletePipelineConverter.interceptRequest(request);
final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
DeletePipelineConverter.fromRequest(client, interceptedRequest);
final com.google.common.base.Function
transformer = DeletePipelineConverter.fromResponse();
com.oracle.bmc.responses.AsyncHandler
handlerToUse = handler;
java.util.function.Function<
com.oracle.bmc.responses.AsyncHandler<
DeletePipelineRequest, DeletePipelineResponse>,
java.util.concurrent.Future>
futureSupplier = client.deleteFutureSupplier(interceptedRequest, ib, transformer);
if (this.authenticationDetailsProvider
instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) {
return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper<
DeletePipelineRequest, DeletePipelineResponse>(
(com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider)
this.authenticationDetailsProvider,
handlerToUse,
futureSupplier) {
@Override
protected void beforeRetryAction() {}
};
} else {
return futureSupplier.apply(handlerToUse);
}
}
@Override
public java.util.concurrent.Future deletePipelineValidation(
DeletePipelineValidationRequest request,
final com.oracle.bmc.responses.AsyncHandler<
DeletePipelineValidationRequest, DeletePipelineValidationResponse>
handler) {
LOG.trace("Called async deletePipelineValidation");
final DeletePipelineValidationRequest interceptedRequest =
DeletePipelineValidationConverter.interceptRequest(request);
final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
DeletePipelineValidationConverter.fromRequest(client, interceptedRequest);
final com.google.common.base.Function<
javax.ws.rs.core.Response, DeletePipelineValidationResponse>
transformer = DeletePipelineValidationConverter.fromResponse();
com.oracle.bmc.responses.AsyncHandler<
DeletePipelineValidationRequest, DeletePipelineValidationResponse>
handlerToUse = handler;
java.util.function.Function<
com.oracle.bmc.responses.AsyncHandler<
DeletePipelineValidationRequest, DeletePipelineValidationResponse>,
java.util.concurrent.Future>
futureSupplier = client.deleteFutureSupplier(interceptedRequest, ib, transformer);
if (this.authenticationDetailsProvider
instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) {
return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper<
DeletePipelineValidationRequest, DeletePipelineValidationResponse>(
(com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider)
this.authenticationDetailsProvider,
handlerToUse,
futureSupplier) {
@Override
protected void beforeRetryAction() {}
};
} else {
return futureSupplier.apply(handlerToUse);
}
}
@Override
public java.util.concurrent.Future deleteProject(
DeleteProjectRequest request,
final com.oracle.bmc.responses.AsyncHandler
handler) {
LOG.trace("Called async deleteProject");
final DeleteProjectRequest interceptedRequest =
DeleteProjectConverter.interceptRequest(request);
final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
DeleteProjectConverter.fromRequest(client, interceptedRequest);
final com.google.common.base.Function
transformer = DeleteProjectConverter.fromResponse();
com.oracle.bmc.responses.AsyncHandler
handlerToUse = handler;
java.util.function.Function<
com.oracle.bmc.responses.AsyncHandler<
DeleteProjectRequest, DeleteProjectResponse>,
java.util.concurrent.Future>
futureSupplier = client.deleteFutureSupplier(interceptedRequest, ib, transformer);
if (this.authenticationDetailsProvider
instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) {
return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper<
DeleteProjectRequest, DeleteProjectResponse>(
(com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider)
this.authenticationDetailsProvider,
handlerToUse,
futureSupplier) {
@Override
protected void beforeRetryAction() {}
};
} else {
return futureSupplier.apply(handlerToUse);
}
}
@Override
public java.util.concurrent.Future deleteTask(
DeleteTaskRequest request,
final com.oracle.bmc.responses.AsyncHandler
handler) {
LOG.trace("Called async deleteTask");
final DeleteTaskRequest interceptedRequest = DeleteTaskConverter.interceptRequest(request);
final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
DeleteTaskConverter.fromRequest(client, interceptedRequest);
final com.google.common.base.Function
transformer = DeleteTaskConverter.fromResponse();
com.oracle.bmc.responses.AsyncHandler handlerToUse =
handler;
java.util.function.Function<
com.oracle.bmc.responses.AsyncHandler<
DeleteTaskRequest, DeleteTaskResponse>,
java.util.concurrent.Future>
futureSupplier = client.deleteFutureSupplier(interceptedRequest, ib, transformer);
if (this.authenticationDetailsProvider
instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) {
return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper<
DeleteTaskRequest, DeleteTaskResponse>(
(com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider)
this.authenticationDetailsProvider,
handlerToUse,
futureSupplier) {
@Override
protected void beforeRetryAction() {}
};
} else {
return futureSupplier.apply(handlerToUse);
}
}
@Override
public java.util.concurrent.Future deleteTaskRun(
DeleteTaskRunRequest request,
final com.oracle.bmc.responses.AsyncHandler
handler) {
LOG.trace("Called async deleteTaskRun");
final DeleteTaskRunRequest interceptedRequest =
DeleteTaskRunConverter.interceptRequest(request);
final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
DeleteTaskRunConverter.fromRequest(client, interceptedRequest);
final com.google.common.base.Function
transformer = DeleteTaskRunConverter.fromResponse();
com.oracle.bmc.responses.AsyncHandler
handlerToUse = handler;
java.util.function.Function<
com.oracle.bmc.responses.AsyncHandler<
DeleteTaskRunRequest, DeleteTaskRunResponse>,
java.util.concurrent.Future>
futureSupplier = client.deleteFutureSupplier(interceptedRequest, ib, transformer);
if (this.authenticationDetailsProvider
instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) {
return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper<
DeleteTaskRunRequest, DeleteTaskRunResponse>(
(com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider)
this.authenticationDetailsProvider,
handlerToUse,
futureSupplier) {
@Override
protected void beforeRetryAction() {}
};
} else {
return futureSupplier.apply(handlerToUse);
}
}
@Override
public java.util.concurrent.Future deleteTaskValidation(
DeleteTaskValidationRequest request,
final com.oracle.bmc.responses.AsyncHandler<
DeleteTaskValidationRequest, DeleteTaskValidationResponse>
handler) {
LOG.trace("Called async deleteTaskValidation");
final DeleteTaskValidationRequest interceptedRequest =
DeleteTaskValidationConverter.interceptRequest(request);
final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
DeleteTaskValidationConverter.fromRequest(client, interceptedRequest);
final com.google.common.base.Function<
javax.ws.rs.core.Response, DeleteTaskValidationResponse>
transformer = DeleteTaskValidationConverter.fromResponse();
com.oracle.bmc.responses.AsyncHandler<
DeleteTaskValidationRequest, DeleteTaskValidationResponse>
handlerToUse = handler;
java.util.function.Function<
com.oracle.bmc.responses.AsyncHandler<
DeleteTaskValidationRequest, DeleteTaskValidationResponse>,
java.util.concurrent.Future>
futureSupplier = client.deleteFutureSupplier(interceptedRequest, ib, transformer);
if (this.authenticationDetailsProvider
instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) {
return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper<
DeleteTaskValidationRequest, DeleteTaskValidationResponse>(
(com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider)
this.authenticationDetailsProvider,
handlerToUse,
futureSupplier) {
@Override
protected void beforeRetryAction() {}
};
} else {
return futureSupplier.apply(handlerToUse);
}
}
@Override
public java.util.concurrent.Future deleteWorkspace(
DeleteWorkspaceRequest request,
final com.oracle.bmc.responses.AsyncHandler<
DeleteWorkspaceRequest, DeleteWorkspaceResponse>
handler) {
LOG.trace("Called async deleteWorkspace");
final DeleteWorkspaceRequest interceptedRequest =
DeleteWorkspaceConverter.interceptRequest(request);
final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
DeleteWorkspaceConverter.fromRequest(client, interceptedRequest);
final com.google.common.base.Function
transformer = DeleteWorkspaceConverter.fromResponse();
com.oracle.bmc.responses.AsyncHandler
handlerToUse = handler;
java.util.function.Function<
com.oracle.bmc.responses.AsyncHandler<
DeleteWorkspaceRequest, DeleteWorkspaceResponse>,
java.util.concurrent.Future>
futureSupplier = client.deleteFutureSupplier(interceptedRequest, ib, transformer);
if (this.authenticationDetailsProvider
instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) {
return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper<
DeleteWorkspaceRequest, DeleteWorkspaceResponse>(
(com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider)
this.authenticationDetailsProvider,
handlerToUse,
futureSupplier) {
@Override
protected void beforeRetryAction() {}
};
} else {
return futureSupplier.apply(handlerToUse);
}
}
@Override
public java.util.concurrent.Future getApplication(
GetApplicationRequest request,
final com.oracle.bmc.responses.AsyncHandler<
GetApplicationRequest, GetApplicationResponse>
handler) {
LOG.trace("Called async getApplication");
final GetApplicationRequest interceptedRequest =
GetApplicationConverter.interceptRequest(request);
final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
GetApplicationConverter.fromRequest(client, interceptedRequest);
final com.google.common.base.Function
transformer = GetApplicationConverter.fromResponse();
com.oracle.bmc.responses.AsyncHandler
handlerToUse = handler;
java.util.function.Function<
com.oracle.bmc.responses.AsyncHandler<
GetApplicationRequest, GetApplicationResponse>,
java.util.concurrent.Future>
futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer);
if (this.authenticationDetailsProvider
instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) {
return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper<
GetApplicationRequest, GetApplicationResponse>(
(com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider)
this.authenticationDetailsProvider,
handlerToUse,
futureSupplier) {
@Override
protected void beforeRetryAction() {}
};
} else {
return futureSupplier.apply(handlerToUse);
}
}
@Override
public java.util.concurrent.Future getConnection(
GetConnectionRequest request,
final com.oracle.bmc.responses.AsyncHandler
handler) {
LOG.trace("Called async getConnection");
final GetConnectionRequest interceptedRequest =
GetConnectionConverter.interceptRequest(request);
final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
GetConnectionConverter.fromRequest(client, interceptedRequest);
final com.google.common.base.Function
transformer = GetConnectionConverter.fromResponse();
com.oracle.bmc.responses.AsyncHandler
handlerToUse = handler;
java.util.function.Function<
com.oracle.bmc.responses.AsyncHandler<
GetConnectionRequest, GetConnectionResponse>,
java.util.concurrent.Future>
futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer);
if (this.authenticationDetailsProvider
instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) {
return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper<
GetConnectionRequest, GetConnectionResponse>(
(com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider)
this.authenticationDetailsProvider,
handlerToUse,
futureSupplier) {
@Override
protected void beforeRetryAction() {}
};
} else {
return futureSupplier.apply(handlerToUse);
}
}
@Override
public java.util.concurrent.Future getConnectionValidation(
GetConnectionValidationRequest request,
final com.oracle.bmc.responses.AsyncHandler<
GetConnectionValidationRequest, GetConnectionValidationResponse>
handler) {
LOG.trace("Called async getConnectionValidation");
final GetConnectionValidationRequest interceptedRequest =
GetConnectionValidationConverter.interceptRequest(request);
final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
GetConnectionValidationConverter.fromRequest(client, interceptedRequest);
final com.google.common.base.Function<
javax.ws.rs.core.Response, GetConnectionValidationResponse>
transformer = GetConnectionValidationConverter.fromResponse();
com.oracle.bmc.responses.AsyncHandler<
GetConnectionValidationRequest, GetConnectionValidationResponse>
handlerToUse = handler;
java.util.function.Function<
com.oracle.bmc.responses.AsyncHandler<
GetConnectionValidationRequest, GetConnectionValidationResponse>,
java.util.concurrent.Future>
futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer);
if (this.authenticationDetailsProvider
instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) {
return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper<
GetConnectionValidationRequest, GetConnectionValidationResponse>(
(com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider)
this.authenticationDetailsProvider,
handlerToUse,
futureSupplier) {
@Override
protected void beforeRetryAction() {}
};
} else {
return futureSupplier.apply(handlerToUse);
}
}
@Override
public java.util.concurrent.Future getCountStatistic(
GetCountStatisticRequest request,
final com.oracle.bmc.responses.AsyncHandler<
GetCountStatisticRequest, GetCountStatisticResponse>
handler) {
LOG.trace("Called async getCountStatistic");
final GetCountStatisticRequest interceptedRequest =
GetCountStatisticConverter.interceptRequest(request);
final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
GetCountStatisticConverter.fromRequest(client, interceptedRequest);
final com.google.common.base.Function
transformer = GetCountStatisticConverter.fromResponse();
com.oracle.bmc.responses.AsyncHandler
handlerToUse = handler;
java.util.function.Function<
com.oracle.bmc.responses.AsyncHandler<
GetCountStatisticRequest, GetCountStatisticResponse>,
java.util.concurrent.Future>
futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer);
if (this.authenticationDetailsProvider
instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) {
return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper<
GetCountStatisticRequest, GetCountStatisticResponse>(
(com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider)
this.authenticationDetailsProvider,
handlerToUse,
futureSupplier) {
@Override
protected void beforeRetryAction() {}
};
} else {
return futureSupplier.apply(handlerToUse);
}
}
@Override
public java.util.concurrent.Future getDataAsset(
GetDataAssetRequest request,
final com.oracle.bmc.responses.AsyncHandler
handler) {
LOG.trace("Called async getDataAsset");
final GetDataAssetRequest interceptedRequest =
GetDataAssetConverter.interceptRequest(request);
final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
GetDataAssetConverter.fromRequest(client, interceptedRequest);
final com.google.common.base.Function
transformer = GetDataAssetConverter.fromResponse();
com.oracle.bmc.responses.AsyncHandler
handlerToUse = handler;
java.util.function.Function<
com.oracle.bmc.responses.AsyncHandler<
GetDataAssetRequest, GetDataAssetResponse>,
java.util.concurrent.Future>
futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer);
if (this.authenticationDetailsProvider
instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) {
return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper<
GetDataAssetRequest, GetDataAssetResponse>(
(com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider)
this.authenticationDetailsProvider,
handlerToUse,
futureSupplier) {
@Override
protected void beforeRetryAction() {}
};
} else {
return futureSupplier.apply(handlerToUse);
}
}
@Override
public java.util.concurrent.Future getDataEntity(
GetDataEntityRequest request,
final com.oracle.bmc.responses.AsyncHandler
handler) {
LOG.trace("Called async getDataEntity");
final GetDataEntityRequest interceptedRequest =
GetDataEntityConverter.interceptRequest(request);
final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
GetDataEntityConverter.fromRequest(client, interceptedRequest);
final com.google.common.base.Function
transformer = GetDataEntityConverter.fromResponse();
com.oracle.bmc.responses.AsyncHandler
handlerToUse = handler;
java.util.function.Function<
com.oracle.bmc.responses.AsyncHandler<
GetDataEntityRequest, GetDataEntityResponse>,
java.util.concurrent.Future>
futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer);
if (this.authenticationDetailsProvider
instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) {
return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper<
GetDataEntityRequest, GetDataEntityResponse>(
(com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider)
this.authenticationDetailsProvider,
handlerToUse,
futureSupplier) {
@Override
protected void beforeRetryAction() {}
};
} else {
return futureSupplier.apply(handlerToUse);
}
}
@Override
public java.util.concurrent.Future getDataFlow(
GetDataFlowRequest request,
final com.oracle.bmc.responses.AsyncHandler
handler) {
LOG.trace("Called async getDataFlow");
final GetDataFlowRequest interceptedRequest =
GetDataFlowConverter.interceptRequest(request);
final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
GetDataFlowConverter.fromRequest(client, interceptedRequest);
final com.google.common.base.Function
transformer = GetDataFlowConverter.fromResponse();
com.oracle.bmc.responses.AsyncHandler
handlerToUse = handler;
java.util.function.Function<
com.oracle.bmc.responses.AsyncHandler<
GetDataFlowRequest, GetDataFlowResponse>,
java.util.concurrent.Future>
futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer);
if (this.authenticationDetailsProvider
instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) {
return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper<
GetDataFlowRequest, GetDataFlowResponse>(
(com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider)
this.authenticationDetailsProvider,
handlerToUse,
futureSupplier) {
@Override
protected void beforeRetryAction() {}
};
} else {
return futureSupplier.apply(handlerToUse);
}
}
@Override
public java.util.concurrent.Future getDataFlowValidation(
GetDataFlowValidationRequest request,
final com.oracle.bmc.responses.AsyncHandler<
GetDataFlowValidationRequest, GetDataFlowValidationResponse>
handler) {
LOG.trace("Called async getDataFlowValidation");
final GetDataFlowValidationRequest interceptedRequest =
GetDataFlowValidationConverter.interceptRequest(request);
final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
GetDataFlowValidationConverter.fromRequest(client, interceptedRequest);
final com.google.common.base.Function<
javax.ws.rs.core.Response, GetDataFlowValidationResponse>
transformer = GetDataFlowValidationConverter.fromResponse();
com.oracle.bmc.responses.AsyncHandler<
GetDataFlowValidationRequest, GetDataFlowValidationResponse>
handlerToUse = handler;
java.util.function.Function<
com.oracle.bmc.responses.AsyncHandler<
GetDataFlowValidationRequest, GetDataFlowValidationResponse>,
java.util.concurrent.Future>
futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer);
if (this.authenticationDetailsProvider
instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) {
return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper<
GetDataFlowValidationRequest, GetDataFlowValidationResponse>(
(com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider)
this.authenticationDetailsProvider,
handlerToUse,
futureSupplier) {
@Override
protected void beforeRetryAction() {}
};
} else {
return futureSupplier.apply(handlerToUse);
}
}
@Override
public java.util.concurrent.Future getDependentObject(
GetDependentObjectRequest request,
final com.oracle.bmc.responses.AsyncHandler<
GetDependentObjectRequest, GetDependentObjectResponse>
handler) {
LOG.trace("Called async getDependentObject");
final GetDependentObjectRequest interceptedRequest =
GetDependentObjectConverter.interceptRequest(request);
final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
GetDependentObjectConverter.fromRequest(client, interceptedRequest);
final com.google.common.base.Function
transformer = GetDependentObjectConverter.fromResponse();
com.oracle.bmc.responses.AsyncHandler
handlerToUse = handler;
java.util.function.Function<
com.oracle.bmc.responses.AsyncHandler<
GetDependentObjectRequest, GetDependentObjectResponse>,
java.util.concurrent.Future>
futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer);
if (this.authenticationDetailsProvider
instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) {
return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper<
GetDependentObjectRequest, GetDependentObjectResponse>(
(com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider)
this.authenticationDetailsProvider,
handlerToUse,
futureSupplier) {
@Override
protected void beforeRetryAction() {}
};
} else {
return futureSupplier.apply(handlerToUse);
}
}
@Override
public java.util.concurrent.Future getExternalPublication(
GetExternalPublicationRequest request,
final com.oracle.bmc.responses.AsyncHandler<
GetExternalPublicationRequest, GetExternalPublicationResponse>
handler) {
LOG.trace("Called async getExternalPublication");
final GetExternalPublicationRequest interceptedRequest =
GetExternalPublicationConverter.interceptRequest(request);
final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
GetExternalPublicationConverter.fromRequest(client, interceptedRequest);
final com.google.common.base.Function<
javax.ws.rs.core.Response, GetExternalPublicationResponse>
transformer = GetExternalPublicationConverter.fromResponse();
com.oracle.bmc.responses.AsyncHandler<
GetExternalPublicationRequest, GetExternalPublicationResponse>
handlerToUse = handler;
java.util.function.Function<
com.oracle.bmc.responses.AsyncHandler<
GetExternalPublicationRequest, GetExternalPublicationResponse>,
java.util.concurrent.Future>
futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer);
if (this.authenticationDetailsProvider
instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) {
return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper<
GetExternalPublicationRequest, GetExternalPublicationResponse>(
(com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider)
this.authenticationDetailsProvider,
handlerToUse,
futureSupplier) {
@Override
protected void beforeRetryAction() {}
};
} else {
return futureSupplier.apply(handlerToUse);
}
}
@Override
public java.util.concurrent.Future
getExternalPublicationValidation(
GetExternalPublicationValidationRequest request,
final com.oracle.bmc.responses.AsyncHandler<
GetExternalPublicationValidationRequest,
GetExternalPublicationValidationResponse>
handler) {
LOG.trace("Called async getExternalPublicationValidation");
final GetExternalPublicationValidationRequest interceptedRequest =
GetExternalPublicationValidationConverter.interceptRequest(request);
final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
GetExternalPublicationValidationConverter.fromRequest(client, interceptedRequest);
final com.google.common.base.Function<
javax.ws.rs.core.Response, GetExternalPublicationValidationResponse>
transformer = GetExternalPublicationValidationConverter.fromResponse();
com.oracle.bmc.responses.AsyncHandler<
GetExternalPublicationValidationRequest,
GetExternalPublicationValidationResponse>
handlerToUse = handler;
java.util.function.Function<
com.oracle.bmc.responses.AsyncHandler<
GetExternalPublicationValidationRequest,
GetExternalPublicationValidationResponse>,
java.util.concurrent.Future>
futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer);
if (this.authenticationDetailsProvider
instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) {
return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper<
GetExternalPublicationValidationRequest,
GetExternalPublicationValidationResponse>(
(com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider)
this.authenticationDetailsProvider,
handlerToUse,
futureSupplier) {
@Override
protected void beforeRetryAction() {}
};
} else {
return futureSupplier.apply(handlerToUse);
}
}
@Override
public java.util.concurrent.Future getFolder(
GetFolderRequest request,
final com.oracle.bmc.responses.AsyncHandler
handler) {
LOG.trace("Called async getFolder");
final GetFolderRequest interceptedRequest = GetFolderConverter.interceptRequest(request);
final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
GetFolderConverter.fromRequest(client, interceptedRequest);
final com.google.common.base.Function
transformer = GetFolderConverter.fromResponse();
com.oracle.bmc.responses.AsyncHandler handlerToUse =
handler;
java.util.function.Function<
com.oracle.bmc.responses.AsyncHandler,
java.util.concurrent.Future>
futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer);
if (this.authenticationDetailsProvider
instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) {
return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper<
GetFolderRequest, GetFolderResponse>(
(com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider)
this.authenticationDetailsProvider,
handlerToUse,
futureSupplier) {
@Override
protected void beforeRetryAction() {}
};
} else {
return futureSupplier.apply(handlerToUse);
}
}
@Override
public java.util.concurrent.Future getPatch(
GetPatchRequest request,
final com.oracle.bmc.responses.AsyncHandler
handler) {
LOG.trace("Called async getPatch");
final GetPatchRequest interceptedRequest = GetPatchConverter.interceptRequest(request);
final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
GetPatchConverter.fromRequest(client, interceptedRequest);
final com.google.common.base.Function
transformer = GetPatchConverter.fromResponse();
com.oracle.bmc.responses.AsyncHandler handlerToUse =
handler;
java.util.function.Function<
com.oracle.bmc.responses.AsyncHandler,
java.util.concurrent.Future>
futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer);
if (this.authenticationDetailsProvider
instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) {
return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper<
GetPatchRequest, GetPatchResponse>(
(com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider)
this.authenticationDetailsProvider,
handlerToUse,
futureSupplier) {
@Override
protected void beforeRetryAction() {}
};
} else {
return futureSupplier.apply(handlerToUse);
}
}
@Override
public java.util.concurrent.Future getPipeline(
GetPipelineRequest request,
final com.oracle.bmc.responses.AsyncHandler
handler) {
LOG.trace("Called async getPipeline");
final GetPipelineRequest interceptedRequest =
GetPipelineConverter.interceptRequest(request);
final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
GetPipelineConverter.fromRequest(client, interceptedRequest);
final com.google.common.base.Function
transformer = GetPipelineConverter.fromResponse();
com.oracle.bmc.responses.AsyncHandler
handlerToUse = handler;
java.util.function.Function<
com.oracle.bmc.responses.AsyncHandler<
GetPipelineRequest, GetPipelineResponse>,
java.util.concurrent.Future>
futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer);
if (this.authenticationDetailsProvider
instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) {
return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper<
GetPipelineRequest, GetPipelineResponse>(
(com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider)
this.authenticationDetailsProvider,
handlerToUse,
futureSupplier) {
@Override
protected void beforeRetryAction() {}
};
} else {
return futureSupplier.apply(handlerToUse);
}
}
@Override
public java.util.concurrent.Future getPipelineValidation(
GetPipelineValidationRequest request,
final com.oracle.bmc.responses.AsyncHandler<
GetPipelineValidationRequest, GetPipelineValidationResponse>
handler) {
LOG.trace("Called async getPipelineValidation");
final GetPipelineValidationRequest interceptedRequest =
GetPipelineValidationConverter.interceptRequest(request);
final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
GetPipelineValidationConverter.fromRequest(client, interceptedRequest);
final com.google.common.base.Function<
javax.ws.rs.core.Response, GetPipelineValidationResponse>
transformer = GetPipelineValidationConverter.fromResponse();
com.oracle.bmc.responses.AsyncHandler<
GetPipelineValidationRequest, GetPipelineValidationResponse>
handlerToUse = handler;
java.util.function.Function<
com.oracle.bmc.responses.AsyncHandler<
GetPipelineValidationRequest, GetPipelineValidationResponse>,
java.util.concurrent.Future>
futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer);
if (this.authenticationDetailsProvider
instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) {
return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper<
GetPipelineValidationRequest, GetPipelineValidationResponse>(
(com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider)
this.authenticationDetailsProvider,
handlerToUse,
futureSupplier) {
@Override
protected void beforeRetryAction() {}
};
} else {
return futureSupplier.apply(handlerToUse);
}
}
@Override
public java.util.concurrent.Future getProject(
GetProjectRequest request,
final com.oracle.bmc.responses.AsyncHandler
handler) {
LOG.trace("Called async getProject");
final GetProjectRequest interceptedRequest = GetProjectConverter.interceptRequest(request);
final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
GetProjectConverter.fromRequest(client, interceptedRequest);
final com.google.common.base.Function
transformer = GetProjectConverter.fromResponse();
com.oracle.bmc.responses.AsyncHandler handlerToUse =
handler;
java.util.function.Function<
com.oracle.bmc.responses.AsyncHandler<
GetProjectRequest, GetProjectResponse>,
java.util.concurrent.Future>
futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer);
if (this.authenticationDetailsProvider
instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) {
return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper<
GetProjectRequest, GetProjectResponse>(
(com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider)
this.authenticationDetailsProvider,
handlerToUse,
futureSupplier) {
@Override
protected void beforeRetryAction() {}
};
} else {
return futureSupplier.apply(handlerToUse);
}
}
@Override
public java.util.concurrent.Future getPublishedObject(
GetPublishedObjectRequest request,
final com.oracle.bmc.responses.AsyncHandler<
GetPublishedObjectRequest, GetPublishedObjectResponse>
handler) {
LOG.trace("Called async getPublishedObject");
final GetPublishedObjectRequest interceptedRequest =
GetPublishedObjectConverter.interceptRequest(request);
final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
GetPublishedObjectConverter.fromRequest(client, interceptedRequest);
final com.google.common.base.Function
transformer = GetPublishedObjectConverter.fromResponse();
com.oracle.bmc.responses.AsyncHandler
handlerToUse = handler;
java.util.function.Function<
com.oracle.bmc.responses.AsyncHandler<
GetPublishedObjectRequest, GetPublishedObjectResponse>,
java.util.concurrent.Future>
futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer);
if (this.authenticationDetailsProvider
instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) {
return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper<
GetPublishedObjectRequest, GetPublishedObjectResponse>(
(com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider)
this.authenticationDetailsProvider,
handlerToUse,
futureSupplier) {
@Override
protected void beforeRetryAction() {}
};
} else {
return futureSupplier.apply(handlerToUse);
}
}
@Override
public java.util.concurrent.Future getReference(
GetReferenceRequest request,
final com.oracle.bmc.responses.AsyncHandler
handler) {
LOG.trace("Called async getReference");
final GetReferenceRequest interceptedRequest =
GetReferenceConverter.interceptRequest(request);
final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
GetReferenceConverter.fromRequest(client, interceptedRequest);
final com.google.common.base.Function
transformer = GetReferenceConverter.fromResponse();
com.oracle.bmc.responses.AsyncHandler
handlerToUse = handler;
java.util.function.Function<
com.oracle.bmc.responses.AsyncHandler<
GetReferenceRequest, GetReferenceResponse>,
java.util.concurrent.Future>
futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer);
if (this.authenticationDetailsProvider
instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) {
return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper<
GetReferenceRequest, GetReferenceResponse>(
(com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider)
this.authenticationDetailsProvider,
handlerToUse,
futureSupplier) {
@Override
protected void beforeRetryAction() {}
};
} else {
return futureSupplier.apply(handlerToUse);
}
}
@Override
public java.util.concurrent.Future getSchema(
GetSchemaRequest request,
final com.oracle.bmc.responses.AsyncHandler
handler) {
LOG.trace("Called async getSchema");
final GetSchemaRequest interceptedRequest = GetSchemaConverter.interceptRequest(request);
final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
GetSchemaConverter.fromRequest(client, interceptedRequest);
final com.google.common.base.Function
transformer = GetSchemaConverter.fromResponse();
com.oracle.bmc.responses.AsyncHandler handlerToUse =
handler;
java.util.function.Function<
com.oracle.bmc.responses.AsyncHandler,
java.util.concurrent.Future>
futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer);
if (this.authenticationDetailsProvider
instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) {
return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper<
GetSchemaRequest, GetSchemaResponse>(
(com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider)
this.authenticationDetailsProvider,
handlerToUse,
futureSupplier) {
@Override
protected void beforeRetryAction() {}
};
} else {
return futureSupplier.apply(handlerToUse);
}
}
@Override
public java.util.concurrent.Future getTask(
GetTaskRequest request,
final com.oracle.bmc.responses.AsyncHandler handler) {
LOG.trace("Called async getTask");
final GetTaskRequest interceptedRequest = GetTaskConverter.interceptRequest(request);
final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
GetTaskConverter.fromRequest(client, interceptedRequest);
final com.google.common.base.Function
transformer = GetTaskConverter.fromResponse();
com.oracle.bmc.responses.AsyncHandler handlerToUse =
handler;
java.util.function.Function<
com.oracle.bmc.responses.AsyncHandler,
java.util.concurrent.Future>
futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer);
if (this.authenticationDetailsProvider
instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) {
return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper<
GetTaskRequest, GetTaskResponse>(
(com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider)
this.authenticationDetailsProvider,
handlerToUse,
futureSupplier) {
@Override
protected void beforeRetryAction() {}
};
} else {
return futureSupplier.apply(handlerToUse);
}
}
@Override
public java.util.concurrent.Future getTaskRun(
GetTaskRunRequest request,
final com.oracle.bmc.responses.AsyncHandler
handler) {
LOG.trace("Called async getTaskRun");
final GetTaskRunRequest interceptedRequest = GetTaskRunConverter.interceptRequest(request);
final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
GetTaskRunConverter.fromRequest(client, interceptedRequest);
final com.google.common.base.Function
transformer = GetTaskRunConverter.fromResponse();
com.oracle.bmc.responses.AsyncHandler handlerToUse =
handler;
java.util.function.Function<
com.oracle.bmc.responses.AsyncHandler<
GetTaskRunRequest, GetTaskRunResponse>,
java.util.concurrent.Future>
futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer);
if (this.authenticationDetailsProvider
instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) {
return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper<
GetTaskRunRequest, GetTaskRunResponse>(
(com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider)
this.authenticationDetailsProvider,
handlerToUse,
futureSupplier) {
@Override
protected void beforeRetryAction() {}
};
} else {
return futureSupplier.apply(handlerToUse);
}
}
@Override
public java.util.concurrent.Future getTaskValidation(
GetTaskValidationRequest request,
final com.oracle.bmc.responses.AsyncHandler<
GetTaskValidationRequest, GetTaskValidationResponse>
handler) {
LOG.trace("Called async getTaskValidation");
final GetTaskValidationRequest interceptedRequest =
GetTaskValidationConverter.interceptRequest(request);
final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
GetTaskValidationConverter.fromRequest(client, interceptedRequest);
final com.google.common.base.Function
transformer = GetTaskValidationConverter.fromResponse();
com.oracle.bmc.responses.AsyncHandler
handlerToUse = handler;
java.util.function.Function<
com.oracle.bmc.responses.AsyncHandler<
GetTaskValidationRequest, GetTaskValidationResponse>,
java.util.concurrent.Future>
futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer);
if (this.authenticationDetailsProvider
instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) {
return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper<
GetTaskValidationRequest, GetTaskValidationResponse>(
(com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider)
this.authenticationDetailsProvider,
handlerToUse,
futureSupplier) {
@Override
protected void beforeRetryAction() {}
};
} else {
return futureSupplier.apply(handlerToUse);
}
}
@Override
public java.util.concurrent.Future getWorkRequest(
GetWorkRequestRequest request,
final com.oracle.bmc.responses.AsyncHandler<
GetWorkRequestRequest, GetWorkRequestResponse>
handler) {
LOG.trace("Called async getWorkRequest");
final GetWorkRequestRequest interceptedRequest =
GetWorkRequestConverter.interceptRequest(request);
final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
GetWorkRequestConverter.fromRequest(client, interceptedRequest);
final com.google.common.base.Function
transformer = GetWorkRequestConverter.fromResponse();
com.oracle.bmc.responses.AsyncHandler
handlerToUse = handler;
java.util.function.Function<
com.oracle.bmc.responses.AsyncHandler<
GetWorkRequestRequest, GetWorkRequestResponse>,
java.util.concurrent.Future>
futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer);
if (this.authenticationDetailsProvider
instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) {
return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper<
GetWorkRequestRequest, GetWorkRequestResponse>(
(com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider)
this.authenticationDetailsProvider,
handlerToUse,
futureSupplier) {
@Override
protected void beforeRetryAction() {}
};
} else {
return futureSupplier.apply(handlerToUse);
}
}
@Override
public java.util.concurrent.Future getWorkspace(
GetWorkspaceRequest request,
final com.oracle.bmc.responses.AsyncHandler
handler) {
LOG.trace("Called async getWorkspace");
final GetWorkspaceRequest interceptedRequest =
GetWorkspaceConverter.interceptRequest(request);
final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
GetWorkspaceConverter.fromRequest(client, interceptedRequest);
final com.google.common.base.Function
transformer = GetWorkspaceConverter.fromResponse();
com.oracle.bmc.responses.AsyncHandler
handlerToUse = handler;
java.util.function.Function<
com.oracle.bmc.responses.AsyncHandler<
GetWorkspaceRequest, GetWorkspaceResponse>,
java.util.concurrent.Future>
futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer);
if (this.authenticationDetailsProvider
instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) {
return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper<
GetWorkspaceRequest, GetWorkspaceResponse>(
(com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider)
this.authenticationDetailsProvider,
handlerToUse,
futureSupplier) {
@Override
protected void beforeRetryAction() {}
};
} else {
return futureSupplier.apply(handlerToUse);
}
}
@Override
public java.util.concurrent.Future listApplications(
ListApplicationsRequest request,
final com.oracle.bmc.responses.AsyncHandler<
ListApplicationsRequest, ListApplicationsResponse>
handler) {
LOG.trace("Called async listApplications");
final ListApplicationsRequest interceptedRequest =
ListApplicationsConverter.interceptRequest(request);
final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
ListApplicationsConverter.fromRequest(client, interceptedRequest);
final com.google.common.base.Function
transformer = ListApplicationsConverter.fromResponse();
com.oracle.bmc.responses.AsyncHandler
handlerToUse = handler;
java.util.function.Function<
com.oracle.bmc.responses.AsyncHandler<
ListApplicationsRequest, ListApplicationsResponse>,
java.util.concurrent.Future>
futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer);
if (this.authenticationDetailsProvider
instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) {
return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper<
ListApplicationsRequest, ListApplicationsResponse>(
(com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider)
this.authenticationDetailsProvider,
handlerToUse,
futureSupplier) {
@Override
protected void beforeRetryAction() {}
};
} else {
return futureSupplier.apply(handlerToUse);
}
}
@Override
public java.util.concurrent.Future listConnectionValidations(
ListConnectionValidationsRequest request,
final com.oracle.bmc.responses.AsyncHandler<
ListConnectionValidationsRequest, ListConnectionValidationsResponse>
handler) {
LOG.trace("Called async listConnectionValidations");
final ListConnectionValidationsRequest interceptedRequest =
ListConnectionValidationsConverter.interceptRequest(request);
final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
ListConnectionValidationsConverter.fromRequest(client, interceptedRequest);
final com.google.common.base.Function<
javax.ws.rs.core.Response, ListConnectionValidationsResponse>
transformer = ListConnectionValidationsConverter.fromResponse();
com.oracle.bmc.responses.AsyncHandler<
ListConnectionValidationsRequest, ListConnectionValidationsResponse>
handlerToUse = handler;
java.util.function.Function<
com.oracle.bmc.responses.AsyncHandler<
ListConnectionValidationsRequest,
ListConnectionValidationsResponse>,
java.util.concurrent.Future