https://github.com/dragonzone/dropwizard-async
Enable Non-Blocking support for resources that return futures
https://github.com/dragonzone/dropwizard-async
concurrency dropwizard non-blocking promises
Last synced: 5 months ago
JSON representation
Enable Non-Blocking support for resources that return futures
- Host: GitHub
- URL: https://github.com/dragonzone/dropwizard-async
- Owner: dragonzone
- License: mit
- Created: 2016-10-07T06:07:13.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2019-08-10T02:24:57.000Z (almost 7 years ago)
- Last Synced: 2025-07-06T15:17:36.882Z (12 months ago)
- Topics: concurrency, dropwizard, non-blocking, promises
- Language: Java
- Homepage:
- Size: 46.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Dropwizard Async Non-Blocking [](https://jenkins.dragon.zone/blue/organizations/jenkins/dragonzone%2Fdropwizard-async/activity?branch=master) [](https://maven-badges.herokuapp.com/maven-central/zone.dragon.dropwizard/dropwizard-async/)
This bundle adds support for resources methods to return `CompletionStage` and `ListenableFuture` types, which allow for fully non-blocking
handling of requests.
To use this bundle, add it to your application in the initialize method:
@Override
public void initialize(Bootstrap bootstrap) {
bootstrap.addBundle(new AsyncBundle());
}
After that, simply return a `CompletableFuture` from your resource methods and they will no longer tie up jetty request threads while the
request continues to process.