use of im.actor.core.modules.messaging.actions.CursorReaderActor in project actor-platform by actorapp.
the class MessagesModule method run.
public void run() {
this.router = new RouterInt(context());
this.dialogsInt = new DialogsInt(context());
this.dialogsHistoryActor = system().actorOf("actor/dialogs/history", () -> new DialogsHistoryActor(context()));
this.archivedDialogsActor = system().actorOf("actor/dialogs/archived", () -> new ArchivedDialogsActor(context()));
this.plainReadActor = system().actorOf(Props.create(() -> new CursorReaderActor(context())).changeDispatcher("heavy"), "actor/plain/read");
this.plainReceiverActor = system().actorOf(Props.create(() -> new CursorReceiverActor(context())).changeDispatcher("heavy"), "actor/plain/receive");
this.sendMessageActor = system().actorOf(Props.create(() -> new SenderActor(context())), "actor/sender/small");
this.deletionsActor = system().actorOf(Props.create(() -> new MessageDeleteActor(context())), "actor/deletions");
context().getEvents().subscribe(this, PeerChatOpened.EVENT);
context().getEvents().subscribe(this, PeerChatPreload.EVENT);
}
Aggregations