{"id":36342262,"url":"https://github.com/sttc/java-sdk","last_synced_at":"2026-04-01T21:28:32.623Z","repository":{"id":16851124,"uuid":"19611002","full_name":"sttc/java-sdk","owner":"sttc","description":"Java Client SDK for Stateful.co","archived":false,"fork":false,"pushed_at":"2026-03-21T07:27:06.000Z","size":1925,"stargazers_count":8,"open_issues_count":12,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2026-03-21T21:33:57.324Z","etag":null,"topics":["java","java-sdk","locks","multi-node","synchronization"],"latest_commit_sha":null,"homepage":"https://java-sdk.stateful.co","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sttc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2014-05-09T12:54:10.000Z","updated_at":"2026-03-21T06:06:13.000Z","dependencies_parsed_at":"2023-11-29T18:29:15.920Z","dependency_job_id":"68725baf-7e2e-4211-90a4-53e94a056704","html_url":"https://github.com/sttc/java-sdk","commit_stats":null,"previous_names":[],"tags_count":36,"template":false,"template_full_name":null,"purl":"pkg:github/sttc/java-sdk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sttc%2Fjava-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sttc%2Fjava-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sttc%2Fjava-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sttc%2Fjava-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sttc","download_url":"https://codeload.github.com/sttc/java-sdk/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sttc%2Fjava-sdk/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31292271,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-01T21:15:39.731Z","status":"ssl_error","status_checked_at":"2026-04-01T21:15:34.046Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["java","java-sdk","locks","multi-node","synchronization"],"created_at":"2026-01-11T12:58:22.243Z","updated_at":"2026-04-01T21:28:32.604Z","avatar_url":"https://github.com/sttc.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Java SDK for Stateful.co\n\n[![EO principles respected here](https://www.elegantobjects.org/badge.svg)](https://www.elegantobjects.org)\n[![DevOps By Rultor.com](https://www.rultor.com/b/sttc/java-sdk)](https://www.rultor.com/p/sttc/java-sdk)\n[![We recommend IntelliJ IDEA](https://www.elegantobjects.org/intellij-idea.svg)](https://www.jetbrains.com/idea/)\n\n[![mvn](https://github.com/sttc/java-sdk/actions/workflows/mvn.yml/badge.svg)](https://github.com/sttc/java-sdk/actions/workflows/mvn.yml)\n[![Maven Central](https://maven-badges.herokuapp.com/maven-central/co.stateful/java-sdk/badge.svg)](https://maven-badges.herokuapp.com/maven-central/co.stateful/java-sdk)\n[![Javadoc](https://www.javadoc.io/badge/co.stateful/java-sdk.svg)](https://www.javadoc.io/doc/co.stateful/java-sdk)\n\nThis is Java SDK for [Stateful](https://www.stateful.co).\n\nSee our [JavaDoc](http://java-sdk.stateful.co/).\n\nFirst, register an account at [Stateful](https://www.stateful.co).\nThen, you can create a counter and increment it:\n\n```java\nimport co.stateful.Counter;\nimport co.stateful.Counters;\nimport co.stateful.Sttc;\nimport co.stateful.RtSttc;\nimport com.jcabi.urn.URN;\npublic class Main {\n  public static void main(String... args) {\n    Sttc sttc = new RtSttc(\n      new URN(\"urn:github:526301\"),\n      \"9FF3-41E0-73FB-F900\"\n    );\n    String name = \"test-123\";\n    Counters counters = sttc.counters();\n    Counter counter = counters.create(name);\n    long value = counter.incrementAndGet(1L);\n    System.out.println(\"new value: \" + value);\n    counters.delete(name);\n  }\n}\n```\n\nHere is how you can use a lock:\n\n```java\nLocks locks = sttc.locks();\nLock lock = locks.get(\"test-lock\");\nnew Atomic(lock).call(\n  new Callable\u003cVoid\u003e() {\n    @Override\n    public void call() {\n      // perfectly synchronized code\n      return null;\n    }\n  }\n);\n```\n\n## How to Contribute\n\nFork repository, make changes, send us a\n[pull request](https://www.yegor256.com/2014/04/15/github-guidelines.html).\nWe will review your changes and apply them to the `master` branch shortly,\nprovided they don't violate our quality standards. To avoid frustration,\nbefore sending us your pull request please run full Maven build:\n\n```bash\nmvn clean install -Pqulice\n```\n\nYou will need Maven 3.3+ and Java 11+.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsttc%2Fjava-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsttc%2Fjava-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsttc%2Fjava-sdk/lists"}