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()));
}
}
}
Aggregations