com.oracle.bmc.logging.LoggingManagementAsyncClient Maven / Gradle / Ivy
Show all versions of oci-java-sdk-logging 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.logging;
import com.oracle.bmc.logging.internal.http.*;
import com.oracle.bmc.logging.requests.*;
import com.oracle.bmc.logging.responses.*;
/**
* Async client implementation for LoggingManagement 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: 20200531")
@lombok.extern.slf4j.Slf4j
public class LoggingManagementAsyncClient implements LoggingManagementAsync {
/**
* Service instance for LoggingManagement.
*/
public static final com.oracle.bmc.Service SERVICE =
com.oracle.bmc.Services.serviceBuilder()
.serviceName("LOGGINGMANAGEMENT")
.serviceEndpointPrefix("")
.serviceEndpointTemplate("https://logging.{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 LoggingManagementAsyncClient(
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 LoggingManagementAsyncClient(
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 LoggingManagementAsyncClient(
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 LoggingManagementAsyncClient(
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 LoggingManagementAsyncClient(
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 LoggingManagementAsyncClient(
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 LoggingManagementAsyncClient(
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 LoggingManagementAsyncClient(
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, LoggingManagementAsyncClient> {
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 LoggingManagementAsyncClient build(
@lombok.NonNull
com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider
authenticationDetailsProvider) {
return new LoggingManagementAsyncClient(
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 changeLogGroupCompartment(
ChangeLogGroupCompartmentRequest request,
final com.oracle.bmc.responses.AsyncHandler<
ChangeLogGroupCompartmentRequest, ChangeLogGroupCompartmentResponse>
handler) {
LOG.trace("Called async changeLogGroupCompartment");
final ChangeLogGroupCompartmentRequest interceptedRequest =
ChangeLogGroupCompartmentConverter.interceptRequest(request);
final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
ChangeLogGroupCompartmentConverter.fromRequest(client, interceptedRequest);
final com.google.common.base.Function<
javax.ws.rs.core.Response, ChangeLogGroupCompartmentResponse>
transformer = ChangeLogGroupCompartmentConverter.fromResponse();
com.oracle.bmc.responses.AsyncHandler<
ChangeLogGroupCompartmentRequest, ChangeLogGroupCompartmentResponse>
handlerToUse = handler;
java.util.function.Function<
com.oracle.bmc.responses.AsyncHandler<
ChangeLogGroupCompartmentRequest,
ChangeLogGroupCompartmentResponse>,
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<
ChangeLogGroupCompartmentRequest, ChangeLogGroupCompartmentResponse>(
(com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider)
this.authenticationDetailsProvider,
handlerToUse,
futureSupplier) {
@Override
protected void beforeRetryAction() {}
};
} else {
return futureSupplier.apply(handlerToUse);
}
}
@Override
public java.util.concurrent.Future changeLogLogGroup(
ChangeLogLogGroupRequest request,
final com.oracle.bmc.responses.AsyncHandler<
ChangeLogLogGroupRequest, ChangeLogLogGroupResponse>
handler) {
LOG.trace("Called async changeLogLogGroup");
final ChangeLogLogGroupRequest interceptedRequest =
ChangeLogLogGroupConverter.interceptRequest(request);
final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
ChangeLogLogGroupConverter.fromRequest(client, interceptedRequest);
final com.google.common.base.Function
transformer = ChangeLogLogGroupConverter.fromResponse();
com.oracle.bmc.responses.AsyncHandler
handlerToUse = handler;
java.util.function.Function<
com.oracle.bmc.responses.AsyncHandler<
ChangeLogLogGroupRequest, ChangeLogLogGroupResponse>,
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<
ChangeLogLogGroupRequest, ChangeLogLogGroupResponse>(
(com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider)
this.authenticationDetailsProvider,
handlerToUse,
futureSupplier) {
@Override
protected void beforeRetryAction() {}
};
} else {
return futureSupplier.apply(handlerToUse);
}
}
@Override
public java.util.concurrent.Future
changeLogSavedSearchCompartment(
ChangeLogSavedSearchCompartmentRequest request,
final com.oracle.bmc.responses.AsyncHandler<
ChangeLogSavedSearchCompartmentRequest,
ChangeLogSavedSearchCompartmentResponse>
handler) {
LOG.trace("Called async changeLogSavedSearchCompartment");
final ChangeLogSavedSearchCompartmentRequest interceptedRequest =
ChangeLogSavedSearchCompartmentConverter.interceptRequest(request);
final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
ChangeLogSavedSearchCompartmentConverter.fromRequest(client, interceptedRequest);
final com.google.common.base.Function<
javax.ws.rs.core.Response, ChangeLogSavedSearchCompartmentResponse>
transformer = ChangeLogSavedSearchCompartmentConverter.fromResponse();
com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib);
com.oracle.bmc.responses.AsyncHandler<
ChangeLogSavedSearchCompartmentRequest,
ChangeLogSavedSearchCompartmentResponse>
handlerToUse = handler;
java.util.function.Function<
com.oracle.bmc.responses.AsyncHandler<
ChangeLogSavedSearchCompartmentRequest,
ChangeLogSavedSearchCompartmentResponse>,
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<
ChangeLogSavedSearchCompartmentRequest,
ChangeLogSavedSearchCompartmentResponse>(
(com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider)
this.authenticationDetailsProvider,
handlerToUse,
futureSupplier) {
@Override
protected void beforeRetryAction() {}
};
} else {
return futureSupplier.apply(handlerToUse);
}
}
@Override
public java.util.concurrent.Future
changeUnifiedAgentConfigurationCompartment(
ChangeUnifiedAgentConfigurationCompartmentRequest request,
final com.oracle.bmc.responses.AsyncHandler<
ChangeUnifiedAgentConfigurationCompartmentRequest,
ChangeUnifiedAgentConfigurationCompartmentResponse>
handler) {
LOG.trace("Called async changeUnifiedAgentConfigurationCompartment");
final ChangeUnifiedAgentConfigurationCompartmentRequest interceptedRequest =
ChangeUnifiedAgentConfigurationCompartmentConverter.interceptRequest(request);
final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
ChangeUnifiedAgentConfigurationCompartmentConverter.fromRequest(
client, interceptedRequest);
final com.google.common.base.Function<
javax.ws.rs.core.Response,
ChangeUnifiedAgentConfigurationCompartmentResponse>
transformer = ChangeUnifiedAgentConfigurationCompartmentConverter.fromResponse();
com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib);
com.oracle.bmc.responses.AsyncHandler<
ChangeUnifiedAgentConfigurationCompartmentRequest,
ChangeUnifiedAgentConfigurationCompartmentResponse>
handlerToUse = handler;
java.util.function.Function<
com.oracle.bmc.responses.AsyncHandler<
ChangeUnifiedAgentConfigurationCompartmentRequest,
ChangeUnifiedAgentConfigurationCompartmentResponse>,
java.util.concurrent.Future<
ChangeUnifiedAgentConfigurationCompartmentResponse>>
futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer);
if (this.authenticationDetailsProvider
instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) {
return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper<
ChangeUnifiedAgentConfigurationCompartmentRequest,
ChangeUnifiedAgentConfigurationCompartmentResponse>(
(com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider)
this.authenticationDetailsProvider,
handlerToUse,
futureSupplier) {
@Override
protected void beforeRetryAction() {}
};
} else {
return futureSupplier.apply(handlerToUse);
}
}
@Override
public java.util.concurrent.Future createLog(
CreateLogRequest request,
final com.oracle.bmc.responses.AsyncHandler
handler) {
LOG.trace("Called async createLog");
final CreateLogRequest interceptedRequest = CreateLogConverter.interceptRequest(request);
final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
CreateLogConverter.fromRequest(client, interceptedRequest);
final com.google.common.base.Function
transformer = CreateLogConverter.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,
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<
CreateLogRequest, CreateLogResponse>(
(com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider)
this.authenticationDetailsProvider,
handlerToUse,
futureSupplier) {
@Override
protected void beforeRetryAction() {}
};
} else {
return futureSupplier.apply(handlerToUse);
}
}
@Override
public java.util.concurrent.Future createLogGroup(
CreateLogGroupRequest request,
final com.oracle.bmc.responses.AsyncHandler<
CreateLogGroupRequest, CreateLogGroupResponse>
handler) {
LOG.trace("Called async createLogGroup");
final CreateLogGroupRequest interceptedRequest =
CreateLogGroupConverter.interceptRequest(request);
final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
CreateLogGroupConverter.fromRequest(client, interceptedRequest);
final com.google.common.base.Function
transformer = CreateLogGroupConverter.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<
CreateLogGroupRequest, CreateLogGroupResponse>,
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<
CreateLogGroupRequest, CreateLogGroupResponse>(
(com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider)
this.authenticationDetailsProvider,
handlerToUse,
futureSupplier) {
@Override
protected void beforeRetryAction() {}
};
} else {
return futureSupplier.apply(handlerToUse);
}
}
@Override
public java.util.concurrent.Future createLogSavedSearch(
CreateLogSavedSearchRequest request,
final com.oracle.bmc.responses.AsyncHandler<
CreateLogSavedSearchRequest, CreateLogSavedSearchResponse>
handler) {
LOG.trace("Called async createLogSavedSearch");
final CreateLogSavedSearchRequest interceptedRequest =
CreateLogSavedSearchConverter.interceptRequest(request);
final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
CreateLogSavedSearchConverter.fromRequest(client, interceptedRequest);
final com.google.common.base.Function<
javax.ws.rs.core.Response, CreateLogSavedSearchResponse>
transformer = CreateLogSavedSearchConverter.fromResponse();
com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib);
com.oracle.bmc.responses.AsyncHandler<
CreateLogSavedSearchRequest, CreateLogSavedSearchResponse>
handlerToUse = handler;
java.util.function.Function<
com.oracle.bmc.responses.AsyncHandler<
CreateLogSavedSearchRequest, CreateLogSavedSearchResponse>,
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<
CreateLogSavedSearchRequest, CreateLogSavedSearchResponse>(
(com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider)
this.authenticationDetailsProvider,
handlerToUse,
futureSupplier) {
@Override
protected void beforeRetryAction() {}
};
} else {
return futureSupplier.apply(handlerToUse);
}
}
@Override
public java.util.concurrent.Future
createUnifiedAgentConfiguration(
CreateUnifiedAgentConfigurationRequest request,
final com.oracle.bmc.responses.AsyncHandler<
CreateUnifiedAgentConfigurationRequest,
CreateUnifiedAgentConfigurationResponse>
handler) {
LOG.trace("Called async createUnifiedAgentConfiguration");
final CreateUnifiedAgentConfigurationRequest interceptedRequest =
CreateUnifiedAgentConfigurationConverter.interceptRequest(request);
final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
CreateUnifiedAgentConfigurationConverter.fromRequest(client, interceptedRequest);
final com.google.common.base.Function<
javax.ws.rs.core.Response, CreateUnifiedAgentConfigurationResponse>
transformer = CreateUnifiedAgentConfigurationConverter.fromResponse();
com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib);
com.oracle.bmc.responses.AsyncHandler<
CreateUnifiedAgentConfigurationRequest,
CreateUnifiedAgentConfigurationResponse>
handlerToUse = handler;
java.util.function.Function<
com.oracle.bmc.responses.AsyncHandler<
CreateUnifiedAgentConfigurationRequest,
CreateUnifiedAgentConfigurationResponse>,
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<
CreateUnifiedAgentConfigurationRequest,
CreateUnifiedAgentConfigurationResponse>(
(com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider)
this.authenticationDetailsProvider,
handlerToUse,
futureSupplier) {
@Override
protected void beforeRetryAction() {}
};
} else {
return futureSupplier.apply(handlerToUse);
}
}
@Override
public java.util.concurrent.Future deleteLog(
DeleteLogRequest request,
final com.oracle.bmc.responses.AsyncHandler
handler) {
LOG.trace("Called async deleteLog");
final DeleteLogRequest interceptedRequest = DeleteLogConverter.interceptRequest(request);
final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
DeleteLogConverter.fromRequest(client, interceptedRequest);
final com.google.common.base.Function
transformer = DeleteLogConverter.fromResponse();
com.oracle.bmc.responses.AsyncHandler handlerToUse =
handler;
java.util.function.Function<
com.oracle.bmc.responses.AsyncHandler,
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<
DeleteLogRequest, DeleteLogResponse>(
(com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider)
this.authenticationDetailsProvider,
handlerToUse,
futureSupplier) {
@Override
protected void beforeRetryAction() {}
};
} else {
return futureSupplier.apply(handlerToUse);
}
}
@Override
public java.util.concurrent.Future deleteLogGroup(
DeleteLogGroupRequest request,
final com.oracle.bmc.responses.AsyncHandler<
DeleteLogGroupRequest, DeleteLogGroupResponse>
handler) {
LOG.trace("Called async deleteLogGroup");
final DeleteLogGroupRequest interceptedRequest =
DeleteLogGroupConverter.interceptRequest(request);
final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
DeleteLogGroupConverter.fromRequest(client, interceptedRequest);
final com.google.common.base.Function
transformer = DeleteLogGroupConverter.fromResponse();
com.oracle.bmc.responses.AsyncHandler
handlerToUse = handler;
java.util.function.Function<
com.oracle.bmc.responses.AsyncHandler<
DeleteLogGroupRequest, DeleteLogGroupResponse>,
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<
DeleteLogGroupRequest, DeleteLogGroupResponse>(
(com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider)
this.authenticationDetailsProvider,
handlerToUse,
futureSupplier) {
@Override
protected void beforeRetryAction() {}
};
} else {
return futureSupplier.apply(handlerToUse);
}
}
@Override
public java.util.concurrent.Future deleteLogSavedSearch(
DeleteLogSavedSearchRequest request,
final com.oracle.bmc.responses.AsyncHandler<
DeleteLogSavedSearchRequest, DeleteLogSavedSearchResponse>
handler) {
LOG.trace("Called async deleteLogSavedSearch");
final DeleteLogSavedSearchRequest interceptedRequest =
DeleteLogSavedSearchConverter.interceptRequest(request);
final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
DeleteLogSavedSearchConverter.fromRequest(client, interceptedRequest);
final com.google.common.base.Function<
javax.ws.rs.core.Response, DeleteLogSavedSearchResponse>
transformer = DeleteLogSavedSearchConverter.fromResponse();
com.oracle.bmc.responses.AsyncHandler<
DeleteLogSavedSearchRequest, DeleteLogSavedSearchResponse>
handlerToUse = handler;
java.util.function.Function<
com.oracle.bmc.responses.AsyncHandler<
DeleteLogSavedSearchRequest, DeleteLogSavedSearchResponse>,
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<
DeleteLogSavedSearchRequest, DeleteLogSavedSearchResponse>(
(com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider)
this.authenticationDetailsProvider,
handlerToUse,
futureSupplier) {
@Override
protected void beforeRetryAction() {}
};
} else {
return futureSupplier.apply(handlerToUse);
}
}
@Override
public java.util.concurrent.Future
deleteUnifiedAgentConfiguration(
DeleteUnifiedAgentConfigurationRequest request,
final com.oracle.bmc.responses.AsyncHandler<
DeleteUnifiedAgentConfigurationRequest,
DeleteUnifiedAgentConfigurationResponse>
handler) {
LOG.trace("Called async deleteUnifiedAgentConfiguration");
final DeleteUnifiedAgentConfigurationRequest interceptedRequest =
DeleteUnifiedAgentConfigurationConverter.interceptRequest(request);
final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
DeleteUnifiedAgentConfigurationConverter.fromRequest(client, interceptedRequest);
final com.google.common.base.Function<
javax.ws.rs.core.Response, DeleteUnifiedAgentConfigurationResponse>
transformer = DeleteUnifiedAgentConfigurationConverter.fromResponse();
com.oracle.bmc.responses.AsyncHandler<
DeleteUnifiedAgentConfigurationRequest,
DeleteUnifiedAgentConfigurationResponse>
handlerToUse = handler;
java.util.function.Function<
com.oracle.bmc.responses.AsyncHandler<
DeleteUnifiedAgentConfigurationRequest,
DeleteUnifiedAgentConfigurationResponse>,
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<
DeleteUnifiedAgentConfigurationRequest,
DeleteUnifiedAgentConfigurationResponse>(
(com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider)
this.authenticationDetailsProvider,
handlerToUse,
futureSupplier) {
@Override
protected void beforeRetryAction() {}
};
} else {
return futureSupplier.apply(handlerToUse);
}
}
@Override
public java.util.concurrent.Future deleteWorkRequest(
DeleteWorkRequestRequest request,
final com.oracle.bmc.responses.AsyncHandler<
DeleteWorkRequestRequest, DeleteWorkRequestResponse>
handler) {
LOG.trace("Called async deleteWorkRequest");
final DeleteWorkRequestRequest interceptedRequest =
DeleteWorkRequestConverter.interceptRequest(request);
final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
DeleteWorkRequestConverter.fromRequest(client, interceptedRequest);
final com.google.common.base.Function
transformer = DeleteWorkRequestConverter.fromResponse();
com.oracle.bmc.responses.AsyncHandler
handlerToUse = handler;
java.util.function.Function<
com.oracle.bmc.responses.AsyncHandler<
DeleteWorkRequestRequest, DeleteWorkRequestResponse>,
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<
DeleteWorkRequestRequest, DeleteWorkRequestResponse>(
(com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider)
this.authenticationDetailsProvider,
handlerToUse,
futureSupplier) {
@Override
protected void beforeRetryAction() {}
};
} else {
return futureSupplier.apply(handlerToUse);
}
}
@Override
public java.util.concurrent.Future getLog(
GetLogRequest request,
final com.oracle.bmc.responses.AsyncHandler handler) {
LOG.trace("Called async getLog");
final GetLogRequest interceptedRequest = GetLogConverter.interceptRequest(request);
final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
GetLogConverter.fromRequest(client, interceptedRequest);
final com.google.common.base.Function
transformer = GetLogConverter.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<
GetLogRequest, GetLogResponse>(
(com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider)
this.authenticationDetailsProvider,
handlerToUse,
futureSupplier) {
@Override
protected void beforeRetryAction() {}
};
} else {
return futureSupplier.apply(handlerToUse);
}
}
@Override
public java.util.concurrent.Future getLogGroup(
GetLogGroupRequest request,
final com.oracle.bmc.responses.AsyncHandler
handler) {
LOG.trace("Called async getLogGroup");
final GetLogGroupRequest interceptedRequest =
GetLogGroupConverter.interceptRequest(request);
final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
GetLogGroupConverter.fromRequest(client, interceptedRequest);
final com.google.common.base.Function
transformer = GetLogGroupConverter.fromResponse();
com.oracle.bmc.responses.AsyncHandler
handlerToUse = handler;
java.util.function.Function<
com.oracle.bmc.responses.AsyncHandler<
GetLogGroupRequest, GetLogGroupResponse>,
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<
GetLogGroupRequest, GetLogGroupResponse>(
(com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider)
this.authenticationDetailsProvider,
handlerToUse,
futureSupplier) {
@Override
protected void beforeRetryAction() {}
};
} else {
return futureSupplier.apply(handlerToUse);
}
}
@Override
public java.util.concurrent.Future getLogIncludedSearch(
GetLogIncludedSearchRequest request,
final com.oracle.bmc.responses.AsyncHandler<
GetLogIncludedSearchRequest, GetLogIncludedSearchResponse>
handler) {
LOG.trace("Called async getLogIncludedSearch");
final GetLogIncludedSearchRequest interceptedRequest =
GetLogIncludedSearchConverter.interceptRequest(request);
final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
GetLogIncludedSearchConverter.fromRequest(client, interceptedRequest);
final com.google.common.base.Function<
javax.ws.rs.core.Response, GetLogIncludedSearchResponse>
transformer = GetLogIncludedSearchConverter.fromResponse();
com.oracle.bmc.responses.AsyncHandler<
GetLogIncludedSearchRequest, GetLogIncludedSearchResponse>
handlerToUse = handler;
java.util.function.Function<
com.oracle.bmc.responses.AsyncHandler<
GetLogIncludedSearchRequest, GetLogIncludedSearchResponse>,
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<
GetLogIncludedSearchRequest, GetLogIncludedSearchResponse>(
(com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider)
this.authenticationDetailsProvider,
handlerToUse,
futureSupplier) {
@Override
protected void beforeRetryAction() {}
};
} else {
return futureSupplier.apply(handlerToUse);
}
}
@Override
public java.util.concurrent.Future getLogSavedSearch(
GetLogSavedSearchRequest request,
final com.oracle.bmc.responses.AsyncHandler<
GetLogSavedSearchRequest, GetLogSavedSearchResponse>
handler) {
LOG.trace("Called async getLogSavedSearch");
final GetLogSavedSearchRequest interceptedRequest =
GetLogSavedSearchConverter.interceptRequest(request);
final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
GetLogSavedSearchConverter.fromRequest(client, interceptedRequest);
final com.google.common.base.Function
transformer = GetLogSavedSearchConverter.fromResponse();
com.oracle.bmc.responses.AsyncHandler
handlerToUse = handler;
java.util.function.Function<
com.oracle.bmc.responses.AsyncHandler<
GetLogSavedSearchRequest, GetLogSavedSearchResponse>,
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<
GetLogSavedSearchRequest, GetLogSavedSearchResponse>(
(com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider)
this.authenticationDetailsProvider,
handlerToUse,
futureSupplier) {
@Override
protected void beforeRetryAction() {}
};
} else {
return futureSupplier.apply(handlerToUse);
}
}
@Override
public java.util.concurrent.Future
getUnifiedAgentConfiguration(
GetUnifiedAgentConfigurationRequest request,
final com.oracle.bmc.responses.AsyncHandler<
GetUnifiedAgentConfigurationRequest,
GetUnifiedAgentConfigurationResponse>
handler) {
LOG.trace("Called async getUnifiedAgentConfiguration");
final GetUnifiedAgentConfigurationRequest interceptedRequest =
GetUnifiedAgentConfigurationConverter.interceptRequest(request);
final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
GetUnifiedAgentConfigurationConverter.fromRequest(client, interceptedRequest);
final com.google.common.base.Function<
javax.ws.rs.core.Response, GetUnifiedAgentConfigurationResponse>
transformer = GetUnifiedAgentConfigurationConverter.fromResponse();
com.oracle.bmc.responses.AsyncHandler<
GetUnifiedAgentConfigurationRequest, GetUnifiedAgentConfigurationResponse>
handlerToUse = handler;
java.util.function.Function<
com.oracle.bmc.responses.AsyncHandler<
GetUnifiedAgentConfigurationRequest,
GetUnifiedAgentConfigurationResponse>,
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<
GetUnifiedAgentConfigurationRequest, GetUnifiedAgentConfigurationResponse>(
(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 listLogGroups(
ListLogGroupsRequest request,
final com.oracle.bmc.responses.AsyncHandler
handler) {
LOG.trace("Called async listLogGroups");
final ListLogGroupsRequest interceptedRequest =
ListLogGroupsConverter.interceptRequest(request);
final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
ListLogGroupsConverter.fromRequest(client, interceptedRequest);
final com.google.common.base.Function
transformer = ListLogGroupsConverter.fromResponse();
com.oracle.bmc.responses.AsyncHandler
handlerToUse = handler;
java.util.function.Function<
com.oracle.bmc.responses.AsyncHandler<
ListLogGroupsRequest, ListLogGroupsResponse>,
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<
ListLogGroupsRequest, ListLogGroupsResponse>(
(com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider)
this.authenticationDetailsProvider,
handlerToUse,
futureSupplier) {
@Override
protected void beforeRetryAction() {}
};
} else {
return futureSupplier.apply(handlerToUse);
}
}
@Override
public java.util.concurrent.Future listLogIncludedSearches(
ListLogIncludedSearchesRequest request,
final com.oracle.bmc.responses.AsyncHandler<
ListLogIncludedSearchesRequest, ListLogIncludedSearchesResponse>
handler) {
LOG.trace("Called async listLogIncludedSearches");
final ListLogIncludedSearchesRequest interceptedRequest =
ListLogIncludedSearchesConverter.interceptRequest(request);
final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
ListLogIncludedSearchesConverter.fromRequest(client, interceptedRequest);
final com.google.common.base.Function<
javax.ws.rs.core.Response, ListLogIncludedSearchesResponse>
transformer = ListLogIncludedSearchesConverter.fromResponse();
com.oracle.bmc.responses.AsyncHandler<
ListLogIncludedSearchesRequest, ListLogIncludedSearchesResponse>
handlerToUse = handler;
java.util.function.Function<
com.oracle.bmc.responses.AsyncHandler<
ListLogIncludedSearchesRequest, ListLogIncludedSearchesResponse>,
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<
ListLogIncludedSearchesRequest, ListLogIncludedSearchesResponse>(
(com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider)
this.authenticationDetailsProvider,
handlerToUse,
futureSupplier) {
@Override
protected void beforeRetryAction() {}
};
} else {
return futureSupplier.apply(handlerToUse);
}
}
@Override
public java.util.concurrent.Future listLogSavedSearches(
ListLogSavedSearchesRequest request,
final com.oracle.bmc.responses.AsyncHandler<
ListLogSavedSearchesRequest, ListLogSavedSearchesResponse>
handler) {
LOG.trace("Called async listLogSavedSearches");
final ListLogSavedSearchesRequest interceptedRequest =
ListLogSavedSearchesConverter.interceptRequest(request);
final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
ListLogSavedSearchesConverter.fromRequest(client, interceptedRequest);
final com.google.common.base.Function<
javax.ws.rs.core.Response, ListLogSavedSearchesResponse>
transformer = ListLogSavedSearchesConverter.fromResponse();
com.oracle.bmc.responses.AsyncHandler<
ListLogSavedSearchesRequest, ListLogSavedSearchesResponse>
handlerToUse = handler;
java.util.function.Function<
com.oracle.bmc.responses.AsyncHandler<
ListLogSavedSearchesRequest, ListLogSavedSearchesResponse>,
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<
ListLogSavedSearchesRequest, ListLogSavedSearchesResponse>(
(com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider)
this.authenticationDetailsProvider,
handlerToUse,
futureSupplier) {
@Override
protected void beforeRetryAction() {}
};
} else {
return futureSupplier.apply(handlerToUse);
}
}
@Override
public java.util.concurrent.Future listLogs(
ListLogsRequest request,
final com.oracle.bmc.responses.AsyncHandler
handler) {
LOG.trace("Called async listLogs");
final ListLogsRequest interceptedRequest = ListLogsConverter.interceptRequest(request);
final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
ListLogsConverter.fromRequest(client, interceptedRequest);
final com.google.common.base.Function
transformer = ListLogsConverter.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<
ListLogsRequest, ListLogsResponse>(
(com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider)
this.authenticationDetailsProvider,
handlerToUse,
futureSupplier) {
@Override
protected void beforeRetryAction() {}
};
} else {
return futureSupplier.apply(handlerToUse);
}
}
@Override
public java.util.concurrent.Future listServices(
ListServicesRequest request,
final com.oracle.bmc.responses.AsyncHandler
handler) {
LOG.trace("Called async listServices");
final ListServicesRequest interceptedRequest =
ListServicesConverter.interceptRequest(request);
final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
ListServicesConverter.fromRequest(client, interceptedRequest);
final com.google.common.base.Function
transformer = ListServicesConverter.fromResponse();
com.oracle.bmc.responses.AsyncHandler
handlerToUse = handler;
java.util.function.Function<
com.oracle.bmc.responses.AsyncHandler<
ListServicesRequest, ListServicesResponse>,
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<
ListServicesRequest, ListServicesResponse>(
(com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider)
this.authenticationDetailsProvider,
handlerToUse,
futureSupplier) {
@Override
protected void beforeRetryAction() {}
};
} else {
return futureSupplier.apply(handlerToUse);
}
}
@Override
public java.util.concurrent.Future
listUnifiedAgentConfigurations(
ListUnifiedAgentConfigurationsRequest request,
final com.oracle.bmc.responses.AsyncHandler<
ListUnifiedAgentConfigurationsRequest,
ListUnifiedAgentConfigurationsResponse>
handler) {
LOG.trace("Called async listUnifiedAgentConfigurations");
final ListUnifiedAgentConfigurationsRequest interceptedRequest =
ListUnifiedAgentConfigurationsConverter.interceptRequest(request);
final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
ListUnifiedAgentConfigurationsConverter.fromRequest(client, interceptedRequest);
final com.google.common.base.Function<
javax.ws.rs.core.Response, ListUnifiedAgentConfigurationsResponse>
transformer = ListUnifiedAgentConfigurationsConverter.fromResponse();
com.oracle.bmc.responses.AsyncHandler<
ListUnifiedAgentConfigurationsRequest,
ListUnifiedAgentConfigurationsResponse>
handlerToUse = handler;
java.util.function.Function<
com.oracle.bmc.responses.AsyncHandler<
ListUnifiedAgentConfigurationsRequest,
ListUnifiedAgentConfigurationsResponse>,
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<
ListUnifiedAgentConfigurationsRequest, ListUnifiedAgentConfigurationsResponse>(
(com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider)
this.authenticationDetailsProvider,
handlerToUse,
futureSupplier) {
@Override
protected void beforeRetryAction() {}
};
} else {
return futureSupplier.apply(handlerToUse);
}
}
@Override
public java.util.concurrent.Future listWorkRequestErrors(
ListWorkRequestErrorsRequest request,
final com.oracle.bmc.responses.AsyncHandler<
ListWorkRequestErrorsRequest, ListWorkRequestErrorsResponse>
handler) {
LOG.trace("Called async listWorkRequestErrors");
final ListWorkRequestErrorsRequest interceptedRequest =
ListWorkRequestErrorsConverter.interceptRequest(request);
final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
ListWorkRequestErrorsConverter.fromRequest(client, interceptedRequest);
final com.google.common.base.Function<
javax.ws.rs.core.Response, ListWorkRequestErrorsResponse>
transformer = ListWorkRequestErrorsConverter.fromResponse();
com.oracle.bmc.responses.AsyncHandler<
ListWorkRequestErrorsRequest, ListWorkRequestErrorsResponse>
handlerToUse = handler;
java.util.function.Function<
com.oracle.bmc.responses.AsyncHandler<
ListWorkRequestErrorsRequest, ListWorkRequestErrorsResponse>,
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<
ListWorkRequestErrorsRequest, ListWorkRequestErrorsResponse>(
(com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider)
this.authenticationDetailsProvider,
handlerToUse,
futureSupplier) {
@Override
protected void beforeRetryAction() {}
};
} else {
return futureSupplier.apply(handlerToUse);
}
}
@Override
public java.util.concurrent.Future listWorkRequestLogs(
ListWorkRequestLogsRequest request,
final com.oracle.bmc.responses.AsyncHandler<
ListWorkRequestLogsRequest, ListWorkRequestLogsResponse>
handler) {
LOG.trace("Called async listWorkRequestLogs");
final ListWorkRequestLogsRequest interceptedRequest =
ListWorkRequestLogsConverter.interceptRequest(request);
final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
ListWorkRequestLogsConverter.fromRequest(client, interceptedRequest);
final com.google.common.base.Function<
javax.ws.rs.core.Response, ListWorkRequestLogsResponse>
transformer = ListWorkRequestLogsConverter.fromResponse();
com.oracle.bmc.responses.AsyncHandler<
ListWorkRequestLogsRequest, ListWorkRequestLogsResponse>
handlerToUse = handler;
java.util.function.Function<
com.oracle.bmc.responses.AsyncHandler<
ListWorkRequestLogsRequest, ListWorkRequestLogsResponse>,
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<
ListWorkRequestLogsRequest, ListWorkRequestLogsResponse>(
(com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider)
this.authenticationDetailsProvider,
handlerToUse,
futureSupplier) {
@Override
protected void beforeRetryAction() {}
};
} else {
return futureSupplier.apply(handlerToUse);
}
}
@Override
public java.util.concurrent.Future listWorkRequests(
ListWorkRequestsRequest request,
final com.oracle.bmc.responses.AsyncHandler<
ListWorkRequestsRequest, ListWorkRequestsResponse>
handler) {
LOG.trace("Called async listWorkRequests");
final ListWorkRequestsRequest interceptedRequest =
ListWorkRequestsConverter.interceptRequest(request);
final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
ListWorkRequestsConverter.fromRequest(client, interceptedRequest);
final com.google.common.base.Function
transformer = ListWorkRequestsConverter.fromResponse();
com.oracle.bmc.responses.AsyncHandler
handlerToUse = handler;
java.util.function.Function<
com.oracle.bmc.responses.AsyncHandler<
ListWorkRequestsRequest, ListWorkRequestsResponse>,
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<
ListWorkRequestsRequest, ListWorkRequestsResponse>(
(com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider)
this.authenticationDetailsProvider,
handlerToUse,
futureSupplier) {
@Override
protected void beforeRetryAction() {}
};
} else {
return futureSupplier.apply(handlerToUse);
}
}
@Override
public java.util.concurrent.Future updateLog(
UpdateLogRequest request,
final com.oracle.bmc.responses.AsyncHandler
handler) {
LOG.trace("Called async updateLog");
final UpdateLogRequest interceptedRequest = UpdateLogConverter.interceptRequest(request);
final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
UpdateLogConverter.fromRequest(client, interceptedRequest);
final com.google.common.base.Function
transformer = UpdateLogConverter.fromResponse();
com.oracle.bmc.responses.AsyncHandler handlerToUse =
handler;
java.util.function.Function<
com.oracle.bmc.responses.AsyncHandler,
java.util.concurrent.Future>
futureSupplier = client.putFutureSupplier(interceptedRequest, ib, transformer);
if (this.authenticationDetailsProvider
instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) {
return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper<
UpdateLogRequest, UpdateLogResponse>(
(com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider)
this.authenticationDetailsProvider,
handlerToUse,
futureSupplier) {
@Override
protected void beforeRetryAction() {}
};
} else {
return futureSupplier.apply(handlerToUse);
}
}
@Override
public java.util.concurrent.Future updateLogGroup(
UpdateLogGroupRequest request,
final com.oracle.bmc.responses.AsyncHandler<
UpdateLogGroupRequest, UpdateLogGroupResponse>
handler) {
LOG.trace("Called async updateLogGroup");
final UpdateLogGroupRequest interceptedRequest =
UpdateLogGroupConverter.interceptRequest(request);
final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
UpdateLogGroupConverter.fromRequest(client, interceptedRequest);
final com.google.common.base.Function
transformer = UpdateLogGroupConverter.fromResponse();
com.oracle.bmc.responses.AsyncHandler
handlerToUse = handler;
java.util.function.Function<
com.oracle.bmc.responses.AsyncHandler<
UpdateLogGroupRequest, UpdateLogGroupResponse>,
java.util.concurrent.Future>
futureSupplier = client.putFutureSupplier(interceptedRequest, ib, transformer);
if (this.authenticationDetailsProvider
instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) {
return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper<
UpdateLogGroupRequest, UpdateLogGroupResponse>(
(com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider)
this.authenticationDetailsProvider,
handlerToUse,
futureSupplier) {
@Override
protected void beforeRetryAction() {}
};
} else {
return futureSupplier.apply(handlerToUse);
}
}
@Override
public java.util.concurrent.Future updateLogSavedSearch(
UpdateLogSavedSearchRequest request,
final com.oracle.bmc.responses.AsyncHandler<
UpdateLogSavedSearchRequest, UpdateLogSavedSearchResponse>
handler) {
LOG.trace("Called async updateLogSavedSearch");
final UpdateLogSavedSearchRequest interceptedRequest =
UpdateLogSavedSearchConverter.interceptRequest(request);
final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
UpdateLogSavedSearchConverter.fromRequest(client, interceptedRequest);
final com.google.common.base.Function<
javax.ws.rs.core.Response, UpdateLogSavedSearchResponse>
transformer = UpdateLogSavedSearchConverter.fromResponse();
com.oracle.bmc.responses.AsyncHandler<
UpdateLogSavedSearchRequest, UpdateLogSavedSearchResponse>
handlerToUse = handler;
java.util.function.Function<
com.oracle.bmc.responses.AsyncHandler<
UpdateLogSavedSearchRequest, UpdateLogSavedSearchResponse>,
java.util.concurrent.Future>
futureSupplier = client.putFutureSupplier(interceptedRequest, ib, transformer);
if (this.authenticationDetailsProvider
instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) {
return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper<
UpdateLogSavedSearchRequest, UpdateLogSavedSearchResponse>(
(com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider)
this.authenticationDetailsProvider,
handlerToUse,
futureSupplier) {
@Override
protected void beforeRetryAction() {}
};
} else {
return futureSupplier.apply(handlerToUse);
}
}
@Override
public java.util.concurrent.Future
updateUnifiedAgentConfiguration(
UpdateUnifiedAgentConfigurationRequest request,
final com.oracle.bmc.responses.AsyncHandler<
UpdateUnifiedAgentConfigurationRequest,
UpdateUnifiedAgentConfigurationResponse>
handler) {
LOG.trace("Called async updateUnifiedAgentConfiguration");
final UpdateUnifiedAgentConfigurationRequest interceptedRequest =
UpdateUnifiedAgentConfigurationConverter.interceptRequest(request);
final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
UpdateUnifiedAgentConfigurationConverter.fromRequest(client, interceptedRequest);
final com.google.common.base.Function<
javax.ws.rs.core.Response, UpdateUnifiedAgentConfigurationResponse>
transformer = UpdateUnifiedAgentConfigurationConverter.fromResponse();
com.oracle.bmc.responses.AsyncHandler<
UpdateUnifiedAgentConfigurationRequest,
UpdateUnifiedAgentConfigurationResponse>
handlerToUse = handler;
java.util.function.Function<
com.oracle.bmc.responses.AsyncHandler<
UpdateUnifiedAgentConfigurationRequest,
UpdateUnifiedAgentConfigurationResponse>,
java.util.concurrent.Future>
futureSupplier = client.putFutureSupplier(interceptedRequest, ib, transformer);
if (this.authenticationDetailsProvider
instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) {
return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper<
UpdateUnifiedAgentConfigurationRequest,
UpdateUnifiedAgentConfigurationResponse>(
(com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider)
this.authenticationDetailsProvider,
handlerToUse,
futureSupplier) {
@Override
protected void beforeRetryAction() {}
};
} else {
return futureSupplier.apply(handlerToUse);
}
}
}