onStartMessage fix
This commit is contained in:
parent
cfcebd59c9
commit
1da49a5d57
|
@ -27,12 +27,12 @@ public class Actor extends AbstractBehavior<Actor.Message> {
|
||||||
@Override
|
@Override
|
||||||
public Receive<Actor.Message> createReceive(){
|
public Receive<Actor.Message> createReceive(){
|
||||||
return newReceiveBuilder()
|
return newReceiveBuilder()
|
||||||
//.onMessage(StartMessage.class, this::onStartMessage)
|
.onMessage(StartMessage.class, this::onStartMessage)
|
||||||
.build();
|
.build();
|
||||||
}
|
}
|
||||||
|
|
||||||
private Behavior<Message> onStartMessage(Expression expression){
|
private Behavior<Message> onStartMessage(StartMessage message){
|
||||||
this.expression = expression;
|
this.expression = message.expression;
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue