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

com.webpieces.http2engine.api.error.ShutdownStream Maven / Gradle / Ivy

There is a newer version: 2.1.109
Show newest version
package com.webpieces.http2engine.api.error;

import com.webpieces.http2.api.dto.lowlevel.CancelReason;
import com.webpieces.http2.api.dto.lowlevel.lib.Http2MsgType;

public class ShutdownStream implements CancelReason {

	private int streamId;
	private ConnectionCancelled cause;

	public ShutdownStream(int streamId, ConnectionCancelled reset2) {
		this.streamId = streamId;
		this.cause = reset2;
	}

	@Override
	public int getStreamId() {
		return streamId;
	}

	@Override
	public Http2MsgType getMessageType() {
		return Http2MsgType.APP_CANCEL_STREAM;
	}

	public ConnectionCancelled getCause() {
		return cause;
	}

	@Override
	public boolean isEndOfStream() {
		return true;
	}

	@Override
	public void setStreamId(int streamId) {
		this.streamId = streamId;
	}

	@Override
	public String toString() {
		return "ShutdownStream [streamId=" + streamId + ", cause=" + cause + "]";
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy