Search in sources :

Example 1 with RouterInt

use of im.actor.core.modules.messaging.router.RouterInt 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);
}
Also used : ArchivedDialogsActor(im.actor.core.modules.messaging.history.ArchivedDialogsActor) MessageDeleteActor(im.actor.core.modules.messaging.actions.MessageDeleteActor) DialogsInt(im.actor.core.modules.messaging.dialogs.DialogsInt) RouterInt(im.actor.core.modules.messaging.router.RouterInt) CursorReaderActor(im.actor.core.modules.messaging.actions.CursorReaderActor) CursorReceiverActor(im.actor.core.modules.messaging.actions.CursorReceiverActor) SenderActor(im.actor.core.modules.messaging.actions.SenderActor) DialogsHistoryActor(im.actor.core.modules.messaging.history.DialogsHistoryActor)

Aggregations

CursorReaderActor (im.actor.core.modules.messaging.actions.CursorReaderActor)1 CursorReceiverActor (im.actor.core.modules.messaging.actions.CursorReceiverActor)1 MessageDeleteActor (im.actor.core.modules.messaging.actions.MessageDeleteActor)1 SenderActor (im.actor.core.modules.messaging.actions.SenderActor)1 DialogsInt (im.actor.core.modules.messaging.dialogs.DialogsInt)1 ArchivedDialogsActor (im.actor.core.modules.messaging.history.ArchivedDialogsActor)1 DialogsHistoryActor (im.actor.core.modules.messaging.history.DialogsHistoryActor)1 RouterInt (im.actor.core.modules.messaging.router.RouterInt)1