Package co.paralleluniverse.actors

Examples of co.paralleluniverse.actors.Actor


            return actor().getName();
        }

        @Override
        public void interrupt() {
            final Actor a = getActor();
            if (a != null)
                a.interrupt();
        }
View Full Code Here


                a.interrupt();
        }
       
        @Override
        public void send(Message message) throws SuspendExecution {
            final Actor a = getActor();
            if (a != null)
                a.send(message);
        }
View Full Code Here

                a.send(message);
        }

        @Override
        public void sendSync(Message message) throws SuspendExecution {
            final Actor a = getActor();
            if (a != null)
                a.sendSync(message);
        }
View Full Code Here

                if (cause == null)
                    return true;
            // fall through
            case PERMANENT:
                LOG.info("Supervisor trying to restart child {}. (cause: {})", child, cause);
                final Actor actor = child.actor;
                shutdownChild(child, true);
                child.restartHistory.addRestart(now);
                final int numRestarts = child.restartHistory.numRestarts(now - child.info.unit.toMillis(child.info.duration));
                if (LOG.isDebugEnabled())
                    LOG.debug("Child {} has been restarted {} times in the last {} {}s", child, numRestarts, child.info.duration, child.info.unit);
View Full Code Here

    }

    @Override
    public <Message> Actor<Message> getActor(String name) throws SuspendExecution {
        final String rootName = name;
        Actor cacheValue = rootCache.get(rootName);
        if (cacheValue != null)
            return cacheValue;
        serlock.lock();
        try {
            cacheValue = rootCache.get(rootName);
View Full Code Here

TOP

Related Classes of co.paralleluniverse.actors.Actor

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.