package com.example; import akka.actor.typed.Behavior; import akka.actor.typed.javadsl.AbstractBehavior; import akka.actor.typed.javadsl.ActorContext; import akka.actor.typed.javadsl.Behaviors; import akka.actor.typed.javadsl.Receive; public class C extends AbstractBehavior { public static Behavior create() { return Behaviors.setup(C::new); } private C(ActorContext context) { super(context); } @Override public Receive createReceive() { return newReceiveBuilder() .onMessage(FibCont.FibContMessage.class, this::onFibContMessage) .build(); } private Behavior onFibContMessage(FibCont.FibContMessage msg) { getContext().getLog().info("{}", msg.n()); return this; } }