{"id":19233867,"url":"https://github.com/hadielmougy/jblockingbuffer","last_synced_at":"2025-02-23T11:43:31.225Z","repository":{"id":170413124,"uuid":"326057713","full_name":"hadielmougy/JBlockingBuffer","owner":"hadielmougy","description":null,"archived":false,"fork":false,"pushed_at":"2023-07-28T14:14:22.000Z","size":34,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-05T00:44:51.041Z","etag":null,"topics":["blockingqueue","buffer","concurrent-queue"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hadielmougy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2021-01-01T21:19:34.000Z","updated_at":"2023-07-27T14:14:07.000Z","dependencies_parsed_at":"2023-08-18T06:15:08.844Z","dependency_job_id":null,"html_url":"https://github.com/hadielmougy/JBlockingBuffer","commit_stats":null,"previous_names":["hadielmougy/jblockingbuffer"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hadielmougy%2FJBlockingBuffer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hadielmougy%2FJBlockingBuffer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hadielmougy%2FJBlockingBuffer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hadielmougy%2FJBlockingBuffer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hadielmougy","download_url":"https://codeload.github.com/hadielmougy/JBlockingBuffer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240310873,"owners_count":19781341,"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":["blockingqueue","buffer","concurrent-queue"],"created_at":"2024-11-09T16:12:10.524Z","updated_at":"2025-02-23T11:43:31.174Z","avatar_url":"https://github.com/hadielmougy.png","language":"Java","readme":"# JBlockingBuffer\n\nConcurrent blocking buffer\n\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003eio.github\u003c/groupId\u003e\n  \u003cartifactId\u003ejblockingbuffer\u003c/artifactId\u003e\n  \u003cversion\u003e1.0\u003c/version\u003e\n\u003c/dependency\u003e\n\n```\n\n## Buffer by time \n```java\n// buffer size -1 means unlimited size\nBlockingBuffer\u003cInteger\u003e buffer = new BlockingBuffer\u003c\u003e(-1, Duration.ofMillis(500));\nbuffer.add(1);\nvar list = buffer.get();\n```\n\n## Buffer by size and time (whatever happens first)\n```java\nBlockingBuffer\u003cInteger\u003e buffer = new BlockingBuffer\u003c\u003e(10, Duration.ofMillis(500));\nbuffer.add(1);\n// will release after 500 millis\nvar list = buffer.get();\n```\n\n### defaults\n-  size is 10\n-  time is 100 millis\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhadielmougy%2Fjblockingbuffer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhadielmougy%2Fjblockingbuffer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhadielmougy%2Fjblockingbuffer/lists"}