Skip to content
Snippets Groups Projects
ActionInvokeRevive.java 493 B
Newer Older
Michael Kmoch's avatar
Michael Kmoch committed
package fucoin.actions.persist;

import akka.actor.ActorRef;
import akka.actor.UntypedActorContext;
import fucoin.actions.join.ActionJoin;
Michael Kmoch's avatar
Michael Kmoch committed

public class ActionInvokeRevive extends Persist {
Michael Kmoch's avatar
Michael Kmoch committed

    @Override
    protected void onAction(ActorRef sender, ActorRef self,
                            UntypedActorContext context, AbstractWallet wallet) {
        wallet.setActive(true);
        wallet.getPreKnownNeighbour().tell(new ActionJoin(), self);