Class AbstractAWSMarketplaceMeteringAsync
- java.lang.Object
-
- com.amazonaws.services.marketplacemetering.AbstractAWSMarketplaceMetering
-
- com.amazonaws.services.marketplacemetering.AbstractAWSMarketplaceMeteringAsync
-
- All Implemented Interfaces:
AWSMarketplaceMetering
,AWSMarketplaceMeteringAsync
public class AbstractAWSMarketplaceMeteringAsync extends AbstractAWSMarketplaceMetering implements AWSMarketplaceMeteringAsync
Abstract implementation ofAWSMarketplaceMeteringAsync
. Convenient method forms pass through to the corresponding overload that takes a request object and anAsyncHandler
, which throws anUnsupportedOperationException
.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractAWSMarketplaceMeteringAsync()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Future<MeterUsageResult>
meterUsageAsync(MeterUsageRequest request)
API to emit metering records.Future<MeterUsageResult>
meterUsageAsync(MeterUsageRequest request, AsyncHandler<MeterUsageRequest,MeterUsageResult> asyncHandler)
API to emit metering records.-
Methods inherited from class com.amazonaws.services.marketplacemetering.AbstractAWSMarketplaceMetering
getCachedResponseMetadata, meterUsage, setEndpoint, setRegion, shutdown
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.amazonaws.services.marketplacemetering.AWSMarketplaceMetering
getCachedResponseMetadata, meterUsage, setEndpoint, setRegion, shutdown
-
-
-
-
Method Detail
-
meterUsageAsync
public Future<MeterUsageResult> meterUsageAsync(MeterUsageRequest request)
Description copied from interface:AWSMarketplaceMeteringAsync
API to emit metering records. For identical requests, the API is idempotent. It simply returns the metering record ID.
- Specified by:
meterUsageAsync
in interfaceAWSMarketplaceMeteringAsync
- Returns:
- A Java Future containing the result of the MeterUsage operation returned by the service.
-
meterUsageAsync
public Future<MeterUsageResult> meterUsageAsync(MeterUsageRequest request, AsyncHandler<MeterUsageRequest,MeterUsageResult> asyncHandler)
Description copied from interface:AWSMarketplaceMeteringAsync
API to emit metering records. For identical requests, the API is idempotent. It simply returns the metering record ID.
- Specified by:
meterUsageAsync
in interfaceAWSMarketplaceMeteringAsync
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.
-
-