Package org.gradle.messaging.remote.internal.hub.protocol

Examples of org.gradle.messaging.remote.internal.hub.protocol.ConnectionClosed


        connections.add(state);
        return state;
    }

    public void finished(ConnectionState connectionState) {
        incomingQueue.queue(new ConnectionClosed(connectionState.getConnection()));
        connections.remove(connectionState);
        if (stopping) {
            maybeStop();
        }
    }
View Full Code Here


    void onStatefulMessage(InterHubMessage message) {
        if (message instanceof ConnectionEstablished) {
            ConnectionEstablished connectionEstablished = (ConnectionEstablished) message;
            queued.put(connectionEstablished.getConnection(), connectionEstablished);
        } else if (message instanceof ConnectionClosed) {
            ConnectionClosed connectionClosed = (ConnectionClosed) message;
            queued.remove(connectionClosed.getConnection());
        } else if (message instanceof EndOfStream) {
            queued.clear();
            endOfStream = (EndOfStream) message;
        } else {
            throw new UnsupportedOperationException(String.format("Received unexpected stateful message: %s", message));
View Full Code Here

TOP

Related Classes of org.gradle.messaging.remote.internal.hub.protocol.ConnectionClosed

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.