Class InfluxDBBatchConfig
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<InfluxDBBatchConfig.Builder,InfluxDBBatchConfig>
The batching configuration of an InfluxDB rule action. IoT closes a batch and writes it to InfluxDB when the first of the configured limits is reached.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal BooleanSpecifies whether to collect data points from different topics into the same batch.static InfluxDBBatchConfig.Builderbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final IntegerThe maximum length of time, in milliseconds, to keep a batch open before writing it to InfluxDB.final IntegerThe maximum number of data points to collect in a batch.final IntegerThe maximum size of a batch, in bytes, before IoT writes it to InfluxDB.static Class<? extends InfluxDBBatchConfig.Builder> Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
maxBatchSize
The maximum number of data points to collect in a batch.
If you don't specify a value, this limit doesn't apply. IoT then closes each batch when another configured limit is reached.
- Returns:
- The maximum number of data points to collect in a batch.
If you don't specify a value, this limit doesn't apply. IoT then closes each batch when another configured limit is reached.
-
maxBatchOpenMs
The maximum length of time, in milliseconds, to keep a batch open before writing it to InfluxDB.
If you don't specify a value, this limit doesn't apply. IoT then closes each batch when another configured limit is reached.
- Returns:
- The maximum length of time, in milliseconds, to keep a batch open before writing it to InfluxDB.
If you don't specify a value, this limit doesn't apply. IoT then closes each batch when another configured limit is reached.
-
maxBatchSizeBytes
The maximum size of a batch, in bytes, before IoT writes it to InfluxDB.
If you don't specify a value, this limit doesn't apply. IoT then closes each batch when another configured limit is reached.
- Returns:
- The maximum size of a batch, in bytes, before IoT writes it to InfluxDB.
If you don't specify a value, this limit doesn't apply. IoT then closes each batch when another configured limit is reached.
-
batchAcrossTopics
Specifies whether to collect data points from different topics into the same batch.
If omitted or
false, IoT batches data points for each topic separately.- Returns:
- Specifies whether to collect data points from different topics into the same batch.
If omitted or
false, IoT batches data points for each topic separately.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<InfluxDBBatchConfig.Builder,InfluxDBBatchConfig> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-