{"id":13743409,"url":"https://github.com/ikorennoy/jasyncfio","last_synced_at":"2025-05-09T01:30:54.835Z","repository":{"id":40332099,"uuid":"417604677","full_name":"ikorennoy/jasyncfio","owner":"ikorennoy","description":"Java asynchronous file I/O based on io_uring Linux interface","archived":false,"fork":false,"pushed_at":"2023-04-11T18:15:22.000Z","size":509,"stargazers_count":69,"open_issues_count":6,"forks_count":9,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-05-22T15:30:57.643Z","etag":null,"topics":["asyncronous","file-io","file-io-in-java","io-uring","java","non-blocking-io"],"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/ikorennoy.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-10-15T18:54:18.000Z","updated_at":"2024-08-03T05:02:07.781Z","dependencies_parsed_at":"2024-08-03T05:02:05.530Z","dependency_job_id":null,"html_url":"https://github.com/ikorennoy/jasyncfio","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ikorennoy%2Fjasyncfio","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ikorennoy%2Fjasyncfio/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ikorennoy%2Fjasyncfio/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ikorennoy%2Fjasyncfio/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ikorennoy","download_url":"https://codeload.github.com/ikorennoy/jasyncfio/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253174236,"owners_count":21865836,"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":["asyncronous","file-io","file-io-in-java","io-uring","java","non-blocking-io"],"created_at":"2024-08-03T05:00:46.252Z","updated_at":"2025-05-09T01:30:54.235Z","avatar_url":"https://github.com/ikorennoy.png","language":"Java","funding_links":[],"categories":["Libraries","网络编程"],"sub_categories":["Java"],"readme":"# Jasyncfio\n\n[![Build](https://github.com/ikorennoy/jasyncfio/actions/workflows/build.yml/badge.svg)](https://github.com/ikorennoy/jasyncfio/actions/workflows/build.yml)\n\nJasyncfio provides an asynchronous file I/O API based on the Linux io_uring interface.\n\n## Jasyncfio Features\n\n* Fully asynchronous io_uring based file I/O API\n* API comes in two kinds: Buffered and Direct I/O\n* API for linear access to file (depends on your file system)\n* Using a wide range of io_uring features such as polling, registered buffers/files\n\n## Examples\n\n```java\nEventExecutor eventExecutor = EventExecutor.initDefault();\n\nCompletableFuture\u003cAsyncFile\u003e asyncFileCompletableFuture = AsyncFile.open(Paths.get(\"path/to/file\"), eventExecutor);\nAsyncFile file = asyncFileCompletableFuture.get();\n\nByteBuffer byteBuffer = ByteBuffer.allocateDirect(1024);\nCompletableFuture\u003cInteger\u003e readCompletableFuture = file.read(byteBuffer);\n\nInteger readBytes = readCompletableFuture.get();\n```\n\nIf you want to dive deeper, there are more examples with explanations on the [wiki](https://github.com/ikorennoy/jasyncfio/wiki).\n\n## Download \n\nReleases are available at [Maven Central](https://search.maven.org/artifact/one.jasyncfio/jasyncfio).\n\nSince the library uses native code, it is necessary to specify the classifier. At the moment there are releases only for linux-amd64, there are plans to support linux-arm64.\n\n### Requirements\n* Linux Kernel \u003e= 5.11\n* Java \u003e= 8\n\n### Maven\n\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003eone.jasyncfio\u003c/groupId\u003e\n    \u003cartifactId\u003ejasyncfio\u003c/artifactId\u003e\n    \u003cversion\u003e0.0.8\u003c/version\u003e\n    \u003cclassifier\u003elinux-amd64\u003c/classifier\u003e\n\u003c/dependency\u003e\n```\n\n### Gradle Groovy DSL\n\n```groovy\nimplementation 'one.jasyncfio:jasyncfio:0.0.8:linux-amd64'\n```\n\n\n### Gradle Kotlin DSL\n\n```kotlin\nimplementation(\"one.jasyncfio:jasyncfio:0.0.8:linux-amd64\")\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fikorennoy%2Fjasyncfio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fikorennoy%2Fjasyncfio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fikorennoy%2Fjasyncfio/lists"}