use of io.vertx.core.http.StreamPriority in project vert.x by eclipse.
the class Http2ConnectionBase method onPriorityRead.
// Http2FrameListener
@Override
public void onPriorityRead(ChannelHandlerContext ctx, int streamId, int streamDependency, short weight, boolean exclusive) {
VertxHttp2Stream stream = stream(streamId);
if (stream != null) {
StreamPriority streamPriority = new StreamPriority().setDependency(streamDependency).setWeight(weight).setExclusive(exclusive);
stream.onPriorityChange(streamPriority);
}
}
use of io.vertx.core.http.StreamPriority in project vert.x by eclipse.
the class Http2ConnectionBase method onHeadersRead.
@Override
public void onHeadersRead(ChannelHandlerContext ctx, int streamId, Http2Headers headers, int streamDependency, short weight, boolean exclusive, int padding, boolean endOfStream) throws Http2Exception {
StreamPriority streamPriority = new StreamPriority().setDependency(streamDependency).setWeight(weight).setExclusive(exclusive);
onHeadersRead(streamId, headers, streamPriority, endOfStream);
}
Aggregations