public class KinesisWriterConfig extends Object
| Modifier and Type | Field and Description |
|---|---|
boolean |
autoCreate |
long |
batchDelay |
String |
clientEndpoint |
String |
clientFactoryMethod |
MessageQueue.DiscardAction |
discardAction |
int |
discardThreshold |
String |
partitionKey |
int |
partitionKeyLength |
Integer |
retentionPeriod |
int |
shardCount |
String |
streamName |
| Constructor and Description |
|---|
KinesisWriterConfig(String streamName,
String partitionKey,
int partitionKeyLength,
long batchDelay,
int discardThreshold,
MessageQueue.DiscardAction discardAction,
String clientFactoryMethod,
String clientEndpoint,
boolean autoCreate,
int shardCount,
Integer retentionPeriod) |
public String streamName
public String partitionKey
public int partitionKeyLength
public long batchDelay
public int discardThreshold
public MessageQueue.DiscardAction discardAction
public String clientFactoryMethod
public String clientEndpoint
public boolean autoCreate
public int shardCount
public Integer retentionPeriod
public KinesisWriterConfig(String streamName, String partitionKey, int partitionKeyLength, long batchDelay, int discardThreshold, MessageQueue.DiscardAction discardAction, String clientFactoryMethod, String clientEndpoint, boolean autoCreate, int shardCount, Integer retentionPeriod)
streamName - Name of the stream where messages will be written.partitionKey - Partition key for messages written to stream. If blank
we'll generate a random partition key for each message.partitionKeyLength - Length of the partition key in bytes, after conversion
to UTF-8. Used to calculate message packing.batchDelay - Number of milliseconds to wait for messages to be
ready to send.discardThreshold - Maximum number of messages to retain if unable to send.discardAction - What to do with unsent messages over the threshold.clientFactoryMethod - Possibly-null FQN of a static method to create client.clientEndpoint - Possibly-null endpoint for client.autoCreate - If true, stream will be created if it doesn't already
exist. If false, writer will fail to start.shardCount - Number of shards to use when creating the stream
(ignored if stream already exists).retentionPeriod - Retention period to use when creating the stream
(ignored if stream already exists); null indicates
use the default retention period.Copyright © 2018. All rights reserved.