All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.webpieces.http2engine.impl.client.Level6ClntLocalFlowControl Maven / Gradle / Ivy

There is a newer version: 2.1.109
Show newest version
package com.webpieces.http2engine.impl.client;

import org.webpieces.util.futures.XFuture;

import com.webpieces.http2.api.dto.highlevel.Http2Push;
import com.webpieces.http2.api.dto.highlevel.Http2Response;
import com.webpieces.http2engine.impl.shared.Level6LocalFlowControl;
import com.webpieces.http2engine.impl.shared.Level7MarshalAndPing;
import com.webpieces.http2engine.impl.shared.data.HeaderSettings;
import com.webpieces.http2engine.impl.shared.data.Stream;

public class Level6ClntLocalFlowControl extends Level6LocalFlowControl {

	private Level8NotifyClntListeners notify;

	public Level6ClntLocalFlowControl(String logId, Level7MarshalAndPing marshalLayer, Level8NotifyClntListeners notifyListener,
			HeaderSettings localSettings) {
		super(logId, marshalLayer, notifyListener, localSettings);
		notify = notifyListener;
	}

	public XFuture fireResponseToApp(Stream stream, Http2Response payload) {
		return notify.sendResponseToApp(stream, payload);
	}

	public XFuture firePushToApp(ClientPushStream stream, Http2Push fullPromise) {
		return notify.sendPushToApp(stream, fullPromise);
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy