{"id":19889703,"url":"https://github.com/kevinpriv/keventbus","last_synced_at":"2025-07-14T00:38:38.442Z","repository":{"id":41202609,"uuid":"302967796","full_name":"KevinPriv/keventbus","owner":"KevinPriv","description":"Performance and thread-safe oriented eventbus ","archived":false,"fork":false,"pushed_at":"2022-01-09T22:31:20.000Z","size":79,"stargazers_count":10,"open_issues_count":2,"forks_count":13,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-02T18:53:06.223Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Kotlin","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/KevinPriv.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-10-10T18:41:18.000Z","updated_at":"2025-03-14T07:13:53.000Z","dependencies_parsed_at":"2022-08-27T02:28:12.472Z","dependency_job_id":null,"html_url":"https://github.com/KevinPriv/keventbus","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/KevinPriv/keventbus","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KevinPriv%2Fkeventbus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KevinPriv%2Fkeventbus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KevinPriv%2Fkeventbus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KevinPriv%2Fkeventbus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KevinPriv","download_url":"https://codeload.github.com/KevinPriv/keventbus/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KevinPriv%2Fkeventbus/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265228223,"owners_count":23731068,"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-11-12T18:11:23.899Z","updated_at":"2025-07-14T00:38:38.419Z","avatar_url":"https://github.com/KevinPriv.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# KEventBus\nJVM Eventbus focused on thread-safety and performance.\n\n## Registering\n**Kotlin**\n```kotlin\n// Create eventbus\nprivate val eventBus = eventbus {\n    invoker { LMFInvoker() }\n    exceptionHandler { exception -\u003e println(\"Error occurred in method: ${exception.message}\")  }\n}\n\n// Method you would like to subscribe to an event\n// Param #1 is MessagedReceivedEvent therefore this method will be subscribed to that class\n@Subscribe\nfun `subscribed method`(event: MessageReceivedEvent) {\n    // do something\n    println(event.message)\n}\n...\n// Register all the @Subscribe 'd methods inside of an instance\neventBus.register(this)\n\n```\n**Java**\n```java\n// Create eventbus\nprivate EventBus eventBus = new EventBus(new LMFInvoker(), e -\u003e {\n    System.out.println(\"Error occurred in method: \" + e.getMessage());\n});\n\n// Method you would like to subscribe to an event\n// Param #1 is MessagedReceivedEvent therefore this method will be subscribed to that class\n@Subscribe\npublic void subscribedMethod(MessageReceivedEvent event) {\n    System.out.println(event.getMessage());\n}\n...\n// Register all the @Subscribe 'd methods inside of an instance        \neventBus.register(this)\n```\n## Posting\n**Kotlin**\n```kotlin\n// Post all methods subscribed to the event `MessageReceivedEvent`\neventBus.post(MessageReceivedEvent(\"Hello world\"))\n```\n**Java**\n```java \n// Post all methods subscribed to the event `MessageReceivedEvent`\neventBus.post(new MessageReceivedEvent(\"Hello world\"));\n```\n## Unregistering\n**Kotlin**\n```kotlin\n// Remove all @Subscribe 'd methods from an instance\neventBus.unregister(this)\n```\n**Java**\n```java\n// Remove all @Subscribe 'd methods from an instance\neventBus.unregister(this)\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkevinpriv%2Fkeventbus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkevinpriv%2Fkeventbus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkevinpriv%2Fkeventbus/lists"}