{"id":17184798,"url":"https://github.com/leodpen/please","last_synced_at":"2025-03-25T03:27:33.732Z","repository":{"id":98036924,"uuid":"340929306","full_name":"LEODPEN/Please","owner":"LEODPEN","description":"PFS 之租约工具","archived":false,"fork":false,"pushed_at":"2021-02-28T06:30:27.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-30T04:17:45.038Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LEODPEN.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-02-21T15:05:42.000Z","updated_at":"2021-03-03T16:02:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"f086912d-35da-4fe4-800a-c131b3d47a2f","html_url":"https://github.com/LEODPEN/Please","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/LEODPEN%2FPlease","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LEODPEN%2FPlease/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LEODPEN%2FPlease/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LEODPEN%2FPlease/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LEODPEN","download_url":"https://codeload.github.com/LEODPEN/Please/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245391354,"owners_count":20607623,"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-10-15T00:44:25.906Z","updated_at":"2025-03-25T03:27:33.700Z","avatar_url":"https://github.com/LEODPEN.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Please\nPFS 之租约工具\n\n\u003e 当前只支持Zookeeper\n\n## 使用\n\n```yaml\nplease:\n  addresses: *.*.*.*:xxxx,*.*.*.*:xxxx\n```\n\n租约方法：\n```java\n@Please(key= \"collectionId\", waitTimeMs = 5000)\npublic void acquireLease(long collectionId) {\n     // TODO 写入文件\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleodpen%2Fplease","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleodpen%2Fplease","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleodpen%2Fplease/lists"}