@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AWSIoTEventsDataAsyncClient extends AWSIoTEventsDataClient implements AWSIoTEventsDataAsync
AsyncHandler
can be used to receive
notification when an asynchronous operation completes.
AWS IoT Events monitors your equipment or device fleets for failures or changes in operation, and triggers actions when such events occur. You can use AWS IoT Events Data API commands to send inputs to detectors, list detectors, and view or update a detector's status.
For more information, see What is AWS IoT Events? in the AWS IoT Events Developer Guide.
LOGGING_AWS_REQUEST_METRIC
ENDPOINT_PREFIX
batchAcknowledgeAlarm, batchDisableAlarm, batchEnableAlarm, batchPutMessage, batchResetAlarm, batchSnoozeAlarm, batchUpdateDetector, builder, describeAlarm, describeDetector, getCachedResponseMetadata, listAlarms, listDetectors
addRequestHandler, addRequestHandler, configureRegion, getClientConfiguration, getEndpointPrefix, getMonitoringListeners, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerOverride, getSignerRegionOverride, getTimeOffset, makeImmutable, removeRequestHandler, removeRequestHandler, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, withEndpoint, withRegion, withRegion, withTimeOffset
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
batchAcknowledgeAlarm, batchDisableAlarm, batchEnableAlarm, batchPutMessage, batchResetAlarm, batchSnoozeAlarm, batchUpdateDetector, describeAlarm, describeDetector, getCachedResponseMetadata, listAlarms, listDetectors
public static AWSIoTEventsDataAsyncClientBuilder asyncBuilder()
public ExecutorService getExecutorService()
public Future<BatchAcknowledgeAlarmResult> batchAcknowledgeAlarmAsync(BatchAcknowledgeAlarmRequest request)
AWSIoTEventsDataAsync
Acknowledges one or more alarms. The alarms change to the ACKNOWLEDGED
state after you acknowledge
them.
batchAcknowledgeAlarmAsync
in interface AWSIoTEventsDataAsync
public Future<BatchAcknowledgeAlarmResult> batchAcknowledgeAlarmAsync(BatchAcknowledgeAlarmRequest request, AsyncHandler<BatchAcknowledgeAlarmRequest,BatchAcknowledgeAlarmResult> asyncHandler)
AWSIoTEventsDataAsync
Acknowledges one or more alarms. The alarms change to the ACKNOWLEDGED
state after you acknowledge
them.
batchAcknowledgeAlarmAsync
in interface AWSIoTEventsDataAsync
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.public Future<BatchDisableAlarmResult> batchDisableAlarmAsync(BatchDisableAlarmRequest request)
AWSIoTEventsDataAsync
Disables one or more alarms. The alarms change to the DISABLED
state after you disable them.
batchDisableAlarmAsync
in interface AWSIoTEventsDataAsync
public Future<BatchDisableAlarmResult> batchDisableAlarmAsync(BatchDisableAlarmRequest request, AsyncHandler<BatchDisableAlarmRequest,BatchDisableAlarmResult> asyncHandler)
AWSIoTEventsDataAsync
Disables one or more alarms. The alarms change to the DISABLED
state after you disable them.
batchDisableAlarmAsync
in interface AWSIoTEventsDataAsync
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.public Future<BatchEnableAlarmResult> batchEnableAlarmAsync(BatchEnableAlarmRequest request)
AWSIoTEventsDataAsync
Enables one or more alarms. The alarms change to the NORMAL
state after you enable them.
batchEnableAlarmAsync
in interface AWSIoTEventsDataAsync
public Future<BatchEnableAlarmResult> batchEnableAlarmAsync(BatchEnableAlarmRequest request, AsyncHandler<BatchEnableAlarmRequest,BatchEnableAlarmResult> asyncHandler)
AWSIoTEventsDataAsync
Enables one or more alarms. The alarms change to the NORMAL
state after you enable them.
batchEnableAlarmAsync
in interface AWSIoTEventsDataAsync
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.public Future<BatchPutMessageResult> batchPutMessageAsync(BatchPutMessageRequest request)
AWSIoTEventsDataAsync
Sends a set of messages to the AWS IoT Events system. Each message payload is transformed into the input you
specify ("inputName"
) and ingested into any detectors that monitor that input. If multiple messages
are sent, the order in which the messages are processed isn't guaranteed. To guarantee ordering, you must send
messages one at a time and wait for a successful response.
batchPutMessageAsync
in interface AWSIoTEventsDataAsync
public Future<BatchPutMessageResult> batchPutMessageAsync(BatchPutMessageRequest request, AsyncHandler<BatchPutMessageRequest,BatchPutMessageResult> asyncHandler)
AWSIoTEventsDataAsync
Sends a set of messages to the AWS IoT Events system. Each message payload is transformed into the input you
specify ("inputName"
) and ingested into any detectors that monitor that input. If multiple messages
are sent, the order in which the messages are processed isn't guaranteed. To guarantee ordering, you must send
messages one at a time and wait for a successful response.
batchPutMessageAsync
in interface AWSIoTEventsDataAsync
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.public Future<BatchResetAlarmResult> batchResetAlarmAsync(BatchResetAlarmRequest request)
AWSIoTEventsDataAsync
Resets one or more alarms. The alarms return to the NORMAL
state after you reset them.
batchResetAlarmAsync
in interface AWSIoTEventsDataAsync
public Future<BatchResetAlarmResult> batchResetAlarmAsync(BatchResetAlarmRequest request, AsyncHandler<BatchResetAlarmRequest,BatchResetAlarmResult> asyncHandler)
AWSIoTEventsDataAsync
Resets one or more alarms. The alarms return to the NORMAL
state after you reset them.
batchResetAlarmAsync
in interface AWSIoTEventsDataAsync
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.public Future<BatchSnoozeAlarmResult> batchSnoozeAlarmAsync(BatchSnoozeAlarmRequest request)
AWSIoTEventsDataAsync
Changes one or more alarms to the snooze mode. The alarms change to the SNOOZE_DISABLED
state after
you set them to the snooze mode.
batchSnoozeAlarmAsync
in interface AWSIoTEventsDataAsync
public Future<BatchSnoozeAlarmResult> batchSnoozeAlarmAsync(BatchSnoozeAlarmRequest request, AsyncHandler<BatchSnoozeAlarmRequest,BatchSnoozeAlarmResult> asyncHandler)
AWSIoTEventsDataAsync
Changes one or more alarms to the snooze mode. The alarms change to the SNOOZE_DISABLED
state after
you set them to the snooze mode.
batchSnoozeAlarmAsync
in interface AWSIoTEventsDataAsync
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.public Future<BatchUpdateDetectorResult> batchUpdateDetectorAsync(BatchUpdateDetectorRequest request)
AWSIoTEventsDataAsync
Updates the state, variable values, and timer settings of one or more detectors (instances) of a specified detector model.
batchUpdateDetectorAsync
in interface AWSIoTEventsDataAsync
public Future<BatchUpdateDetectorResult> batchUpdateDetectorAsync(BatchUpdateDetectorRequest request, AsyncHandler<BatchUpdateDetectorRequest,BatchUpdateDetectorResult> asyncHandler)
AWSIoTEventsDataAsync
Updates the state, variable values, and timer settings of one or more detectors (instances) of a specified detector model.
batchUpdateDetectorAsync
in interface AWSIoTEventsDataAsync
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.public Future<DescribeAlarmResult> describeAlarmAsync(DescribeAlarmRequest request)
AWSIoTEventsDataAsync
Retrieves information about an alarm.
describeAlarmAsync
in interface AWSIoTEventsDataAsync
public Future<DescribeAlarmResult> describeAlarmAsync(DescribeAlarmRequest request, AsyncHandler<DescribeAlarmRequest,DescribeAlarmResult> asyncHandler)
AWSIoTEventsDataAsync
Retrieves information about an alarm.
describeAlarmAsync
in interface AWSIoTEventsDataAsync
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.public Future<DescribeDetectorResult> describeDetectorAsync(DescribeDetectorRequest request)
AWSIoTEventsDataAsync
Returns information about the specified detector (instance).
describeDetectorAsync
in interface AWSIoTEventsDataAsync
public Future<DescribeDetectorResult> describeDetectorAsync(DescribeDetectorRequest request, AsyncHandler<DescribeDetectorRequest,DescribeDetectorResult> asyncHandler)
AWSIoTEventsDataAsync
Returns information about the specified detector (instance).
describeDetectorAsync
in interface AWSIoTEventsDataAsync
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.public Future<ListAlarmsResult> listAlarmsAsync(ListAlarmsRequest request)
AWSIoTEventsDataAsync
Lists one or more alarms. The operation returns only the metadata associated with each alarm.
listAlarmsAsync
in interface AWSIoTEventsDataAsync
public Future<ListAlarmsResult> listAlarmsAsync(ListAlarmsRequest request, AsyncHandler<ListAlarmsRequest,ListAlarmsResult> asyncHandler)
AWSIoTEventsDataAsync
Lists one or more alarms. The operation returns only the metadata associated with each alarm.
listAlarmsAsync
in interface AWSIoTEventsDataAsync
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.public Future<ListDetectorsResult> listDetectorsAsync(ListDetectorsRequest request)
AWSIoTEventsDataAsync
Lists detectors (the instances of a detector model).
listDetectorsAsync
in interface AWSIoTEventsDataAsync
public Future<ListDetectorsResult> listDetectorsAsync(ListDetectorsRequest request, AsyncHandler<ListDetectorsRequest,ListDetectorsResult> asyncHandler)
AWSIoTEventsDataAsync
Lists detectors (the instances of a detector model).
listDetectorsAsync
in interface AWSIoTEventsDataAsync
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.public void shutdown()
getExecutorService().shutdown()
followed by getExecutorService().awaitTermination()
prior to
calling this method.shutdown
in interface AWSIoTEventsData
shutdown
in class AWSIoTEventsDataClient