Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Graceful Shutdown Run On Its Own Thread #191

Merged
merged 10 commits into from
Jul 21, 2017

Conversation

pfifer
Copy link
Contributor

@pfifer pfifer commented Jul 21, 2017

Graceful shutdown currently requires that the caller make a call to Future#get to trigger the shutdown process. This changes that to make the shutdown process run independently on a separate thread.

To recreate a similar behavior the method Worker#createGracefulShutdownCallable can be used to create the underlying callable that triggers shutdown. Executing that callable on the main thread will trigger shutdown in a synchronous manner.

Fixed #167

@pfifer pfifer added this to the v1.8.0 milestone Jul 21, 2017
@pfifer pfifer merged commit c067cef into awslabs:master Jul 21, 2017
pfifer added a commit to pfifer/amazon-kinesis-client that referenced this pull request Jul 25, 2017
* Execute graceful shutdown on its own thread
  * PR awslabs#191
  * Issue awslabs#167
* Added support for controlling the size of the lease renewer thread pool
  * PR awslabs#177
  * Issue awslabs#171
* Require Java 8 and later
  Java 8 is now required for versions 1.8.0 of the amazon-kinesis-client and later.
  * PR awslabs#176
@pfifer pfifer mentioned this pull request Jul 25, 2017
pfifer added a commit that referenced this pull request Jul 25, 2017
* Execute graceful shutdown on its own thread
  * PR #191
  * Issue #167
* Added support for controlling the size of the lease renewer thread pool
  * PR #177
  * Issue #171
* Require Java 8 and later
  Java 8 is now required for versions 1.8.0 of the amazon-kinesis-client and later.
  * PR #176
@pfifer pfifer deleted the requested-shutdown-fix branch July 25, 2017 20:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant