{"id":21322045,"url":"https://github.com/advantageous/reakt-guava","last_synced_at":"2025-07-12T05:30:43.938Z","repository":{"id":57731407,"uuid":"55796433","full_name":"advantageous/reakt-guava","owner":"advantageous","description":"Bridge between Reakt and Guava Futures. Adds fluent, lambda based programming to Guava futures. ","archived":false,"fork":false,"pushed_at":"2017-02-18T22:09:35.000Z","size":102,"stargazers_count":3,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-06T14:21:33.859Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://advantageous.github.io/reakt-guava/","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/advantageous.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-04-08T17:13:01.000Z","updated_at":"2019-07-14T20:53:14.000Z","dependencies_parsed_at":"2022-09-26T22:10:24.214Z","dependency_job_id":null,"html_url":"https://github.com/advantageous/reakt-guava","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/advantageous/reakt-guava","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/advantageous%2Freakt-guava","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/advantageous%2Freakt-guava/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/advantageous%2Freakt-guava/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/advantageous%2Freakt-guava/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/advantageous","download_url":"https://codeload.github.com/advantageous/reakt-guava/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/advantageous%2Freakt-guava/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264941537,"owners_count":23686509,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-21T20:12:55.285Z","updated_at":"2025-07-12T05:30:43.597Z","avatar_url":"https://github.com/advantageous.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Reakt to Guava Bridge\n\n[Reakt-Guava Website](http://advantageous.github.io/reakt-guava/)\n\nGuava gets used by many libraries for its async support.\nMany NoSQL drivers use Guava, e.g., Cassandra. \n\n***Guava*** is JDK 1.6 backwards compatible. \n\n[Reakt](http://advantageous.github.io/reakt/) provides composable \npromises that support lambda expressions, and a fluent API.\n\nThis bridge allows you to use ***Reakt's*** promises, reactive streams\nand callbacks to have a more modern Java experience with libs like\n[Cassandra](http://www.datastax.com/dev/blog/java-driver-async-queries) \nand other libs that use [Guava](https://github.com/google/guava).\n\n\n\n#### Cassandra Reakt example\n\n```java\n\n    futureToPromise(session.executeAsync(insertInto(\"Todo\")\n            .value(\"id\", todo.getId())\n            .value(\"createTime\", todo.getCreateTime())\n            .value(\"name\", todo.getName())\n            .value(\"description\", todo.getDescription()))\n    ).catchError(error -\u003e {\n        serviceMgmt.increment(\"add.todo.fail\");\n        serviceMgmt.increment(\"add.todo.fail.\" +\n                error.getClass().getName().toLowerCase());\n        recordCassandraError();\n        promise.reject(\"unable to add todo\", error);\n    }).then(resultSet -\u003e {\n        if (resultSet.wasApplied()) {\n            promise.resolve(true);\n            serviceMgmt.increment(\"add.todo.success\");\n        } else {\n            promise.resolve(false);\n            serviceMgmt.increment(\"add.todo.fail.not.added\");\n        }\n    }).invokeWithReactor(reactor, Duration.ofSeconds(10)))\n     \n```\n\n## Getting Started\n#### maven\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003eio.advantageous.reakt\u003c/groupId\u003e\n    \u003cartifactId\u003ereakt-guava\u003c/artifactId\u003e\n    \u003cversion\u003e3.0.0.RELEASE\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n#### gradle\n```java\ncompile 'io.advantageous.reakt:reakt-guava:3.0.0.RELEASE'\n```\n\nYou can also use replay promises, all promises, any promises, and other\nfeatures of Reakt to simplify async, reactive Java development.\n\nReakt gets used by [QBit](http://advantageous.github.io/qbit/), and Conekt.\n\n#### Related projects\n* [QBit Reactive Microservices](http://advantageous.github.io/qbit/)\n* [Reakt Reactive Java](http://advantageous.github.io/reakt)\n* [Reakt Guava Bridge](http://advantageous.github.io/reakt-guava/)\n* [QBit Extensions](https://github.com/advantageous/qbit-extensions)\n* [Elekt Consul](http://advantageous.github.io/elekt-consul/)\n* [Elekt](http://advantageous.github.io/elekt/)\n* [Reactive Microservices](http://www.mammatustech.com/reactive-microservices)\n* [AWS Cassandra Support](http://cloudurable.com/subscription_support_benefits_cassandra/index.html)\n* [More specific Cassandra Reakt integration](https://github.com/advantageous/reakt-cassandra)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadvantageous%2Freakt-guava","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadvantageous%2Freakt-guava","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadvantageous%2Freakt-guava/lists"}