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

com.webpieces.http2engine.impl.svr.ServerStream Maven / Gradle / Ivy

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

import org.webpieces.util.futures.XFuture;

import org.webpieces.javasm.api.Memento;

import com.webpieces.http2.api.streaming.RequestStreamHandle;
import com.webpieces.http2.api.streaming.StreamRef;
import com.webpieces.http2.api.streaming.StreamWriter;
import com.webpieces.http2engine.impl.shared.data.Stream;

public class ServerStream extends Stream {

	private RequestStreamHandle streamHandle;
	private StreamRef streamRef;

	public ServerStream(String logId, int streamId, Memento currentState,
			long localInitialWindowSize, long remoteInitialWindowSize) {
		super(logId, streamId, currentState, localInitialWindowSize, remoteInitialWindowSize, false);
	}

	public XFuture getStreamWriter() {
		return streamRef.getWriter();
	}

	public void setStreamHandle(RequestStreamHandle streamHandle, StreamRef streamRef) {
		this.streamHandle = streamHandle;
		this.streamRef = streamRef;
	}

	public RequestStreamHandle getStreamHandle() {
		return streamHandle;
	}

	public StreamRef getStreamRef() {
		return streamRef;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy