public class IotJobsClient extends Object
| Constructor and Description |
|---|
IotJobsClient(software.amazon.awssdk.crt.mqtt.MqttClientConnection connection) |
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<Integer> |
PublishDescribeJobExecution(DescribeJobExecutionRequest request,
software.amazon.awssdk.crt.mqtt.QualityOfService qos)
Gets detailed information about a job execution.
|
CompletableFuture<Integer> |
PublishGetPendingJobExecutions(GetPendingJobExecutionsRequest request,
software.amazon.awssdk.crt.mqtt.QualityOfService qos)
Gets the list of all jobs for a thing that are not in a terminal state.
|
CompletableFuture<Integer> |
PublishStartNextPendingJobExecution(StartNextPendingJobExecutionRequest request,
software.amazon.awssdk.crt.mqtt.QualityOfService qos)
Gets and starts the next pending job execution for a thing (status IN_PROGRESS or QUEUED).
|
CompletableFuture<Integer> |
PublishUpdateJobExecution(UpdateJobExecutionRequest request,
software.amazon.awssdk.crt.mqtt.QualityOfService qos)
Updates the status of a job execution.
|
CompletableFuture<Integer> |
SubscribeToDescribeJobExecutionAccepted(DescribeJobExecutionSubscriptionRequest request,
software.amazon.awssdk.crt.mqtt.QualityOfService qos,
Consumer<DescribeJobExecutionResponse> handler)
Subscribes to the accepted topic for the DescribeJobExecution operation
Once subscribed, `handler` is invoked each time a message matching
the `topic` is received.
|
CompletableFuture<Integer> |
SubscribeToDescribeJobExecutionAccepted(DescribeJobExecutionSubscriptionRequest request,
software.amazon.awssdk.crt.mqtt.QualityOfService qos,
Consumer<DescribeJobExecutionResponse> handler,
Consumer<Exception> exceptionHandler)
Subscribes to the accepted topic for the DescribeJobExecution operation
Once subscribed, `handler` is invoked each time a message matching
the `topic` is received.
|
CompletableFuture<Integer> |
SubscribeToDescribeJobExecutionRejected(DescribeJobExecutionSubscriptionRequest request,
software.amazon.awssdk.crt.mqtt.QualityOfService qos,
Consumer<RejectedError> handler)
Subscribes to the rejected topic for the DescribeJobExecution operation
Once subscribed, `handler` is invoked each time a message matching
the `topic` is received.
|
CompletableFuture<Integer> |
SubscribeToDescribeJobExecutionRejected(DescribeJobExecutionSubscriptionRequest request,
software.amazon.awssdk.crt.mqtt.QualityOfService qos,
Consumer<RejectedError> handler,
Consumer<Exception> exceptionHandler)
Subscribes to the rejected topic for the DescribeJobExecution operation
Once subscribed, `handler` is invoked each time a message matching
the `topic` is received.
|
CompletableFuture<Integer> |
SubscribeToGetPendingJobExecutionsAccepted(GetPendingJobExecutionsSubscriptionRequest request,
software.amazon.awssdk.crt.mqtt.QualityOfService qos,
Consumer<GetPendingJobExecutionsResponse> handler)
Subscribes to the accepted topic for the GetPendingJobsExecutions operation
Once subscribed, `handler` is invoked each time a message matching
the `topic` is received.
|
CompletableFuture<Integer> |
SubscribeToGetPendingJobExecutionsAccepted(GetPendingJobExecutionsSubscriptionRequest request,
software.amazon.awssdk.crt.mqtt.QualityOfService qos,
Consumer<GetPendingJobExecutionsResponse> handler,
Consumer<Exception> exceptionHandler)
Subscribes to the accepted topic for the GetPendingJobsExecutions operation
Once subscribed, `handler` is invoked each time a message matching
the `topic` is received.
|
CompletableFuture<Integer> |
SubscribeToGetPendingJobExecutionsRejected(GetPendingJobExecutionsSubscriptionRequest request,
software.amazon.awssdk.crt.mqtt.QualityOfService qos,
Consumer<RejectedError> handler)
Subscribes to the rejected topic for the GetPendingJobsExecutions operation
Once subscribed, `handler` is invoked each time a message matching
the `topic` is received.
|
CompletableFuture<Integer> |
SubscribeToGetPendingJobExecutionsRejected(GetPendingJobExecutionsSubscriptionRequest request,
software.amazon.awssdk.crt.mqtt.QualityOfService qos,
Consumer<RejectedError> handler,
Consumer<Exception> exceptionHandler)
Subscribes to the rejected topic for the GetPendingJobsExecutions operation
Once subscribed, `handler` is invoked each time a message matching
the `topic` is received.
|
CompletableFuture<Integer> |
SubscribeToJobExecutionsChangedEvents(JobExecutionsChangedSubscriptionRequest request,
software.amazon.awssdk.crt.mqtt.QualityOfService qos,
Consumer<JobExecutionsChangedEvent> handler)
Subscribes to JobExecutionsChanged notifications for a given IoT thing.
|
CompletableFuture<Integer> |
SubscribeToJobExecutionsChangedEvents(JobExecutionsChangedSubscriptionRequest request,
software.amazon.awssdk.crt.mqtt.QualityOfService qos,
Consumer<JobExecutionsChangedEvent> handler,
Consumer<Exception> exceptionHandler)
Subscribes to JobExecutionsChanged notifications for a given IoT thing.
|
CompletableFuture<Integer> |
SubscribeToNextJobExecutionChangedEvents(NextJobExecutionChangedSubscriptionRequest request,
software.amazon.awssdk.crt.mqtt.QualityOfService qos,
Consumer<NextJobExecutionChangedEvent> handler)
Once subscribed, `handler` is invoked each time a message matching
the `topic` is received.
|
CompletableFuture<Integer> |
SubscribeToNextJobExecutionChangedEvents(NextJobExecutionChangedSubscriptionRequest request,
software.amazon.awssdk.crt.mqtt.QualityOfService qos,
Consumer<NextJobExecutionChangedEvent> handler,
Consumer<Exception> exceptionHandler)
Once subscribed, `handler` is invoked each time a message matching
the `topic` is received.
|
CompletableFuture<Integer> |
SubscribeToStartNextPendingJobExecutionAccepted(StartNextPendingJobExecutionSubscriptionRequest request,
software.amazon.awssdk.crt.mqtt.QualityOfService qos,
Consumer<StartNextJobExecutionResponse> handler)
Subscribes to the accepted topic for the StartNextPendingJobExecution operation
Once subscribed, `handler` is invoked each time a message matching
the `topic` is received.
|
CompletableFuture<Integer> |
SubscribeToStartNextPendingJobExecutionAccepted(StartNextPendingJobExecutionSubscriptionRequest request,
software.amazon.awssdk.crt.mqtt.QualityOfService qos,
Consumer<StartNextJobExecutionResponse> handler,
Consumer<Exception> exceptionHandler)
Subscribes to the accepted topic for the StartNextPendingJobExecution operation
Once subscribed, `handler` is invoked each time a message matching
the `topic` is received.
|
CompletableFuture<Integer> |
SubscribeToStartNextPendingJobExecutionRejected(StartNextPendingJobExecutionSubscriptionRequest request,
software.amazon.awssdk.crt.mqtt.QualityOfService qos,
Consumer<RejectedError> handler)
Subscribes to the rejected topic for the StartNextPendingJobExecution operation
Once subscribed, `handler` is invoked each time a message matching
the `topic` is received.
|
CompletableFuture<Integer> |
SubscribeToStartNextPendingJobExecutionRejected(StartNextPendingJobExecutionSubscriptionRequest request,
software.amazon.awssdk.crt.mqtt.QualityOfService qos,
Consumer<RejectedError> handler,
Consumer<Exception> exceptionHandler)
Subscribes to the rejected topic for the StartNextPendingJobExecution operation
Once subscribed, `handler` is invoked each time a message matching
the `topic` is received.
|
CompletableFuture<Integer> |
SubscribeToUpdateJobExecutionAccepted(UpdateJobExecutionSubscriptionRequest request,
software.amazon.awssdk.crt.mqtt.QualityOfService qos,
Consumer<UpdateJobExecutionResponse> handler)
Subscribes to the accepted topic for the UpdateJobExecution operation
Once subscribed, `handler` is invoked each time a message matching
the `topic` is received.
|
CompletableFuture<Integer> |
SubscribeToUpdateJobExecutionAccepted(UpdateJobExecutionSubscriptionRequest request,
software.amazon.awssdk.crt.mqtt.QualityOfService qos,
Consumer<UpdateJobExecutionResponse> handler,
Consumer<Exception> exceptionHandler)
Subscribes to the accepted topic for the UpdateJobExecution operation
Once subscribed, `handler` is invoked each time a message matching
the `topic` is received.
|
CompletableFuture<Integer> |
SubscribeToUpdateJobExecutionRejected(UpdateJobExecutionSubscriptionRequest request,
software.amazon.awssdk.crt.mqtt.QualityOfService qos,
Consumer<RejectedError> handler)
Subscribes to the rejected topic for the UpdateJobExecution operation
Once subscribed, `handler` is invoked each time a message matching
the `topic` is received.
|
CompletableFuture<Integer> |
SubscribeToUpdateJobExecutionRejected(UpdateJobExecutionSubscriptionRequest request,
software.amazon.awssdk.crt.mqtt.QualityOfService qos,
Consumer<RejectedError> handler,
Consumer<Exception> exceptionHandler)
Subscribes to the rejected topic for the UpdateJobExecution operation
Once subscribed, `handler` is invoked each time a message matching
the `topic` is received.
|
public IotJobsClient(software.amazon.awssdk.crt.mqtt.MqttClientConnection connection)
public CompletableFuture<Integer> SubscribeToJobExecutionsChangedEvents(JobExecutionsChangedSubscriptionRequest request, software.amazon.awssdk.crt.mqtt.QualityOfService qos, Consumer<JobExecutionsChangedEvent> handler, Consumer<Exception> exceptionHandler)
request - Subscription request configurationqos - Maximum requested QoS that server may use when sending messages to the client.
The server may grant a lower QoS in the SUBACKhandler - callback function to invoke with messages received on the subscription topicexceptionHandler - callback function to invoke if an exception occurred deserializing a messagepublic CompletableFuture<Integer> SubscribeToJobExecutionsChangedEvents(JobExecutionsChangedSubscriptionRequest request, software.amazon.awssdk.crt.mqtt.QualityOfService qos, Consumer<JobExecutionsChangedEvent> handler)
request - Subscription request configurationqos - Maximum requested QoS that server may use when sending messages to the client.
The server may grant a lower QoS in the SUBACKhandler - callback function to invoke with messages received on the subscription topicpublic CompletableFuture<Integer> SubscribeToStartNextPendingJobExecutionAccepted(StartNextPendingJobExecutionSubscriptionRequest request, software.amazon.awssdk.crt.mqtt.QualityOfService qos, Consumer<StartNextJobExecutionResponse> handler, Consumer<Exception> exceptionHandler)
request - Subscription request configurationqos - Maximum requested QoS that server may use when sending messages to the client.
The server may grant a lower QoS in the SUBACKhandler - callback function to invoke with messages received on the subscription topicexceptionHandler - callback function to invoke if an exception occurred deserializing a messagepublic CompletableFuture<Integer> SubscribeToStartNextPendingJobExecutionAccepted(StartNextPendingJobExecutionSubscriptionRequest request, software.amazon.awssdk.crt.mqtt.QualityOfService qos, Consumer<StartNextJobExecutionResponse> handler)
request - Subscription request configurationqos - Maximum requested QoS that server may use when sending messages to the client.
The server may grant a lower QoS in the SUBACKhandler - callback function to invoke with messages received on the subscription topicpublic CompletableFuture<Integer> SubscribeToDescribeJobExecutionRejected(DescribeJobExecutionSubscriptionRequest request, software.amazon.awssdk.crt.mqtt.QualityOfService qos, Consumer<RejectedError> handler, Consumer<Exception> exceptionHandler)
request - Subscription request configurationqos - Maximum requested QoS that server may use when sending messages to the client.
The server may grant a lower QoS in the SUBACKhandler - callback function to invoke with messages received on the subscription topicexceptionHandler - callback function to invoke if an exception occurred deserializing a messagepublic CompletableFuture<Integer> SubscribeToDescribeJobExecutionRejected(DescribeJobExecutionSubscriptionRequest request, software.amazon.awssdk.crt.mqtt.QualityOfService qos, Consumer<RejectedError> handler)
request - Subscription request configurationqos - Maximum requested QoS that server may use when sending messages to the client.
The server may grant a lower QoS in the SUBACKhandler - callback function to invoke with messages received on the subscription topicpublic CompletableFuture<Integer> SubscribeToNextJobExecutionChangedEvents(NextJobExecutionChangedSubscriptionRequest request, software.amazon.awssdk.crt.mqtt.QualityOfService qos, Consumer<NextJobExecutionChangedEvent> handler, Consumer<Exception> exceptionHandler)
request - Subscription request configurationqos - Maximum requested QoS that server may use when sending messages to the client.
The server may grant a lower QoS in the SUBACKhandler - callback function to invoke with messages received on the subscription topicexceptionHandler - callback function to invoke if an exception occurred deserializing a messagepublic CompletableFuture<Integer> SubscribeToNextJobExecutionChangedEvents(NextJobExecutionChangedSubscriptionRequest request, software.amazon.awssdk.crt.mqtt.QualityOfService qos, Consumer<NextJobExecutionChangedEvent> handler)
request - Subscription request configurationqos - Maximum requested QoS that server may use when sending messages to the client.
The server may grant a lower QoS in the SUBACKhandler - callback function to invoke with messages received on the subscription topicpublic CompletableFuture<Integer> SubscribeToUpdateJobExecutionRejected(UpdateJobExecutionSubscriptionRequest request, software.amazon.awssdk.crt.mqtt.QualityOfService qos, Consumer<RejectedError> handler, Consumer<Exception> exceptionHandler)
request - Subscription request configurationqos - Maximum requested QoS that server may use when sending messages to the client.
The server may grant a lower QoS in the SUBACKhandler - callback function to invoke with messages received on the subscription topicexceptionHandler - callback function to invoke if an exception occurred deserializing a messagepublic CompletableFuture<Integer> SubscribeToUpdateJobExecutionRejected(UpdateJobExecutionSubscriptionRequest request, software.amazon.awssdk.crt.mqtt.QualityOfService qos, Consumer<RejectedError> handler)
request - Subscription request configurationqos - Maximum requested QoS that server may use when sending messages to the client.
The server may grant a lower QoS in the SUBACKhandler - callback function to invoke with messages received on the subscription topicpublic CompletableFuture<Integer> SubscribeToUpdateJobExecutionAccepted(UpdateJobExecutionSubscriptionRequest request, software.amazon.awssdk.crt.mqtt.QualityOfService qos, Consumer<UpdateJobExecutionResponse> handler, Consumer<Exception> exceptionHandler)
request - Subscription request configurationqos - Maximum requested QoS that server may use when sending messages to the client.
The server may grant a lower QoS in the SUBACKhandler - callback function to invoke with messages received on the subscription topicexceptionHandler - callback function to invoke if an exception occurred deserializing a messagepublic CompletableFuture<Integer> SubscribeToUpdateJobExecutionAccepted(UpdateJobExecutionSubscriptionRequest request, software.amazon.awssdk.crt.mqtt.QualityOfService qos, Consumer<UpdateJobExecutionResponse> handler)
request - Subscription request configurationqos - Maximum requested QoS that server may use when sending messages to the client.
The server may grant a lower QoS in the SUBACKhandler - callback function to invoke with messages received on the subscription topicpublic CompletableFuture<Integer> PublishUpdateJobExecution(UpdateJobExecutionRequest request, software.amazon.awssdk.crt.mqtt.QualityOfService qos)
request - Message to be serialized and sentqos - Quality of Service for delivering this messagepublic CompletableFuture<Integer> SubscribeToDescribeJobExecutionAccepted(DescribeJobExecutionSubscriptionRequest request, software.amazon.awssdk.crt.mqtt.QualityOfService qos, Consumer<DescribeJobExecutionResponse> handler, Consumer<Exception> exceptionHandler)
request - Subscription request configurationqos - Maximum requested QoS that server may use when sending messages to the client.
The server may grant a lower QoS in the SUBACKhandler - callback function to invoke with messages received on the subscription topicexceptionHandler - callback function to invoke if an exception occurred deserializing a messagepublic CompletableFuture<Integer> SubscribeToDescribeJobExecutionAccepted(DescribeJobExecutionSubscriptionRequest request, software.amazon.awssdk.crt.mqtt.QualityOfService qos, Consumer<DescribeJobExecutionResponse> handler)
request - Subscription request configurationqos - Maximum requested QoS that server may use when sending messages to the client.
The server may grant a lower QoS in the SUBACKhandler - callback function to invoke with messages received on the subscription topicpublic CompletableFuture<Integer> PublishGetPendingJobExecutions(GetPendingJobExecutionsRequest request, software.amazon.awssdk.crt.mqtt.QualityOfService qos)
request - Message to be serialized and sentqos - Quality of Service for delivering this messagepublic CompletableFuture<Integer> SubscribeToGetPendingJobExecutionsAccepted(GetPendingJobExecutionsSubscriptionRequest request, software.amazon.awssdk.crt.mqtt.QualityOfService qos, Consumer<GetPendingJobExecutionsResponse> handler, Consumer<Exception> exceptionHandler)
request - Subscription request configurationqos - Maximum requested QoS that server may use when sending messages to the client.
The server may grant a lower QoS in the SUBACKhandler - callback function to invoke with messages received on the subscription topicexceptionHandler - callback function to invoke if an exception occurred deserializing a messagepublic CompletableFuture<Integer> SubscribeToGetPendingJobExecutionsAccepted(GetPendingJobExecutionsSubscriptionRequest request, software.amazon.awssdk.crt.mqtt.QualityOfService qos, Consumer<GetPendingJobExecutionsResponse> handler)
request - Subscription request configurationqos - Maximum requested QoS that server may use when sending messages to the client.
The server may grant a lower QoS in the SUBACKhandler - callback function to invoke with messages received on the subscription topicpublic CompletableFuture<Integer> SubscribeToStartNextPendingJobExecutionRejected(StartNextPendingJobExecutionSubscriptionRequest request, software.amazon.awssdk.crt.mqtt.QualityOfService qos, Consumer<RejectedError> handler, Consumer<Exception> exceptionHandler)
request - Subscription request configurationqos - Maximum requested QoS that server may use when sending messages to the client.
The server may grant a lower QoS in the SUBACKhandler - callback function to invoke with messages received on the subscription topicexceptionHandler - callback function to invoke if an exception occurred deserializing a messagepublic CompletableFuture<Integer> SubscribeToStartNextPendingJobExecutionRejected(StartNextPendingJobExecutionSubscriptionRequest request, software.amazon.awssdk.crt.mqtt.QualityOfService qos, Consumer<RejectedError> handler)
request - Subscription request configurationqos - Maximum requested QoS that server may use when sending messages to the client.
The server may grant a lower QoS in the SUBACKhandler - callback function to invoke with messages received on the subscription topicpublic CompletableFuture<Integer> SubscribeToGetPendingJobExecutionsRejected(GetPendingJobExecutionsSubscriptionRequest request, software.amazon.awssdk.crt.mqtt.QualityOfService qos, Consumer<RejectedError> handler, Consumer<Exception> exceptionHandler)
request - Subscription request configurationqos - Maximum requested QoS that server may use when sending messages to the client.
The server may grant a lower QoS in the SUBACKhandler - callback function to invoke with messages received on the subscription topicexceptionHandler - callback function to invoke if an exception occurred deserializing a messagepublic CompletableFuture<Integer> SubscribeToGetPendingJobExecutionsRejected(GetPendingJobExecutionsSubscriptionRequest request, software.amazon.awssdk.crt.mqtt.QualityOfService qos, Consumer<RejectedError> handler)
request - Subscription request configurationqos - Maximum requested QoS that server may use when sending messages to the client.
The server may grant a lower QoS in the SUBACKhandler - callback function to invoke with messages received on the subscription topicpublic CompletableFuture<Integer> PublishStartNextPendingJobExecution(StartNextPendingJobExecutionRequest request, software.amazon.awssdk.crt.mqtt.QualityOfService qos)
request - Message to be serialized and sentqos - Quality of Service for delivering this messagepublic CompletableFuture<Integer> PublishDescribeJobExecution(DescribeJobExecutionRequest request, software.amazon.awssdk.crt.mqtt.QualityOfService qos)
request - Message to be serialized and sentqos - Quality of Service for delivering this messageCopyright ? 2021. All rights reserved.