Package com.droidkit.actors

Examples of com.droidkit.actors.ActorRef


    public ActorScope createScope(String path, Props props) {
        // TODO: add path check

        Mailbox mailbox = new Mailbox(getQueue());
        UUID uuid = UUID.randomUUID();
        ActorRef ref = new ActorRef(actorSystem, this, uuid, path);
        ActorScope scope = new ActorScope(actorSystem, mailbox, ref, this, UUID.randomUUID(), path, props);

        synchronized (mailboxes) {
            mailboxes.put(mailbox, scope);
            scopes.put(scope.getPath(), scope);
View Full Code Here


    }

    @Override
    public void connectScope(ActorScope actor) {
        Mailbox mailbox = new Mailbox(getQueue());
        actor.init(mailbox, new ActorRef(actorSystem, mailbox));
        synchronized (mailboxes) {
            mailboxes.put(mailbox, actor);
        }

    }
View Full Code Here

TOP

Related Classes of com.droidkit.actors.ActorRef

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.