{"id":18832414,"url":"https://github.com/brainpoint/febs-identify-java","last_synced_at":"2026-01-25T09:30:17.380Z","repository":{"id":37380332,"uuid":"276676230","full_name":"brainpoint/febs-identify-java","owner":"brainpoint","description":"Distributed unique identify like ObjectId","archived":false,"fork":false,"pushed_at":"2022-06-21T03:47:26.000Z","size":24,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-30T07:11:50.675Z","etag":null,"topics":["distributed-id-generator","distributed-identity","febs","java","objectid"],"latest_commit_sha":null,"homepage":"","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/brainpoint.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}},"created_at":"2020-07-02T15:03:37.000Z","updated_at":"2020-11-18T02:19:24.000Z","dependencies_parsed_at":"2022-09-26T22:01:30.623Z","dependency_job_id":null,"html_url":"https://github.com/brainpoint/febs-identify-java","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/brainpoint%2Ffebs-identify-java","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brainpoint%2Ffebs-identify-java/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brainpoint%2Ffebs-identify-java/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brainpoint%2Ffebs-identify-java/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brainpoint","download_url":"https://codeload.github.com/brainpoint/febs-identify-java/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239768935,"owners_count":19693763,"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":["distributed-id-generator","distributed-identity","febs","java","objectid"],"created_at":"2024-11-08T01:57:47.562Z","updated_at":"2026-01-25T09:30:17.315Z","avatar_url":"https://github.com/brainpoint.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Febs-identify\n\n[![Maven Central](https://maven-badges.herokuapp.com/maven-central/cn.brainpoint/febs-identify/badge.svg)](https://maven-badges.herokuapp.com/maven-central/cn.brainpoint/febs-identify/)\n[![License](https://img.shields.io/github/license/brainpoint/febs-identify-java)](https://opensource.org/licenses/MIT)\n\nDistributed Unique Identify.\n\n- like objectId, a process can generator id `2^24-1` per second.\n- Container `20` chars in id\n- Use database to assign unique machineId.\n\n## How to use\n\nmaven config.\n\n```html\n\u003cdependency\u003e\n    \u003cgroupId\u003ecn.brainpoint\u003c/groupId\u003e\n    \u003cartifactId\u003efebs-identify\u003c/artifactId\u003e\n    \u003cversion\u003e0.0.5\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\nGenerate the ID using the following code:\n\n```java\nimport cn.brainpoint.febs.identify.*;\n\nString uniqueId = Identify.nextId();\n```\n\n### Initialize\n\n```java\nimport cn.brainpoint.febs.identify.*;\n\nIdentify.initialize(new IdentifyCfg(\n    \"mysql\",\n    \"localhost:3306/xx\",\n    \"username\",\n    \"password\",\n));\n```\n\nUse database to assign unique `machineId`. It will use '_distribute_machineId' to named table if not specify a table name.\n\nThis method can be invoked multiple times in response to dynamic changes to the application configuration.\n\n### Generate a New Id\n\n```java\nString id = Identify.nextId();\n```\n\n### Valid Id\n\n```java\nassert Identify.isValid(id);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrainpoint%2Ffebs-identify-java","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrainpoint%2Ffebs-identify-java","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrainpoint%2Ffebs-identify-java/lists"}