Package org.gradle.messaging.concurrent

Examples of org.gradle.messaging.concurrent.CompositeStoppable


            throw new GradleException(String.format("Could not write message to '%s'.", remoteAddress), e);
        }
    }

    public void requestStop() {
        new CompositeStoppable(instr).stop();
    }
View Full Code Here


    public void requestStop() {
        new CompositeStoppable(instr).stop();
    }

    public void stop() {
        new CompositeStoppable(instr, outstr, socket).stop();
    }
View Full Code Here

    }

    public void stop() {
        synchronized (lock) {
            try {
                new CompositeStoppable(actors.values()).stop();
            } finally {
                actors.clear();
            }
        }
    }
View Full Code Here

            return new ProxyDispatchAdapter<T>(type, this).getSource();
        }

        public void stop() {
            try {
                new CompositeStoppable(dispatch, executor, exceptionListener).stop();
            } finally {
                stopped(this);
            }
        }
View Full Code Here

     * Closes all services for this registry. For each service, if the service has a public void close() method, that
     * method is called to close the service.
     */
    public void close() {
        try {
            new CompositeStoppable(services).stop();
        } finally {
            closed = true;
            services.clear();
        }
    }
View Full Code Here

                    break;
                }
                outputStream.write(buffer, 0, nread);
                outputStream.flush();
            }
            new CompositeStoppable(inputStream, outputStream).stop();
        } catch (Throwable t) {
            LOGGER.error(String.format("Could not %s.", displayName), t);
        }
    }
View Full Code Here

        return this;
    }

    public DefaultLoggingManager stop() {
        try {
            new CompositeStoppable(loggingSystem, stdOutLoggingSystem, stdErrLoggingSystem).stop();
            for (StandardOutputListener stdoutListener : stdoutListeners) {
                loggingOutput.removeStandardOutputListener(stdoutListener);
            }
            for (StandardOutputListener stderrListener : stderrListeners) {
                loggingOutput.removeStandardErrorListener(stderrListener);
View Full Code Here

        executor.execute(new Receiver(serverSocket, localAddress, action));
        return localAddress;
    }

    public void requestStop() {
        new CompositeStoppable().addCloseables(serverSockets).stop();
    }
View Full Code Here

        return server.accept(action);
    }

    public void stop() {
        incomingConnector.requestStop();
        new CompositeStoppable(server, connector, incomingConnector, executorFactory).stop();
    }
View Full Code Here

    public void stop() {
        for (ObjectConnection connection : connections) {
            connection.requestStop();
        }
        try {
            new CompositeStoppable(connections).stop();
        } finally {
            connections.clear();
        }
    }
View Full Code Here

TOP

Related Classes of org.gradle.messaging.concurrent.CompositeStoppable

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.