awslabs / amazon-kinesis-client

Client library for Amazon Kinesis
Apache License 2.0
642 stars 465 forks source link

Adding the Builder annotation to the ShutdownTask class #1309

Closed vincentvilo-aws closed 5 months ago

vincentvilo-aws commented 5 months ago

Issue #, if available: N/A

Description of changes: Adding the Builder annotation to the ShutdownTask class.

The arguments for the ShutdownTask constructor have been modified to include shutdownNotification. As documented by the KinesisClientInternalApi annotation,

Any class/method/variable marked with this annotation is subject to breaking changes between minor releases.

As a result, the next release will be a new minor release. Users who implement a custom ShutdownTask can modify their implementation to use ShutdownTask.builder().build() rather than the default constructor.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.