Interface MqttToKinesisOutput
-
@DoNotImplement public interface MqttToKinesisOutput
The output parameter of theMqttToKinesisTransformer
. It allows access to theOutboundKinesisRecordBuilder
.After the
MqttToKinesisTransformer.transformMqttToKinesis(MqttToKinesisInput, MqttToKinesisOutput)
method returns theOutboundKinesisRecord
s given to this output will be published to Amazon Kinesis by the HiveMQ Enterprise Extension for Amazon Kinesis.- Since:
- 4.14.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NotNull OutboundKinesisRecordBuilder
newOutboundKinesisRecordBuilder()
Create a newOutboundKinesisRecordBuilder
.void
setOutboundKinesisRecords(@NotNull List<@NotNull OutboundKinesisRecord> outboundKinesisRecords)
Sets theOutboundKinesisRecord
s, that will be pushed to Amazon Kinesis after theMqttToKinesisTransformer.transformMqttToKinesis(MqttToKinesisInput, MqttToKinesisOutput)
call returns.
-
-
-
Method Detail
-
newOutboundKinesisRecordBuilder
@NotNull @NotNull OutboundKinesisRecordBuilder newOutboundKinesisRecordBuilder()
Create a newOutboundKinesisRecordBuilder
. A singleOutboundKinesisRecordBuilder
can be used to build multiple Amazon Kinesis records.- Returns:
- An empty instance of the
OutboundKinesisRecordBuilder
. - Since:
- 4.14.0
-
setOutboundKinesisRecords
void setOutboundKinesisRecords(@NotNull @NotNull List<@NotNull OutboundKinesisRecord> outboundKinesisRecords)
Sets theOutboundKinesisRecord
s, that will be pushed to Amazon Kinesis after theMqttToKinesisTransformer.transformMqttToKinesis(MqttToKinesisInput, MqttToKinesisOutput)
call returns. The "HiveMQ Enterprise Extension for Amazon Kinesis" will publish the records in the order provided by theoutboundKinesisRecords
argument.If desired, the same records can occupy multiple places in the
outboundKinesisRecords
list. When no record shall be pushed to Amazon Kinesis for a givenPublishPacket
, provide an empty list or just don't call this method.Use the
OutboundKinesisRecordBuilder
to create new records as desired.Each additional call of this method will overwrite the previous one.
- Parameters:
outboundKinesisRecords
- A list of to be publishedOutboundKinesisRecord
s.- Throws:
NullPointerException
- IfoutboundKinesisRecords
or any element of it is null.IllegalArgumentException
- If any element inoutboundKinesisRecords
was not created via aOutboundKinesisRecordBuilder
.- Since:
- 4.14.0
-
-