Search in sources :

Example 1 with StreamPriority

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);
    }
}
Also used : StreamPriority(io.vertx.core.http.StreamPriority)

Example 2 with 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);
}
Also used : StreamPriority(io.vertx.core.http.StreamPriority)

Aggregations

StreamPriority (io.vertx.core.http.StreamPriority)2