You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

가장 기본적인 Actor의 설계방법을 살펴보겠습니다.

Actor에대한 이론적인 설명은 앞장에서 했기때문에 생략하겠습니다.

Actor에 대한 사용패턴/컨셉은 언어/플래폼이 틀려도 큰 차이가 없습니다.


주요 액터 모듈

import akka.actor.Props;



Props props1 = Props.create(MyActor.class);
Props props2 = Props.create(ActorWithArgs.class,
  () -> new ActorWithArgs("arg")); // careful, see below
Props props3 = Props.create(ActorWithArgs.class, "arg");





import akka.actor.AbstractActor;




import akka.actor.ActorRef;







  • No labels