Interface AWSMarketplaceMeteringAsync

  • All Superinterfaces:
    AWSMarketplaceMetering
    All Known Implementing Classes:
    AbstractAWSMarketplaceMeteringAsync, AWSMarketplaceMeteringAsyncClient

    public interface AWSMarketplaceMeteringAsync
    extends AWSMarketplaceMetering
    Interface for accessing AWSMarketplace Metering asynchronously. Each asynchronous method will return a Java Future object representing the asynchronous operation; overloads which accept an AsyncHandler can be used to receive notification when an asynchronous operation completes.

    AWS Marketplace Metering Service

    This reference provides descriptions of the low-level AWS Marketplace Metering Service API.

    AWS Marketplace sellers can use this API to submit usage data for custom usage dimensions.

    Submitting Metering Records

    • MeterUsage- Submits the metering record for a Marketplace product.

    • Method Detail

      • meterUsageAsync

        Future<MeterUsageResult> meterUsageAsync​(MeterUsageRequest meterUsageRequest)

        API to emit metering records. For identical requests, the API is idempotent. It simply returns the metering record ID.

        Parameters:
        meterUsageRequest -
        Returns:
        A Java Future containing the result of the MeterUsage operation returned by the service.
      • meterUsageAsync

        Future<MeterUsageResult> meterUsageAsync​(MeterUsageRequest meterUsageRequest,
                                                 AsyncHandler<MeterUsageRequest,​MeterUsageResult> asyncHandler)

        API to emit metering records. For identical requests, the API is idempotent. It simply returns the metering record ID.

        Parameters:
        meterUsageRequest -
        asyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.
        Returns:
        A Java Future containing the result of the MeterUsage operation returned by the service.