{"id":20662517,"url":"https://github.com/xxdark/ssbus","last_synced_at":"2025-04-19T15:51:20.180Z","repository":{"id":122757601,"uuid":"368962657","full_name":"xxDark/ssbus","owner":"xxDark","description":"Supersonic, lightweight event bus","archived":false,"fork":false,"pushed_at":"2021-05-22T15:42:16.000Z","size":88,"stargazers_count":35,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-29T09:41:39.320Z","etag":null,"topics":["bus","event","eventbus","java","lightweight"],"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/xxDark.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-05-19T18:17:22.000Z","updated_at":"2024-11-15T04:56:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"b857da96-801e-41ab-9ae4-179ff993dd88","html_url":"https://github.com/xxDark/ssbus","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/xxDark%2Fssbus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xxDark%2Fssbus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xxDark%2Fssbus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xxDark%2Fssbus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xxDark","download_url":"https://codeload.github.com/xxDark/ssbus/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249730656,"owners_count":21317328,"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":["bus","event","eventbus","java","lightweight"],"created_at":"2024-11-16T19:14:26.956Z","updated_at":"2025-04-19T15:51:20.175Z","avatar_url":"https://github.com/xxDark.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ssbus - Supersonic, lightweight event bus\n\nExample usage:\n\n```Java\npublic class HelloBusTest {\n\n    private static final int N = Integer.MAX_VALUE;\n\n    public static void main(String[] args) {\n        Bus\u003cEvent\u003e bus = new Bus\u003c\u003e(Event.class);\n        bus.register(\n                e -\u003e {\n                    e.message = \"Hello from lambdas!\";\n                },\n                100);\n        bus.register(EventListener.class);\n        long now = System.currentTimeMillis();\n        for (int i = 0; i \u003c N; i++) {\n            Event e = new Event(\"Hello, World!\");\n            bus.unsafeFireAndForget(e);\n        }\n        System.out.println(System.currentTimeMillis() - now);\n    }\n\n    public static final class EventListener {\n        @Listener\n        public static void onEvent(Event e) {\n            e.message = \"Hello from hand-crafted classes!\";\n        }\n    }\n\n    public static final class Event {\n        String message;\n\n        public Event(String message) {\n            this.message = message;\n        }\n    }\n}\n```\n\n**TODO**:\n* **JMH Benchmarks**\n* **Java 9+ support**","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxxdark%2Fssbus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxxdark%2Fssbus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxxdark%2Fssbus/lists"}