Skip to content

Instantly share code, notes, and snippets.

@codewheeney
codewheeney / AkkaEventBusExample.java
Created April 28, 2017 20:42 — forked from ricemery/AkkaEventBusExample.java
Java example on using Akka EventBus
import akka.actor.ActorRef;
import akka.actor.ActorSystem;
import akka.actor.Props;
import akka.actor.UntypedActor;
import akka.event.japi.LookupEventBus;
/**
* Java example showing the usage of a Akka {@link akka.event.japi.LookupEventBus}.
* The case below shows publishing events to two different "channels". A channel is just
* a string value carried along with the Event.