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

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


        this.incomingQueue = incomingQueue;
        this.outgoingQueue = outgoingQueue;
    }

    public ConnectionState add(Connection<InterHubMessage> connection) {
        incomingQueue.queue(new ConnectionEstablished(connection));
        EndPointQueue queue = outgoingQueue.newEndpoint();
        ConnectionState state = new ConnectionState(this, connection, queue);
        connections.add(state);
        return state;
    }
View Full Code Here


    private EndOfStream endOfStream;
    private Map<Connection<?>, ConnectionEstablished> queued = new LinkedHashMap<Connection<?>, ConnectionEstablished>();

    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();
View Full Code Here

TOP

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

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.