T
- The type written to AWS Kinesis.public final class KinesisEgressBuilder<T>
extends java.lang.Object
EgressSpec
for writing data to AWS Kinesis.Modifier and Type | Method and Description |
---|---|
KinesisEgressSpec<T> |
build() |
static <T> KinesisEgressBuilder<T> |
forIdentifier(EgressIdentifier<T> id) |
KinesisEgressBuilder<T> |
withAwsCredentials(AwsCredentials awsCredentials)
The AWS credentials to use.
|
KinesisEgressBuilder<T> |
withAwsRegion(AwsRegion awsRegion)
The AWS region to connect to.
|
KinesisEgressBuilder<T> |
withAwsRegion(java.lang.String regionName)
The AWS region to connect to, specified by the AWS region's unique id.
|
KinesisEgressBuilder<T> |
withClientConfigurationProperty(java.lang.String key,
java.lang.String value)
Deprecated.
Please use
withProperty(String, String) instead. |
KinesisEgressBuilder<T> |
withMaxOutstandingRecords(int maxOutstandingRecords)
The maximum number of buffered outstanding records, before backpressure is applied by the
egress.
|
KinesisEgressBuilder<T> |
withProperties(java.util.Properties properties) |
KinesisEgressBuilder<T> |
withProperty(java.lang.String key,
java.lang.String value) |
KinesisEgressBuilder<T> |
withSerializer(java.lang.Class<? extends KinesisEgressSerializer<T>> serializerClass) |
public static <T> KinesisEgressBuilder<T> forIdentifier(EgressIdentifier<T> id)
T
- The type consumed from Kinesis.id
- A unique egress identifier.KinesisEgressBuilder
.public KinesisEgressBuilder<T> withSerializer(java.lang.Class<? extends KinesisEgressSerializer<T>> serializerClass)
serializerClass
- The serializer used to convert from Java objects to Kinesis's byte
messages.public KinesisEgressBuilder<T> withAwsRegion(AwsRegion awsRegion)
awsRegion
- The AWS region to connect to.AwsRegion
public KinesisEgressBuilder<T> withAwsRegion(java.lang.String regionName)
regionName
- The unique id of the AWS region to connect to.public KinesisEgressBuilder<T> withAwsCredentials(AwsCredentials awsCredentials)
awsCredentials
- The AWS credentials to use.AwsCredentials
public KinesisEgressBuilder<T> withMaxOutstandingRecords(int maxOutstandingRecords)
maxOutstandingRecords
- the maximum number of buffered outstanding recordspublic KinesisEgressBuilder<T> withClientConfigurationProperty(java.lang.String key, java.lang.String value)
withProperty(String, String)
instead.Supported values are properties of AWS's ccom.amazonaws.services.kinesis.producer.KinesisProducerConfiguration. Please see Default Configuration Properties for a full list of the keys.
key
- the property to set.value
- the value for the property.public KinesisEgressBuilder<T> withProperty(java.lang.String key, java.lang.String value)
public KinesisEgressBuilder<T> withProperties(java.util.Properties properties)
public KinesisEgressSpec<T> build()
KinesisEgressSpec
.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.