{"id":18556684,"url":"https://github.com/valkryst/vradio","last_synced_at":"2025-04-24T07:50:26.510Z","repository":{"id":142749650,"uuid":"77860343","full_name":"Valkryst/VRadio","owner":"Valkryst","description":"A thread-safe implementation of the publish-subscribe pattern.","archived":false,"fork":false,"pushed_at":"2023-05-11T13:17:23.000Z","size":1620,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-30T08:11:16.957Z","etag":null,"topics":["publish","publish-subscribe","radio","receiver","subscriptions"],"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/Valkryst.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":"2017-01-02T20:37:23.000Z","updated_at":"2023-05-21T06:25:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"889984b2-4e68-4ff9-9593-94960395cefd","html_url":"https://github.com/Valkryst/VRadio","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Valkryst%2FVRadio","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Valkryst%2FVRadio/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Valkryst%2FVRadio/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Valkryst%2FVRadio/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Valkryst","download_url":"https://codeload.github.com/Valkryst/VRadio/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250588334,"owners_count":21454921,"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":["publish","publish-subscribe","radio","receiver","subscriptions"],"created_at":"2024-11-06T21:32:48.741Z","updated_at":"2025-04-24T07:50:26.484Z","avatar_url":"https://github.com/Valkryst.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"![](https://travis-ci.org/Valkryst/VRadio.svg?branch=master) [![Release](https://jitpack.io/v/Valkryst/VRadio.svg)](https://jitpack.io/#Valkryst/VRadio)\n\n# VRadio\n\nA thread-safe implementation of the publish-subscribe pattern.\n\n## Jar Files \u0026 Maven\n\nTo use this project as a Maven dependency, click on the JitPack badge [![Release](https://jitpack.io/v/Valkryst/VRadio.svg)](https://jitpack.io/#Valkryst/VRadio), select a version, click the \"Get it!\" button, and then follow the instructions.\n\nIf you would rather use a Jar file, then you can find the Jars on the [releases](https://github.com/Valkryst/VRadio/releases) page.\n\n\n## Examples\n\nWe'll be using the following Receiver class for all examples.\n\n```java\npublic class TestReceiver implements Receiver\u003cString\u003e {\n    private final String name;\n\n    public TestReceiver(final String name) {\n        this.name = name;\n    }\n\n    @Override\n    public void receive(final String event, final String data) {\n        System.out.println(name + \" Received:\");\n        System.out.println(\"\\tEvent:\\t\" + event);\n        System.out.println(\"\\tData:\\t\" + data);\n    }\n}\n```\n\n---\n\nConstruct a Radio and transmit an event with no data to the Receiver.\n```java\nfinal TestReceiver receiver = new TestReceiver(\"ReceiverA\");\nfinal Radio\u003cString\u003e radio = new Radio\u003c\u003e();\n\nradio.addReceiver(\"EventA\", receiver);\nradio.transmit(\"EventA\");\n```\n\n---\n\nConstruct a Radio and transmit two different events to three different Receivers.\n```java\nfinal TestReceiver receiverA = new TestReceiver(\"ReceiverA\");\nfinal TestReceiver receiverB = new TestReceiver(\"ReceiverB\");\nfinal TestReceiver receiverC = new TestReceiver(\"ReceiverC\");\nfinal Radio\u003cString\u003e radio = new Radio\u003c\u003e();\n\nradio.addReceiver(\"EventA\", receiverA);\n\nradio.addReceiver(\"EventB\", receiverB);\n\nradio.addReceiver(\"EventA\", receiverC);\nradio.addReceiver(\"EventB\", receiverC);\n\nSystem.out.println(\"Transmitting EventA:\");\nradio.transmit(\"EventA\", \"DataA\");\n\nSystem.out.println(\"\\n\\nTransmitting EventB:\");\nradio.transmit(\"EventB\", \"DataB\");\n```\n\n## JavaDoc Documentation:\n\nWhenever a Travis CI build passes, the JavaDocs are auto-generated and made available at the following link.\n\nhttps://valkryst.github.io/VRadio/.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvalkryst%2Fvradio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvalkryst%2Fvradio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvalkryst%2Fvradio/lists"}