public class KinesisRecorderConfig
extends java.lang.Object
Constructor and Description |
---|
KinesisRecorderConfig()
Construct an instance of KinesisRecorderConfig which has default values
of maxStorageSize = 5MiB; and a default ClientConfiguration.
|
KinesisRecorderConfig(ClientConfiguration clientConfiguration)
Construct an instance of KinesisRecorderConfig which has default values
of maxStorageSize = 5MiB; and the specified ClientConfiguration.
|
KinesisRecorderConfig(KinesisRecorderConfig other)
Creates a copy of the passed in KinesisRecorderConfig.
|
Modifier and Type | Method and Description |
---|---|
ClientConfiguration |
getClientConfiguration()
Returns the client configuration the Kinesis Recorder will use when
making requests to Amazon Kinesis.
|
DeadLetterListener |
getDeadLetterListener()
Returns the
DeadLetterListener that will respond to records being dropped. |
long |
getMaxStorageSize() |
java.lang.String |
getPartitionKey()
Returns the partition key.
|
KinesisRecorderConfig |
withDeadLetterListener(DeadLetterListener deadLetterListener)
Sets the
DeadLetterListener that will respond to records being dropped. |
KinesisRecorderConfig |
withMaxStorageSize(long maxStorage)
Sets the max storage in bytes that KinesisRecorder is allowed to use.
|
KinesisRecorderConfig |
withPartitionKey(java.lang.String partKey)
Optionally set partition key.
|
public KinesisRecorderConfig()
public KinesisRecorderConfig(ClientConfiguration clientConfiguration)
clientConfiguration
- The client configuration used when making
requests to Amazon Kinesispublic KinesisRecorderConfig(KinesisRecorderConfig other)
other
- the KinesisRecorderConfig to copy.public KinesisRecorderConfig withPartitionKey(java.lang.String partKey)
partKey
- the partition key.public KinesisRecorderConfig withMaxStorageSize(long maxStorage)
maxStorage
- the maximum storage.public long getMaxStorageSize()
public DeadLetterListener getDeadLetterListener()
DeadLetterListener
that will respond to records being dropped.DeadLetterListener
that will respond to records being dropped.public KinesisRecorderConfig withDeadLetterListener(DeadLetterListener deadLetterListener)
DeadLetterListener
that will respond to records being dropped.deadLetterListener
- responds to records being dropped.public ClientConfiguration getClientConfiguration()
public java.lang.String getPartitionKey()
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.