Package io.netty.handler.codec.http2
Class DefaultHttp2Connection.PropertyKeyRegistry
- java.lang.Object
-
- io.netty.handler.codec.http2.DefaultHttp2Connection.PropertyKeyRegistry
-
- Enclosing class:
- DefaultHttp2Connection
private final class DefaultHttp2Connection.PropertyKeyRegistry extends java.lang.Object
A registry of all stream property keys known by this connection.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.util.List<DefaultHttp2Connection.DefaultPropertyKey>
keys
Initial size of 4 because the default configuration currently has 3 listeners (local/remote flow controller andStreamByteDistributor
) and we leave room for 1 extra.
-
Constructor Summary
Constructors Modifier Constructor Description private
PropertyKeyRegistry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) DefaultHttp2Connection.DefaultPropertyKey
newKey()
Registers a new property key.(package private) int
size()
-
-
-
Field Detail
-
keys
final java.util.List<DefaultHttp2Connection.DefaultPropertyKey> keys
Initial size of 4 because the default configuration currently has 3 listeners (local/remote flow controller andStreamByteDistributor
) and we leave room for 1 extra. We could be more aggressive but the ArrayList resize will double the size if we are too small.
-
-
Method Detail
-
newKey
DefaultHttp2Connection.DefaultPropertyKey newKey()
Registers a new property key.
-
size
int size()
-
-