Advertisement
Guest User

Untitled

a guest
Oct 15th, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.33 KB | None | 0 0
  1.  
  2.         .match(String.class, (s) -> {
  3.             //todo: if we recieve a string we need to ping it to all the pingpongers
  4.             //todo: listening on the topig "pingpong"
  5.             mediator.tell(new DistributedPubSubMediator.Publish
  6.                     ("pingpong", new PingMessage(s)), getSelf());
  7.         })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement