All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.chanhohang.akka.cluster.MessagePublishRouter Maven / Gradle / Ivy

package com.github.chanhohang.akka.cluster;

import akka.actor.ActorSystem;

import com.github.chanhohang.akka.message.persist.AcknowledgementPersist;

public class MessagePublishRouter implements ClusterMessageRouter {

  private final ActorSystem system;

  public MessagePublishRouter(ActorSystem system) {
    this.system = system;
  }

  @Override
  public void route(AcknowledgementPersist event) {
    system.eventStream().publish(event.getPayload());
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy