APIdia Launch Partner
Top Description Inners Fields Constructors Methods
jdk.internal.net.http.qpack

public final Class QPACK

extends Object
Class Inheritance
Imports
jdk.internal.net.http.common.Utils, jdk.internal.net.http.http3.Http3Error, jdk.internal.net.http.http3.frames.SettingsFrame, jdk.internal.net.http.http3.streams.QueuingStreamPair, jdk.internal.net.http.qpack.QPACK.Logger.Level, java.nio.ByteBuffer, java.util.Map, .ResourceBundle, java.util.function.Consumer, .Supplier

Internal utilities and stuff.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
QPACK.Logger

The purpose of this logger is to provide means of diagnosing issues _in the QPACK implementation_.

public static interface
private static class
public static interface
QPACK.StreamPairSupplier

An interface used to obtain the encoder or decoder stream pair from the enclosing HTTP/3 connection.

Field Summary

Modifier and TypeField and Description
public static final boolean
public static final long
public static final long
public static final long
public static final int
public static final long
private static final QPACK.RootLogger
private static final Map<String, QPACK.Logger.Level>

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static QPACK.Logger
public static SettingsFrame
updateDecoderSettings(SettingsFrame defaultSettingsFrame)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

ALLOW_BLOCKING_ENCODINGback to summary
public static final boolean ALLOW_BLOCKING_ENCODING
DECODER_BLOCKED_STREAMSback to summary
public static final long DECODER_BLOCKED_STREAMS
DECODER_MAX_FIELD_SECTION_SIZEback to summary
public static final long DECODER_MAX_FIELD_SECTION_SIZE
DECODER_MAX_TABLE_CAPACITYback to summary
public static final long DECODER_MAX_TABLE_CAPACITY
ENCODER_DRAINING_THRESHOLDback to summary
public static final int ENCODER_DRAINING_THRESHOLD
ENCODER_TABLE_CAPACITY_LIMITback to summary
public static final long ENCODER_TABLE_CAPACITY_LIMIT
LOGGERback to summary
private static final QPACK.RootLogger LOGGER
logLevelsback to summary
private static final Map<String, QPACK.Logger.Level> logLevels

Constructor Detail

QPACKback to summary
private QPACK()

Method Detail

getLoggerback to summary
public static QPACK.Logger getLogger()
updateDecoderSettingsback to summary
public static SettingsFrame updateDecoderSettings(SettingsFrame defaultSettingsFrame)
jdk.internal.net.http.qpack back to summary

public Class QPACK.Logger

extends Object
implements Logger
Class Inheritance
All Implemented Interfaces
java.lang.System.Logger
Known Direct Subclasses
jdk.internal.net.http.qpack.QPACK.RootLogger

The purpose of this logger is to provide means of diagnosing issues _in the QPACK implementation_. It's not a general purpose logger.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static enum
QPACK.Logger.Level

Log detail level.

Field Summary

Modifier and TypeField and Description
private final QPACK.Logger.Level
private final System.Logger
private final String
private final String

Constructor Summary

AccessConstructor and Description
private
Logger(String path, String name, QPACK.Logger.Level level)

Method Summary

Modifier and TypeMethod and Description
public final String
getName()

Implements java.lang.System.Logger.getName.

Returns the name of this logger.

public boolean
isLoggable(System.Logger.Level level)

Implements java.lang.System.Logger.isLoggable.

Checks if a message of the given level would be logged by this logger.

public boolean
public void
log(System.Logger.Level level, ResourceBundle bundle, String msg, Throwable thrown)

Implements java.lang.System.Logger.log.

Logs a localized message associated with a given throwable.

public void
log(System.Logger.Level level, ResourceBundle bundle, String format, Object... params)

Implements java.lang.System.Logger.log.

Logs a message with resource bundle and an optional list of parameters.

public void
public QPACK.Logger
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

levelback to summary
private final QPACK.Logger.Level level
loggerback to summary
private final System.Logger logger
nameback to summary
private final String name
pathback to summary
private final String path

Constructor Detail

Loggerback to summary
private Logger(String path, String name, QPACK.Logger.Level level)

Method Detail

getNameback to summary
public final String getName()

Implements java.lang.System.Logger.getName.

Doc from java.lang.System.Logger.getName.

Returns the name of this logger.

isLoggableback to summary
public boolean isLoggable(System.Logger.Level level)

Implements java.lang.System.Logger.isLoggable.

Doc from java.lang.System.Logger.isLoggable.

Checks if a message of the given level would be logged by this logger.

Annotations
@Override
isLoggableback to summary
public boolean isLoggable(QPACK.Logger.Level level)
logback to summary
public void log(System.Logger.Level level, ResourceBundle bundle, String msg, Throwable thrown)

Implements java.lang.System.Logger.log.

Doc from java.lang.System.Logger.log.

Logs a localized message associated with a given throwable. If the given resource bundle is non-null, the msg string is localized using the given resource bundle. Otherwise the msg string is not localized.

Annotations
@Override
logback to summary
public void log(System.Logger.Level level, ResourceBundle bundle, String format, Object... params)

Implements java.lang.System.Logger.log.

Doc from java.lang.System.Logger.log.

Logs a message with resource bundle and an optional list of parameters. If the given resource bundle is non-null, the format string is localized using the given resource bundle. Otherwise the format string is not localized.

Annotations
@Override
logback to summary
public void log(QPACK.Logger.Level level, Supplier<String> s)
subLoggerback to summary
public QPACK.Logger subLogger(String name)
jdk.internal.net.http.qpack back to summary

public final Enum QPACK.Logger.Level

extends Enum<QPACK.Logger.Level>
Class Inheritance

Log detail level.

Field Summary

Modifier and TypeField and Description
public static final QPACK.Logger.Level
private final int
public static final QPACK.Logger.Level
public static final QPACK.Logger.Level
pack-priv final System.Logger.Level

Constructor Summary

AccessConstructor and Description
private
Level(int i, System.Logger.Level system)

Method Summary

Modifier and TypeMethod and Description
public final boolean
public static QPACK.Logger.Level
public static QPACK.Logger.Level[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

EXTRAback to summary
public static final QPACK.Logger.Level EXTRA
levelback to summary
private final int level
NONEback to summary
public static final QPACK.Logger.Level NONE
NORMALback to summary
public static final QPACK.Logger.Level NORMAL
systemLevelback to summary
pack-priv final System.Logger.Level systemLevel

Constructor Detail

Levelback to summary
private Level(int i, System.Logger.Level system)

Method Detail

impliesback to summary
public final boolean implies(QPACK.Logger.Level other)
valueOfback to summary
public static QPACK.Logger.Level valueOf(String name)
valuesback to summary
public static QPACK.Logger.Level[] values()
jdk.internal.net.http.qpack back to summary

public Interface QPACK.QPACKErrorHandler


Method Summary

Modifier and TypeMethod and Description
public void
closeOnError(Throwable throwable, Http3Error error)

Method Detail

closeOnErrorback to summary
public void closeOnError(Throwable throwable, Http3Error error)
jdk.internal.net.http.qpack back to summary

private final Class QPACK.RootLogger

extends Logger
Class Inheritance

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Inherited from jdk.internal.net.http.qpack.QPACK.Logger:
getNameisLoggableisLoggablelogloglogsubLogger

Constructor Detail

RootLoggerback to summary
protected RootLogger(QPACK.Logger.Level level)
jdk.internal.net.http.qpack back to summary

public Interface QPACK.StreamPairSupplier

Annotations
@FunctionalInterface

An interface used to obtain the encoder or decoder stream pair from the enclosing HTTP/3 connection.

Method Summary

Modifier and TypeMethod and Description
public QueuingStreamPair

Method Detail

createback to summary
public QueuingStreamPair create(Consumer<ByteBuffer> receiver)