Search in sources :

Example 1 with ChannelMessage

use of org.gradle.internal.remote.internal.hub.protocol.ChannelMessage in project gradle by gradle.

the class OutgoingQueue method discardQueued.

void discardQueued() {
    List<InterHubMessage> rejected = new ArrayList<InterHubMessage>();
    drain(rejected);
    for (InterHubMessage message : rejected) {
        if (message instanceof ChannelMessage) {
            ChannelMessage channelMessage = (ChannelMessage) message;
            incomingQueue.queue(new RejectedMessage(channelMessage.getChannel(), channelMessage.getPayload()));
        }
    }
}
Also used : ArrayList(java.util.ArrayList) RejectedMessage(org.gradle.internal.remote.internal.hub.protocol.RejectedMessage) InterHubMessage(org.gradle.internal.remote.internal.hub.protocol.InterHubMessage) ChannelMessage(org.gradle.internal.remote.internal.hub.protocol.ChannelMessage)

Aggregations

ArrayList (java.util.ArrayList)1 ChannelMessage (org.gradle.internal.remote.internal.hub.protocol.ChannelMessage)1 InterHubMessage (org.gradle.internal.remote.internal.hub.protocol.InterHubMessage)1 RejectedMessage (org.gradle.internal.remote.internal.hub.protocol.RejectedMessage)1