Examples of ShutdownMessage


Examples of co.paralleluniverse.actors.ShutdownMessage

        return true;
    }

    @Override
    public void shutdown() {
        final ShutdownMessage message = new ShutdownMessage(LocalActor.self());
        actor.sendOrInterrupt(message);
    }
View Full Code Here

Examples of co.paralleluniverse.actors.ShutdownMessage

    private void shutdownChild(ChildEntry child, boolean beforeRestart) throws InterruptedException {
        if (child.actor != null) {
            unwatch(child);
            if (!child.actor.isDone()) {
                LOG.info("{} shutting down child {}", this, child.actor);
                ((ActorImpl) child.actor).sendOrInterrupt(new ShutdownMessage(this));
            }
            try {
                joinChild(child);
            } finally {
                if (!beforeRestart) {
View Full Code Here

Examples of co.paralleluniverse.actors.ShutdownMessage

    private void shutdownChildren() throws InterruptedException {
        LOG.info("{} shutting down all children.", this);
        for (ChildEntry child : children) {
            if (child.actor != null) {
                unwatch(child);
                ((ActorImpl) child.actor).sendOrInterrupt(new ShutdownMessage(this));
            }
        }

        for (ChildEntry child : children) {
            if (child.actor != null) {
View Full Code Here

Examples of com.amazonaws.services.kinesis.multilang.messages.ShutdownMessage

     * Writes a {@link ShutdownMessage} to the subprocess.
     *
     * @param reason The reason for shutting down.
     */
    Future<Boolean> writeShutdownMessage(ShutdownReason reason) {
        return writeMessage(new ShutdownMessage(reason));
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.