Package google.registry.config
Class CloudTasksUtilsModule
java.lang.Object
google.registry.config.CloudTasksUtilsModule
A
Module
that provides CloudTasksUtils
.
The class itself cannot be annotated as Inject
because its requested dependencies use
the RegistryConfig.Config
qualifier which is not available in the util
package.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Supplier
<com.google.cloud.tasks.v2.CloudTasksClient> provideCloudTasksClientSupplier
(GoogleCredentialsBundle credentials) provideSerializableCloudTasksClient
(Supplier<com.google.cloud.tasks.v2.CloudTasksClient> clientSupplier)
-
Constructor Details
-
CloudTasksUtilsModule
public CloudTasksUtilsModule()
-
-
Method Details
-
provideCloudTasksClientSupplier
@Provides public static Supplier<com.google.cloud.tasks.v2.CloudTasksClient> provideCloudTasksClientSupplier(@ApplicationDefaultCredential GoogleCredentialsBundle credentials) -
provideSerializableCloudTasksClient
@Provides public static CloudTasksUtils.SerializableCloudTasksClient provideSerializableCloudTasksClient(Supplier<com.google.cloud.tasks.v2.CloudTasksClient> clientSupplier)
-