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

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


                case CHANNEL_MESSAGE:
                    ChannelIdentifier channelId = readChannelId();
                    Object payload = payloadReader.read();
                    return new ChannelMessage(channelId, payload);
                case END_STREAM_MESSAGE:
                    return new EndOfStream();
                default:
                    throw new IllegalArgumentException();
            }
        }
View Full Code Here


        super(lock);
        this.incomingQueue = incomingQueue;
    }

    void endOutput() {
        dispatch(new EndOfStream());
    }
View Full Code Here

    IncomingQueue(Lock lock) {
        super(lock);
    }

    public void requestStop() {
        queue(new EndOfStream());
    }
View Full Code Here

    }

    private void maybeStop() {
        if (connections.isEmpty()) {
            outgoingQueue.discardQueued();
            incomingQueue.queue(new EndOfStream());
        }
    }
View Full Code Here

    }

    void stopped(EndPointQueue queue) {
        waiting.remove(queue);
        endpoints.remove(queue);
        queue.dispatch(new EndOfStream());
    }
View Full Code Here

TOP

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

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.