com.firefly.codec.http2.frame.WindowUpdateFrame Maven / Gradle / Ivy
package com.firefly.codec.http2.frame;
public class WindowUpdateFrame extends Frame {
private final int streamId;
private final int windowDelta;
public WindowUpdateFrame(int streamId, int windowDelta) {
super(FrameType.WINDOW_UPDATE);
this.streamId = streamId;
this.windowDelta = windowDelta;
}
public int getStreamId() {
return streamId;
}
public int getWindowDelta() {
return windowDelta;
}
@Override
public String toString() {
return String.format("%s#%d,delta=%d", super.toString(), streamId, windowDelta);
}
}