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

com.webpieces.http2engine.api.client.Http2ClientEngine Maven / Gradle / Ivy

package com.webpieces.http2engine.api.client;

import org.webpieces.util.futures.XFuture;

import org.webpieces.data.api.DataWrapper;

import com.webpieces.http2.api.streaming.RequestStreamHandle;

public interface Http2ClientEngine {

	XFuture sendInitializationToSocket();

	/**
	 * Future completes one the data is SENT! not when there is a response which allows to backpressure the socket and
	 * deregister from reading if clients do not keep up
	 */
	RequestStreamHandle openStream();

	XFuture sendPing();
	
	XFuture parse(DataWrapper newData);

	/**
	 * completely tear down engine
	 */
	void farEndClosed();

	void initiateClose(String reason);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy