public class MarketplaceWebServiceClient extends Object implements MarketplaceWebService
| Constructor and Description |
|---|
MarketplaceWebServiceClient(String awsAccessKeyId,
String awsSecretAccessKey,
String applicationName,
String applicationVersion)
Constructs MarketplaceWebServiceClient with AWS Access Key ID and AWS Secret Key
|
MarketplaceWebServiceClient(String awsAccessKeyId,
String awsSecretAccessKey,
String applicationName,
String applicationVersion,
int maxAsyncThreads)
Constructs MarketplaceWebServiceClient with AWS Access Key ID, AWS Secret Key
and max number of threads to spawn for async operations
|
MarketplaceWebServiceClient(String awsAccessKeyId,
String awsSecretAccessKey,
String applicationName,
String applicationVersion,
MarketplaceWebServiceConfig config)
Constructs MarketplaceWebServiceClient with AWS Access Key ID, AWS Secret Key
and MarketplaceWebServiceConfig.
|
| Modifier and Type | Method and Description |
|---|---|
CancelFeedSubmissionsResponse |
cancelFeedSubmissions(CancelFeedSubmissionsRequest request)
Cancel Feed Submissions
cancels feed submissions - by default all of the submissions of the
last 30 days that have not started processing
|
Future<CancelFeedSubmissionsResponse> |
cancelFeedSubmissionsAsync(CancelFeedSubmissionsRequest request)
Non-blocking Cancel Feed Submissions
Returns
future pointer to CancelFeedSubmissionsResponse
If response is ready, call to future.get()
will return CancelFeedSubmissionsResponse. |
CancelReportRequestsResponse |
cancelReportRequests(CancelReportRequestsRequest request)
Cancel Report Requests
cancels report request that have not yet started processing,
by default all those within the last 90 days
|
Future<CancelReportRequestsResponse> |
cancelReportRequestsAsync(CancelReportRequestsRequest request)
Non-blocking Cancel Report Requests
Returns
future pointer to CancelReportRequestsResponse
If response is ready, call to future.get()
will return CancelReportRequestsResponse. |
GetFeedSubmissionCountResponse |
getFeedSubmissionCount(GetFeedSubmissionCountRequest request)
Get Feed Submission Count
returns the number of feeds matching all of the specified criteria
|
Future<GetFeedSubmissionCountResponse> |
getFeedSubmissionCountAsync(GetFeedSubmissionCountRequest request)
Non-blocking Get Feed Submission Count
Returns
future pointer to GetFeedSubmissionCountResponse
If response is ready, call to future.get()
will return GetFeedSubmissionCountResponse. |
GetFeedSubmissionListResponse |
getFeedSubmissionList(GetFeedSubmissionListRequest request)
Get Feed Submission List
returns a list of feed submission identifiers and their associated metadata
|
Future<GetFeedSubmissionListResponse> |
getFeedSubmissionListAsync(GetFeedSubmissionListRequest request)
Non-blocking Get Feed Submission List
Returns
future pointer to GetFeedSubmissionListResponse
If response is ready, call to future.get()
will return GetFeedSubmissionListResponse. |
GetFeedSubmissionListByNextTokenResponse |
getFeedSubmissionListByNextToken(GetFeedSubmissionListByNextTokenRequest request)
Get Feed Submission List By Next Token
retrieve the next batch of list items and if there are more items to retrieve
|
Future<GetFeedSubmissionListByNextTokenResponse> |
getFeedSubmissionListByNextTokenAsync(GetFeedSubmissionListByNextTokenRequest request)
Non-blocking Get Feed Submission List By Next Token
Returns
future pointer to GetFeedSubmissionListByNextTokenResponse
If response is ready, call to future.get()
will return GetFeedSubmissionListByNextTokenResponse. |
GetFeedSubmissionResultResponse |
getFeedSubmissionResult(GetFeedSubmissionResultRequest request)
Get Feed Submission Result
retrieves the feed processing report
|
Future<GetFeedSubmissionResultResponse> |
getFeedSubmissionResultAsync(GetFeedSubmissionResultRequest request)
Non-blocking Get Feed Submission Result
Returns
future pointer to GetFeedSubmissionResultResponse
If response is ready, call to future.get()
will return GetFeedSubmissionResultResponse. |
GetReportResponse |
getReport(GetReportRequest request)
Get Report
The GetReport operation returns the contents of a report.
|
Future<GetReportResponse> |
getReportAsync(GetReportRequest request)
Non-blocking Get Report
Returns
future pointer to GetReportResponse
If response is ready, call to future.get()
will return GetReportResponse. |
GetReportCountResponse |
getReportCount(GetReportCountRequest request)
Get Report Count
returns a count of reports matching your criteria;
by default, the number of reports generated in the last 90 days,
regardless of acknowledgment status
|
Future<GetReportCountResponse> |
getReportCountAsync(GetReportCountRequest request)
Non-blocking Get Report Count
Returns
future pointer to GetReportCountResponse
If response is ready, call to future.get()
will return GetReportCountResponse. |
GetReportListResponse |
getReportList(GetReportListRequest request)
Get Report List
returns a list of reports; by default the most recent ten reports,
regardless of their acknowledgment status
|
Future<GetReportListResponse> |
getReportListAsync(GetReportListRequest request)
Non-blocking Get Report List
Returns
future pointer to GetReportListResponse
If response is ready, call to future.get()
will return GetReportListResponse. |
GetReportListByNextTokenResponse |
getReportListByNextToken(GetReportListByNextTokenRequest request)
Get Report List By Next Token
retrieve the next batch of list items and if there are more items to retrieve
|
Future<GetReportListByNextTokenResponse> |
getReportListByNextTokenAsync(GetReportListByNextTokenRequest request)
Non-blocking Get Report List By Next Token
Returns
future pointer to GetReportListByNextTokenResponse
If response is ready, call to future.get()
will return GetReportListByNextTokenResponse. |
GetReportRequestCountResponse |
getReportRequestCount(GetReportRequestCountRequest request)
Get Report Request Count
returns a count of report requests; by default all the report
requests in the last 90 days
|
Future<GetReportRequestCountResponse> |
getReportRequestCountAsync(GetReportRequestCountRequest request)
Non-blocking Get Report Request Count
Returns
future pointer to GetReportRequestCountResponse
If response is ready, call to future.get()
will return GetReportRequestCountResponse. |
GetReportRequestListResponse |
getReportRequestList(GetReportRequestListRequest request)
Get Report Request List
returns a list of report requests ids and their associated metadata
|
Future<GetReportRequestListResponse> |
getReportRequestListAsync(GetReportRequestListRequest request)
Non-blocking Get Report Request List
Returns
future pointer to GetReportRequestListResponse
If response is ready, call to future.get()
will return GetReportRequestListResponse. |
GetReportRequestListByNextTokenResponse |
getReportRequestListByNextToken(GetReportRequestListByNextTokenRequest request)
Get Report Request List By Next Token
retrieve the next batch of list items and if there are more items to retrieve
|
Future<GetReportRequestListByNextTokenResponse> |
getReportRequestListByNextTokenAsync(GetReportRequestListByNextTokenRequest request)
Non-blocking Get Report Request List By Next Token
Returns
future pointer to GetReportRequestListByNextTokenResponse
If response is ready, call to future.get()
will return GetReportRequestListByNextTokenResponse. |
GetReportScheduleCountResponse |
getReportScheduleCount(GetReportScheduleCountRequest request)
Get Report Schedule Count
returns the number of report schedules
|
Future<GetReportScheduleCountResponse> |
getReportScheduleCountAsync(GetReportScheduleCountRequest request)
Non-blocking Get Report Schedule Count
Returns
future pointer to GetReportScheduleCountResponse
If response is ready, call to future.get()
will return GetReportScheduleCountResponse. |
GetReportScheduleListResponse |
getReportScheduleList(GetReportScheduleListRequest request)
Get Report Schedule List
returns the list of report schedules
|
Future<GetReportScheduleListResponse> |
getReportScheduleListAsync(GetReportScheduleListRequest request)
Non-blocking Get Report Schedule List
Returns
future pointer to GetReportScheduleListResponse
If response is ready, call to future.get()
will return GetReportScheduleListResponse. |
GetReportScheduleListByNextTokenResponse |
getReportScheduleListByNextToken(GetReportScheduleListByNextTokenRequest request)
Get Report Schedule List By Next Token
retrieve the next batch of list items and if there are more items to retrieve
|
Future<GetReportScheduleListByNextTokenResponse> |
getReportScheduleListByNextTokenAsync(GetReportScheduleListByNextTokenRequest request)
Non-blocking Get Report Schedule List By Next Token
Returns
future pointer to GetReportScheduleListByNextTokenResponse
If response is ready, call to future.get()
will return GetReportScheduleListByNextTokenResponse. |
ManageReportScheduleResponse |
manageReportSchedule(ManageReportScheduleRequest request)
Manage Report Schedule
Creates, updates, or deletes a report schedule
for a given report type, such as order reports in particular.
|
Future<ManageReportScheduleResponse> |
manageReportScheduleAsync(ManageReportScheduleRequest request)
Non-blocking Manage Report Schedule
Returns
future pointer to ManageReportScheduleResponse
If response is ready, call to future.get()
will return ManageReportScheduleResponse. |
static String |
quoteAppName(String s) |
static String |
quoteAppVersion(String s) |
static String |
quoteAttributeName(String s) |
static String |
quoteAttributeValue(String s) |
RequestReportResponse |
requestReport(RequestReportRequest request)
Request Report
requests the generation of a report
|
Future<RequestReportResponse> |
requestReportAsync(RequestReportRequest request)
Non-blocking Request Report
Returns
future pointer to RequestReportResponse
If response is ready, call to future.get()
will return RequestReportResponse. |
SubmitFeedResponse |
submitFeed(SubmitFeedRequest request)
Submit Feed
Uploads a file for processing together with the necessary
metadata to process the file, such as which type of feed it is.
|
Future<SubmitFeedResponse> |
submitFeedAsync(SubmitFeedRequest request)
Non-blocking Submit Feed
Returns
future pointer to SubmitFeedResponse
If response is ready, call to future.get()
will return SubmitFeedResponse. |
SubmitFeedResponse |
submitFeedFromFile(SubmitFeedRequest request)
Submit Feed From File
Uploads a file from disk for processing together with the necessary
metadata to process the file, such as which type of feed it is.
|
Future<SubmitFeedResponse> |
submitFeedFromFileAsync(SubmitFeedRequest request)
Non-blocking Submit Feed From File
Returns
future pointer to SubmitFeedResponse
If response is ready, call to future.get()
will return SubmitFeedResponse. |
UpdateReportAcknowledgementsResponse |
updateReportAcknowledgements(UpdateReportAcknowledgementsRequest request)
Update Report Acknowledgements
The UpdateReportAcknowledgements operation updates the acknowledged status of one or more reports.
|
Future<UpdateReportAcknowledgementsResponse> |
updateReportAcknowledgementsAsync(UpdateReportAcknowledgementsRequest request)
Non-blocking Update Report Acknowledgements
Returns
future pointer to UpdateReportAcknowledgementsResponse
If response is ready, call to future.get()
will return UpdateReportAcknowledgementsResponse. |
public MarketplaceWebServiceClient(String awsAccessKeyId, String awsSecretAccessKey, String applicationName, String applicationVersion)
awsAccessKeyId - AWS Access Key IDawsSecretAccessKey - AWS Secret Access Keypublic MarketplaceWebServiceClient(String awsAccessKeyId, String awsSecretAccessKey, String applicationName, String applicationVersion, int maxAsyncThreads)
awsAccessKeyId - AWS Access Key IDawsSecretAccessKey - AWS Secret Access KeymaxAsyncThreads - Max number of threads to spawn for async operation.public MarketplaceWebServiceClient(String awsAccessKeyId, String awsSecretAccessKey, String applicationName, String applicationVersion, MarketplaceWebServiceConfig config)
awsAccessKeyId - AWS Access Key IDawsSecretAccessKey - AWS Secret Access Keyconfig - Additional configuration optionspublic GetReportResponse getReport(GetReportRequest request) throws MarketplaceWebServiceException
getReport in interface MarketplaceWebServicerequest - GetReportRequest requestMarketplaceWebServiceExceptionpublic Future<GetReportResponse> getReportAsync(GetReportRequest request)
future pointer to GetReportResponse
If response is ready, call to future.get()
will return GetReportResponse.
If response is not ready, call to future.get() will block the
calling thread until response is returned.
Note, future.get() will throw wrapped runtime exception.
If service error has occured, MarketplaceWebServiceException can be extracted with
exception.getCause()
Usage example for parallel processing:
List<Future<GetReportResponse>> responses = new ArrayList<Future<GetReportResponse>>();
for (GetReportRequest request : requests) {
responses.add(client.getReportAsync(request));
}
for (Future<GetReportResponse> future : responses) {
while (!future.isDone()) {
Thread.yield();
}
try {
GetReportResponse response = future.get();
// use response
} catch (Exception e) {
if (e instanceof MarketplaceWebServiceException) {
MarketplaceWebServiceException exception = MarketplaceWebServiceException.class.cast(e);
// handle MarketplaceWebServiceException
} else {
// handle other exceptions
}
}
}
getReportAsync in interface MarketplaceWebServicerequest - GetReportRequest requestpublic GetReportScheduleCountResponse getReportScheduleCount(GetReportScheduleCountRequest request) throws MarketplaceWebServiceException
getReportScheduleCount in interface MarketplaceWebServicerequest - GetReportScheduleCountRequest requestMarketplaceWebServiceExceptionpublic Future<GetReportScheduleCountResponse> getReportScheduleCountAsync(GetReportScheduleCountRequest request)
future pointer to GetReportScheduleCountResponse
If response is ready, call to future.get()
will return GetReportScheduleCountResponse.
If response is not ready, call to future.get() will block the
calling thread until response is returned.
Note, future.get() will throw wrapped runtime exception.
If service error has occured, MarketplaceWebServiceException can be extracted with
exception.getCause()
Usage example for parallel processing:
List<Future<GetReportScheduleCountResponse>> responses = new ArrayList<Future<GetReportScheduleCountResponse>>();
for (GetReportScheduleCountRequest request : requests) {
responses.add(client.getReportScheduleCountAsync(request));
}
for (Future<GetReportScheduleCountResponse> future : responses) {
while (!future.isDone()) {
Thread.yield();
}
try {
GetReportScheduleCountResponse response = future.get();
// use response
} catch (Exception e) {
if (e instanceof MarketplaceWebServiceException) {
MarketplaceWebServiceException exception = MarketplaceWebServiceException.class.cast(e);
// handle MarketplaceWebServiceException
} else {
// handle other exceptions
}
}
}
getReportScheduleCountAsync in interface MarketplaceWebServicerequest - GetReportScheduleCountRequest requestpublic GetReportRequestListByNextTokenResponse getReportRequestListByNextToken(GetReportRequestListByNextTokenRequest request) throws MarketplaceWebServiceException
getReportRequestListByNextToken in interface MarketplaceWebServicerequest - GetReportRequestListByNextTokenRequest requestMarketplaceWebServiceExceptionpublic Future<GetReportRequestListByNextTokenResponse> getReportRequestListByNextTokenAsync(GetReportRequestListByNextTokenRequest request)
future pointer to GetReportRequestListByNextTokenResponse
If response is ready, call to future.get()
will return GetReportRequestListByNextTokenResponse.
If response is not ready, call to future.get() will block the
calling thread until response is returned.
Note, future.get() will throw wrapped runtime exception.
If service error has occured, MarketplaceWebServiceException can be extracted with
exception.getCause()
Usage example for parallel processing:
List<Future<GetReportRequestListByNextTokenResponse>> responses = new ArrayList<Future<GetReportRequestListByNextTokenResponse>>();
for (GetReportRequestListByNextTokenRequest request : requests) {
responses.add(client.getReportRequestListByNextTokenAsync(request));
}
for (Future<GetReportRequestListByNextTokenResponse> future : responses) {
while (!future.isDone()) {
Thread.yield();
}
try {
GetReportRequestListByNextTokenResponse response = future.get();
// use response
} catch (Exception e) {
if (e instanceof MarketplaceWebServiceException) {
MarketplaceWebServiceException exception = MarketplaceWebServiceException.class.cast(e);
// handle MarketplaceWebServiceException
} else {
// handle other exceptions
}
}
}
getReportRequestListByNextTokenAsync in interface MarketplaceWebServicerequest - GetReportRequestListByNextTokenRequest requestpublic UpdateReportAcknowledgementsResponse updateReportAcknowledgements(UpdateReportAcknowledgementsRequest request) throws MarketplaceWebServiceException
updateReportAcknowledgements in interface MarketplaceWebServicerequest - UpdateReportAcknowledgementsRequest requestMarketplaceWebServiceExceptionpublic Future<UpdateReportAcknowledgementsResponse> updateReportAcknowledgementsAsync(UpdateReportAcknowledgementsRequest request)
future pointer to UpdateReportAcknowledgementsResponse
If response is ready, call to future.get()
will return UpdateReportAcknowledgementsResponse.
If response is not ready, call to future.get() will block the
calling thread until response is returned.
Note, future.get() will throw wrapped runtime exception.
If service error has occured, MarketplaceWebServiceException can be extracted with
exception.getCause()
Usage example for parallel processing:
List<Future<UpdateReportAcknowledgementsResponse>> responses = new ArrayList<Future<UpdateReportAcknowledgementsResponse>>();
for (UpdateReportAcknowledgementsRequest request : requests) {
responses.add(client.updateReportAcknowledgementsAsync(request));
}
for (Future<UpdateReportAcknowledgementsResponse> future : responses) {
while (!future.isDone()) {
Thread.yield();
}
try {
UpdateReportAcknowledgementsResponse response = future.get();
// use response
} catch (Exception e) {
if (e instanceof MarketplaceWebServiceException) {
MarketplaceWebServiceException exception = MarketplaceWebServiceException.class.cast(e);
// handle MarketplaceWebServiceException
} else {
// handle other exceptions
}
}
}
updateReportAcknowledgementsAsync in interface MarketplaceWebServicerequest - UpdateReportAcknowledgementsRequest requestpublic SubmitFeedResponse submitFeed(SubmitFeedRequest request) throws MarketplaceWebServiceException
submitFeed in interface MarketplaceWebServicerequest - SubmitFeedRequest requestMarketplaceWebServiceExceptionpublic Future<SubmitFeedResponse> submitFeedAsync(SubmitFeedRequest request)
future pointer to SubmitFeedResponse
If response is ready, call to future.get()
will return SubmitFeedResponse.
If response is not ready, call to future.get() will block the
calling thread until response is returned.
Note, future.get() will throw wrapped runtime exception.
If service error has occured, MarketplaceWebServiceException can be extracted with
exception.getCause()
Usage example for parallel processing:
List<Future<SubmitFeedResponse>> responses = new ArrayList<Future<SubmitFeedResponse>>();
for (SubmitFeedRequest request : requests) {
responses.add(client.submitFeedAsync(request));
}
for (Future<SubmitFeedResponse> future : responses) {
while (!future.isDone()) {
Thread.yield();
}
try {
SubmitFeedResponse response = future.get();
// use response
} catch (Exception e) {
if (e instanceof MarketplaceWebServiceException) {
MarketplaceWebServiceException exception = MarketplaceWebServiceException.class.cast(e);
// handle MarketplaceWebServiceException
} else {
// handle other exceptions
}
}
}
submitFeedAsync in interface MarketplaceWebServicerequest - SubmitFeedRequest requestpublic SubmitFeedResponse submitFeedFromFile(SubmitFeedRequest request) throws MarketplaceWebServiceException
submitFeedFromFile in interface MarketplaceWebServicerequest - SubmitFeedRequest request without the contentMd5 field set.MarketplaceWebServiceExceptionpublic Future<SubmitFeedResponse> submitFeedFromFileAsync(SubmitFeedRequest request)
future pointer to SubmitFeedResponse
If response is ready, call to future.get()
will return SubmitFeedResponse.
If response is not ready, call to future.get() will block the
calling thread until response is returned.
Note, future.get() will throw wrapped runtime exception.
If service error has occured, MarketplaceWebServiceException can be extracted with
exception.getCause()
Usage example for parallel processing:
List<Future<SubmitFeedResponse>> responses = new ArrayList<Future<SubmitFeedResponse>>();
for (SubmitFeedRequest request : requests) {
responses.add(client.submitFeedFromFileAsync(request));
}
for (Future<SubmitFeedResponse> future : responses) {
while (!future.isDone()) {
Thread.yield();
}
try {
SubmitFeedResponse response = future.get();
// use response
} catch (Exception e) {
if (e instanceof MarketplaceWebServiceException) {
MarketplaceWebServiceException exception = MarketplaceWebServiceException.class.cast(e);
// handle MarketplaceWebServiceException
} else {
// handle other exceptions
}
}
}
submitFeedFromFileAsync in interface MarketplaceWebServicerequest - SubmitFeedRequest requestpublic GetReportCountResponse getReportCount(GetReportCountRequest request) throws MarketplaceWebServiceException
getReportCount in interface MarketplaceWebServicerequest - GetReportCountRequest requestMarketplaceWebServiceExceptionpublic Future<GetReportCountResponse> getReportCountAsync(GetReportCountRequest request)
future pointer to GetReportCountResponse
If response is ready, call to future.get()
will return GetReportCountResponse.
If response is not ready, call to future.get() will block the
calling thread until response is returned.
Note, future.get() will throw wrapped runtime exception.
If service error has occured, MarketplaceWebServiceException can be extracted with
exception.getCause()
Usage example for parallel processing:
List<Future<GetReportCountResponse>> responses = new ArrayList<Future<GetReportCountResponse>>();
for (GetReportCountRequest request : requests) {
responses.add(client.getReportCountAsync(request));
}
for (Future<GetReportCountResponse> future : responses) {
while (!future.isDone()) {
Thread.yield();
}
try {
GetReportCountResponse response = future.get();
// use response
} catch (Exception e) {
if (e instanceof MarketplaceWebServiceException) {
MarketplaceWebServiceException exception = MarketplaceWebServiceException.class.cast(e);
// handle MarketplaceWebServiceException
} else {
// handle other exceptions
}
}
}
getReportCountAsync in interface MarketplaceWebServicerequest - GetReportCountRequest requestpublic GetFeedSubmissionListByNextTokenResponse getFeedSubmissionListByNextToken(GetFeedSubmissionListByNextTokenRequest request) throws MarketplaceWebServiceException
getFeedSubmissionListByNextToken in interface MarketplaceWebServicerequest - GetFeedSubmissionListByNextTokenRequest requestMarketplaceWebServiceExceptionpublic Future<GetFeedSubmissionListByNextTokenResponse> getFeedSubmissionListByNextTokenAsync(GetFeedSubmissionListByNextTokenRequest request)
future pointer to GetFeedSubmissionListByNextTokenResponse
If response is ready, call to future.get()
will return GetFeedSubmissionListByNextTokenResponse.
If response is not ready, call to future.get() will block the
calling thread until response is returned.
Note, future.get() will throw wrapped runtime exception.
If service error has occured, MarketplaceWebServiceException can be extracted with
exception.getCause()
Usage example for parallel processing:
List<Future<GetFeedSubmissionListByNextTokenResponse>> responses = new ArrayList<Future<GetFeedSubmissionListByNextTokenResponse>>();
for (GetFeedSubmissionListByNextTokenRequest request : requests) {
responses.add(client.getFeedSubmissionListByNextTokenAsync(request));
}
for (Future<GetFeedSubmissionListByNextTokenResponse> future : responses) {
while (!future.isDone()) {
Thread.yield();
}
try {
GetFeedSubmissionListByNextTokenResponse response = future.get();
// use response
} catch (Exception e) {
if (e instanceof MarketplaceWebServiceException) {
MarketplaceWebServiceException exception = MarketplaceWebServiceException.class.cast(e);
// handle MarketplaceWebServiceException
} else {
// handle other exceptions
}
}
}
getFeedSubmissionListByNextTokenAsync in interface MarketplaceWebServicerequest - GetFeedSubmissionListByNextTokenRequest requestpublic CancelFeedSubmissionsResponse cancelFeedSubmissions(CancelFeedSubmissionsRequest request) throws MarketplaceWebServiceException
cancelFeedSubmissions in interface MarketplaceWebServicerequest - CancelFeedSubmissionsRequest requestMarketplaceWebServiceExceptionpublic Future<CancelFeedSubmissionsResponse> cancelFeedSubmissionsAsync(CancelFeedSubmissionsRequest request)
future pointer to CancelFeedSubmissionsResponse
If response is ready, call to future.get()
will return CancelFeedSubmissionsResponse.
If response is not ready, call to future.get() will block the
calling thread until response is returned.
Note, future.get() will throw wrapped runtime exception.
If service error has occured, MarketplaceWebServiceException can be extracted with
exception.getCause()
Usage example for parallel processing:
List<Future<CancelFeedSubmissionsResponse>> responses = new ArrayList<Future<CancelFeedSubmissionsResponse>>();
for (CancelFeedSubmissionsRequest request : requests) {
responses.add(client.cancelFeedSubmissionsAsync(request));
}
for (Future<CancelFeedSubmissionsResponse> future : responses) {
while (!future.isDone()) {
Thread.yield();
}
try {
CancelFeedSubmissionsResponse response = future.get();
// use response
} catch (Exception e) {
if (e instanceof MarketplaceWebServiceException) {
MarketplaceWebServiceException exception = MarketplaceWebServiceException.class.cast(e);
// handle MarketplaceWebServiceException
} else {
// handle other exceptions
}
}
}
cancelFeedSubmissionsAsync in interface MarketplaceWebServicerequest - CancelFeedSubmissionsRequest requestpublic RequestReportResponse requestReport(RequestReportRequest request) throws MarketplaceWebServiceException
requestReport in interface MarketplaceWebServicerequest - RequestReportRequest requestMarketplaceWebServiceExceptionpublic Future<RequestReportResponse> requestReportAsync(RequestReportRequest request)
future pointer to RequestReportResponse
If response is ready, call to future.get()
will return RequestReportResponse.
If response is not ready, call to future.get() will block the
calling thread until response is returned.
Note, future.get() will throw wrapped runtime exception.
If service error has occured, MarketplaceWebServiceException can be extracted with
exception.getCause()
Usage example for parallel processing:
List<Future<RequestReportResponse>> responses = new ArrayList<Future<RequestReportResponse>>();
for (RequestReportRequest request : requests) {
responses.add(client.requestReportAsync(request));
}
for (Future<RequestReportResponse> future : responses) {
while (!future.isDone()) {
Thread.yield();
}
try {
RequestReportResponse response = future.get();
// use response
} catch (Exception e) {
if (e instanceof MarketplaceWebServiceException) {
MarketplaceWebServiceException exception = MarketplaceWebServiceException.class.cast(e);
// handle MarketplaceWebServiceException
} else {
// handle other exceptions
}
}
}
requestReportAsync in interface MarketplaceWebServicerequest - RequestReportRequest requestpublic GetFeedSubmissionCountResponse getFeedSubmissionCount(GetFeedSubmissionCountRequest request) throws MarketplaceWebServiceException
getFeedSubmissionCount in interface MarketplaceWebServicerequest - GetFeedSubmissionCountRequest requestMarketplaceWebServiceExceptionpublic Future<GetFeedSubmissionCountResponse> getFeedSubmissionCountAsync(GetFeedSubmissionCountRequest request)
future pointer to GetFeedSubmissionCountResponse
If response is ready, call to future.get()
will return GetFeedSubmissionCountResponse.
If response is not ready, call to future.get() will block the
calling thread until response is returned.
Note, future.get() will throw wrapped runtime exception.
If service error has occured, MarketplaceWebServiceException can be extracted with
exception.getCause()
Usage example for parallel processing:
List<Future<GetFeedSubmissionCountResponse>> responses = new ArrayList<Future<GetFeedSubmissionCountResponse>>();
for (GetFeedSubmissionCountRequest request : requests) {
responses.add(client.getFeedSubmissionCountAsync(request));
}
for (Future<GetFeedSubmissionCountResponse> future : responses) {
while (!future.isDone()) {
Thread.yield();
}
try {
GetFeedSubmissionCountResponse response = future.get();
// use response
} catch (Exception e) {
if (e instanceof MarketplaceWebServiceException) {
MarketplaceWebServiceException exception = MarketplaceWebServiceException.class.cast(e);
// handle MarketplaceWebServiceException
} else {
// handle other exceptions
}
}
}
getFeedSubmissionCountAsync in interface MarketplaceWebServicerequest - GetFeedSubmissionCountRequest requestpublic CancelReportRequestsResponse cancelReportRequests(CancelReportRequestsRequest request) throws MarketplaceWebServiceException
cancelReportRequests in interface MarketplaceWebServicerequest - CancelReportRequestsRequest requestMarketplaceWebServiceExceptionpublic Future<CancelReportRequestsResponse> cancelReportRequestsAsync(CancelReportRequestsRequest request)
future pointer to CancelReportRequestsResponse
If response is ready, call to future.get()
will return CancelReportRequestsResponse.
If response is not ready, call to future.get() will block the
calling thread until response is returned.
Note, future.get() will throw wrapped runtime exception.
If service error has occured, MarketplaceWebServiceException can be extracted with
exception.getCause()
Usage example for parallel processing:
List<Future<CancelReportRequestsResponse>> responses = new ArrayList<Future<CancelReportRequestsResponse>>();
for (CancelReportRequestsRequest request : requests) {
responses.add(client.cancelReportRequestsAsync(request));
}
for (Future<CancelReportRequestsResponse> future : responses) {
while (!future.isDone()) {
Thread.yield();
}
try {
CancelReportRequestsResponse response = future.get();
// use response
} catch (Exception e) {
if (e instanceof MarketplaceWebServiceException) {
MarketplaceWebServiceException exception = MarketplaceWebServiceException.class.cast(e);
// handle MarketplaceWebServiceException
} else {
// handle other exceptions
}
}
}
cancelReportRequestsAsync in interface MarketplaceWebServicerequest - CancelReportRequestsRequest requestpublic GetReportListResponse getReportList(GetReportListRequest request) throws MarketplaceWebServiceException
getReportList in interface MarketplaceWebServicerequest - GetReportListRequest requestMarketplaceWebServiceExceptionpublic Future<GetReportListResponse> getReportListAsync(GetReportListRequest request)
future pointer to GetReportListResponse
If response is ready, call to future.get()
will return GetReportListResponse.
If response is not ready, call to future.get() will block the
calling thread until response is returned.
Note, future.get() will throw wrapped runtime exception.
If service error has occured, MarketplaceWebServiceException can be extracted with
exception.getCause()
Usage example for parallel processing:
List<Future<GetReportListResponse>> responses = new ArrayList<Future<GetReportListResponse>>();
for (GetReportListRequest request : requests) {
responses.add(client.getReportListAsync(request));
}
for (Future<GetReportListResponse> future : responses) {
while (!future.isDone()) {
Thread.yield();
}
try {
GetReportListResponse response = future.get();
// use response
} catch (Exception e) {
if (e instanceof MarketplaceWebServiceException) {
MarketplaceWebServiceException exception = MarketplaceWebServiceException.class.cast(e);
// handle MarketplaceWebServiceException
} else {
// handle other exceptions
}
}
}
getReportListAsync in interface MarketplaceWebServicerequest - GetReportListRequest requestpublic GetFeedSubmissionResultResponse getFeedSubmissionResult(GetFeedSubmissionResultRequest request) throws MarketplaceWebServiceException
getFeedSubmissionResult in interface MarketplaceWebServicerequest - GetFeedSubmissionResultRequest requestMarketplaceWebServiceExceptionpublic Future<GetFeedSubmissionResultResponse> getFeedSubmissionResultAsync(GetFeedSubmissionResultRequest request)
future pointer to GetFeedSubmissionResultResponse
If response is ready, call to future.get()
will return GetFeedSubmissionResultResponse.
If response is not ready, call to future.get() will block the
calling thread until response is returned.
Note, future.get() will throw wrapped runtime exception.
If service error has occured, MarketplaceWebServiceException can be extracted with
exception.getCause()
Usage example for parallel processing:
List<Future<GetFeedSubmissionResultResponse>> responses = new ArrayList<Future<GetFeedSubmissionResultResponse>>();
for (GetFeedSubmissionResultRequest request : requests) {
responses.add(client.getFeedSubmissionResultAsync(request));
}
for (Future<GetFeedSubmissionResultResponse> future : responses) {
while (!future.isDone()) {
Thread.yield();
}
try {
GetFeedSubmissionResultResponse response = future.get();
// use response
} catch (Exception e) {
if (e instanceof MarketplaceWebServiceException) {
MarketplaceWebServiceException exception = MarketplaceWebServiceException.class.cast(e);
// handle MarketplaceWebServiceException
} else {
// handle other exceptions
}
}
}
getFeedSubmissionResultAsync in interface MarketplaceWebServicerequest - GetFeedSubmissionResultRequest requestpublic GetFeedSubmissionListResponse getFeedSubmissionList(GetFeedSubmissionListRequest request) throws MarketplaceWebServiceException
getFeedSubmissionList in interface MarketplaceWebServicerequest - GetFeedSubmissionListRequest requestMarketplaceWebServiceExceptionpublic Future<GetFeedSubmissionListResponse> getFeedSubmissionListAsync(GetFeedSubmissionListRequest request)
future pointer to GetFeedSubmissionListResponse
If response is ready, call to future.get()
will return GetFeedSubmissionListResponse.
If response is not ready, call to future.get() will block the
calling thread until response is returned.
Note, future.get() will throw wrapped runtime exception.
If service error has occured, MarketplaceWebServiceException can be extracted with
exception.getCause()
Usage example for parallel processing:
List<Future<GetFeedSubmissionListResponse>> responses = new ArrayList<Future<GetFeedSubmissionListResponse>>();
for (GetFeedSubmissionListRequest request : requests) {
responses.add(client.getFeedSubmissionListAsync(request));
}
for (Future<GetFeedSubmissionListResponse> future : responses) {
while (!future.isDone()) {
Thread.yield();
}
try {
GetFeedSubmissionListResponse response = future.get();
// use response
} catch (Exception e) {
if (e instanceof MarketplaceWebServiceException) {
MarketplaceWebServiceException exception = MarketplaceWebServiceException.class.cast(e);
// handle MarketplaceWebServiceException
} else {
// handle other exceptions
}
}
}
getFeedSubmissionListAsync in interface MarketplaceWebServicerequest - GetFeedSubmissionListRequest requestpublic GetReportRequestListResponse getReportRequestList(GetReportRequestListRequest request) throws MarketplaceWebServiceException
getReportRequestList in interface MarketplaceWebServicerequest - GetReportRequestListRequest requestMarketplaceWebServiceExceptionpublic Future<GetReportRequestListResponse> getReportRequestListAsync(GetReportRequestListRequest request)
future pointer to GetReportRequestListResponse
If response is ready, call to future.get()
will return GetReportRequestListResponse.
If response is not ready, call to future.get() will block the
calling thread until response is returned.
Note, future.get() will throw wrapped runtime exception.
If service error has occured, MarketplaceWebServiceException can be extracted with
exception.getCause()
Usage example for parallel processing:
List<Future<GetReportRequestListResponse>> responses = new ArrayList<Future<GetReportRequestListResponse>>();
for (GetReportRequestListRequest request : requests) {
responses.add(client.getReportRequestListAsync(request));
}
for (Future<GetReportRequestListResponse> future : responses) {
while (!future.isDone()) {
Thread.yield();
}
try {
GetReportRequestListResponse response = future.get();
// use response
} catch (Exception e) {
if (e instanceof MarketplaceWebServiceException) {
MarketplaceWebServiceException exception = MarketplaceWebServiceException.class.cast(e);
// handle MarketplaceWebServiceException
} else {
// handle other exceptions
}
}
}
getReportRequestListAsync in interface MarketplaceWebServicerequest - GetReportRequestListRequest requestpublic GetReportScheduleListByNextTokenResponse getReportScheduleListByNextToken(GetReportScheduleListByNextTokenRequest request) throws MarketplaceWebServiceException
getReportScheduleListByNextToken in interface MarketplaceWebServicerequest - GetReportScheduleListByNextTokenRequest requestMarketplaceWebServiceExceptionpublic Future<GetReportScheduleListByNextTokenResponse> getReportScheduleListByNextTokenAsync(GetReportScheduleListByNextTokenRequest request)
future pointer to GetReportScheduleListByNextTokenResponse
If response is ready, call to future.get()
will return GetReportScheduleListByNextTokenResponse.
If response is not ready, call to future.get() will block the
calling thread until response is returned.
Note, future.get() will throw wrapped runtime exception.
If service error has occured, MarketplaceWebServiceException can be extracted with
exception.getCause()
Usage example for parallel processing:
List<Future<GetReportScheduleListByNextTokenResponse>> responses = new ArrayList<Future<GetReportScheduleListByNextTokenResponse>>();
for (GetReportScheduleListByNextTokenRequest request : requests) {
responses.add(client.getReportScheduleListByNextTokenAsync(request));
}
for (Future<GetReportScheduleListByNextTokenResponse> future : responses) {
while (!future.isDone()) {
Thread.yield();
}
try {
GetReportScheduleListByNextTokenResponse response = future.get();
// use response
} catch (Exception e) {
if (e instanceof MarketplaceWebServiceException) {
MarketplaceWebServiceException exception = MarketplaceWebServiceException.class.cast(e);
// handle MarketplaceWebServiceException
} else {
// handle other exceptions
}
}
}
getReportScheduleListByNextTokenAsync in interface MarketplaceWebServicerequest - GetReportScheduleListByNextTokenRequest requestpublic GetReportListByNextTokenResponse getReportListByNextToken(GetReportListByNextTokenRequest request) throws MarketplaceWebServiceException
getReportListByNextToken in interface MarketplaceWebServicerequest - GetReportListByNextTokenRequest requestMarketplaceWebServiceExceptionpublic Future<GetReportListByNextTokenResponse> getReportListByNextTokenAsync(GetReportListByNextTokenRequest request)
future pointer to GetReportListByNextTokenResponse
If response is ready, call to future.get()
will return GetReportListByNextTokenResponse.
If response is not ready, call to future.get() will block the
calling thread until response is returned.
Note, future.get() will throw wrapped runtime exception.
If service error has occured, MarketplaceWebServiceException can be extracted with
exception.getCause()
Usage example for parallel processing:
List<Future<GetReportListByNextTokenResponse>> responses = new ArrayList<Future<GetReportListByNextTokenResponse>>();
for (GetReportListByNextTokenRequest request : requests) {
responses.add(client.getReportListByNextTokenAsync(request));
}
for (Future<GetReportListByNextTokenResponse> future : responses) {
while (!future.isDone()) {
Thread.yield();
}
try {
GetReportListByNextTokenResponse response = future.get();
// use response
} catch (Exception e) {
if (e instanceof MarketplaceWebServiceException) {
MarketplaceWebServiceException exception = MarketplaceWebServiceException.class.cast(e);
// handle MarketplaceWebServiceException
} else {
// handle other exceptions
}
}
}
getReportListByNextTokenAsync in interface MarketplaceWebServicerequest - GetReportListByNextTokenRequest requestpublic ManageReportScheduleResponse manageReportSchedule(ManageReportScheduleRequest request) throws MarketplaceWebServiceException
manageReportSchedule in interface MarketplaceWebServicerequest - ManageReportScheduleRequest requestMarketplaceWebServiceExceptionpublic Future<ManageReportScheduleResponse> manageReportScheduleAsync(ManageReportScheduleRequest request)
future pointer to ManageReportScheduleResponse
If response is ready, call to future.get()
will return ManageReportScheduleResponse.
If response is not ready, call to future.get() will block the
calling thread until response is returned.
Note, future.get() will throw wrapped runtime exception.
If service error has occured, MarketplaceWebServiceException can be extracted with
exception.getCause()
Usage example for parallel processing:
List<Future<ManageReportScheduleResponse>> responses = new ArrayList<Future<ManageReportScheduleResponse>>();
for (ManageReportScheduleRequest request : requests) {
responses.add(client.manageReportScheduleAsync(request));
}
for (Future<ManageReportScheduleResponse> future : responses) {
while (!future.isDone()) {
Thread.yield();
}
try {
ManageReportScheduleResponse response = future.get();
// use response
} catch (Exception e) {
if (e instanceof MarketplaceWebServiceException) {
MarketplaceWebServiceException exception = MarketplaceWebServiceException.class.cast(e);
// handle MarketplaceWebServiceException
} else {
// handle other exceptions
}
}
}
manageReportScheduleAsync in interface MarketplaceWebServicerequest - ManageReportScheduleRequest requestpublic GetReportRequestCountResponse getReportRequestCount(GetReportRequestCountRequest request) throws MarketplaceWebServiceException
getReportRequestCount in interface MarketplaceWebServicerequest - GetReportRequestCountRequest requestMarketplaceWebServiceExceptionpublic Future<GetReportRequestCountResponse> getReportRequestCountAsync(GetReportRequestCountRequest request)
future pointer to GetReportRequestCountResponse
If response is ready, call to future.get()
will return GetReportRequestCountResponse.
If response is not ready, call to future.get() will block the
calling thread until response is returned.
Note, future.get() will throw wrapped runtime exception.
If service error has occured, MarketplaceWebServiceException can be extracted with
exception.getCause()
Usage example for parallel processing:
List<Future<GetReportRequestCountResponse>> responses = new ArrayList<Future<GetReportRequestCountResponse>>();
for (GetReportRequestCountRequest request : requests) {
responses.add(client.getReportRequestCountAsync(request));
}
for (Future<GetReportRequestCountResponse> future : responses) {
while (!future.isDone()) {
Thread.yield();
}
try {
GetReportRequestCountResponse response = future.get();
// use response
} catch (Exception e) {
if (e instanceof MarketplaceWebServiceException) {
MarketplaceWebServiceException exception = MarketplaceWebServiceException.class.cast(e);
// handle MarketplaceWebServiceException
} else {
// handle other exceptions
}
}
}
getReportRequestCountAsync in interface MarketplaceWebServicerequest - GetReportRequestCountRequest requestpublic GetReportScheduleListResponse getReportScheduleList(GetReportScheduleListRequest request) throws MarketplaceWebServiceException
getReportScheduleList in interface MarketplaceWebServicerequest - GetReportScheduleListRequest requestMarketplaceWebServiceExceptionpublic Future<GetReportScheduleListResponse> getReportScheduleListAsync(GetReportScheduleListRequest request)
future pointer to GetReportScheduleListResponse
If response is ready, call to future.get()
will return GetReportScheduleListResponse.
If response is not ready, call to future.get() will block the
calling thread until response is returned.
Note, future.get() will throw wrapped runtime exception.
If service error has occured, MarketplaceWebServiceException can be extracted with
exception.getCause()
Usage example for parallel processing:
List<Future<GetReportScheduleListResponse>> responses = new ArrayList<Future<GetReportScheduleListResponse>>();
for (GetReportScheduleListRequest request : requests) {
responses.add(client.getReportScheduleListAsync(request));
}
for (Future<GetReportScheduleListResponse> future : responses) {
while (!future.isDone()) {
Thread.yield();
}
try {
GetReportScheduleListResponse response = future.get();
// use response
} catch (Exception e) {
if (e instanceof MarketplaceWebServiceException) {
MarketplaceWebServiceException exception = MarketplaceWebServiceException.class.cast(e);
// handle MarketplaceWebServiceException
} else {
// handle other exceptions
}
}
}
getReportScheduleListAsync in interface MarketplaceWebServicerequest - GetReportScheduleListRequest requestCopyright © 2020. All rights reserved.