Top Description Inners Fields Constructors Methods
reactor.netty5.http

public final Class Http2SettingsSpec

extends Object
Class Inheritance
Imports
io.netty5.handler.codec.http2.Http2CodecUtil, .Http2Settings, reactor.util.annotation.Nullable, java.util.Objects

A configuration builder to fine tune the Http2Settings.
Author
Violeta Georgieva
Since
1.0.0

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class
public static interface

Field Summary

Modifier and TypeField and Description
pack-priv final Long
pack-priv final Integer
pack-priv final Long
pack-priv final Integer
pack-priv final Long
pack-priv final Boolean

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public static Http2SettingsSpec.Builder
builder()

Creates a builder for Http2SettingsSpec.

public boolean
equals(Object
the reference object with which to compare.
o
)

Overrides java.lang.Object.equals.

Indicates whether some other object is "equal to" this one.
public int
hashCode()

Overrides java.lang.Object.hashCode.

Returns a hash code value for the object.
public Long

Returns:

the configured SETTINGS_HEADER_TABLE_SIZE value or null
headerTableSize
()

Returns the configured SETTINGS_HEADER_TABLE_SIZE value or null.

public Integer

Returns:

the configured SETTINGS_INITIAL_WINDOW_SIZE value or null
initialWindowSize
()

Returns the configured SETTINGS_INITIAL_WINDOW_SIZE value or null.

public Long

Returns:

the configured SETTINGS_MAX_CONCURRENT_STREAMS value or null
maxConcurrentStreams
()

Returns the configured SETTINGS_MAX_CONCURRENT_STREAMS value or null.

public Integer

Returns:

the configured SETTINGS_MAX_FRAME_SIZE value or null
maxFrameSize
()

Returns the configured SETTINGS_MAX_FRAME_SIZE value or null.

public Long

Returns:

the configured SETTINGS_MAX_HEADER_LIST_SIZE value or the default Http2CodecUtil#DEFAULT_HEADER_LIST_SIZE.
maxHeaderListSize
()

Returns the configured SETTINGS_MAX_HEADER_LIST_SIZE value or the default Http2CodecUtil#DEFAULT_HEADER_LIST_SIZE.

public Boolean

Returns:

the configured SETTINGS_ENABLE_PUSH value or null
pushEnabled
()

Returns the configured SETTINGS_ENABLE_PUSH value or null.

Inherited from java.lang.Object:
clonefinalizegetClassnotifynotifyAlltoStringwaitwaitwait

Field Detail

headerTableSizeback to summary
pack-priv final Long headerTableSize
initialWindowSizeback to summary
pack-priv final Integer initialWindowSize
maxConcurrentStreamsback to summary
pack-priv final Long maxConcurrentStreams
maxFrameSizeback to summary
pack-priv final Integer maxFrameSize
maxHeaderListSizeback to summary
pack-priv final Long maxHeaderListSize
pushEnabledback to summary
pack-priv final Boolean pushEnabled

Constructor Detail

Http2SettingsSpecback to summary
pack-priv Http2SettingsSpec(Http2SettingsSpec.Build build)

Method Detail

builderback to summary
public static Http2SettingsSpec.Builder builder()

Creates a builder for Http2SettingsSpec.

Returns:Http2SettingsSpec.Builder

a new Http2SettingsSpec.Builder

equalsback to summary
public boolean equals(Object o)

Overrides java.lang.Object.equals.

Doc from java.lang.Object.equals.

Indicates whether some other object is "equal to" this one.

The equals method implements an equivalence relation on non-null object references:

  • It is reflexive: for any non-null reference value x, x.equals(x) should return true.
  • It is symmetric: for any non-null reference values x and y, x.equals(y) should return true if and only if y.equals(x) returns true.
  • It is transitive: for any non-null reference values x, y, and z, if x.equals(y) returns true and y.equals(z) returns true, then x.equals(z) should return true.
  • It is consistent: for any non-null reference values x and y, multiple invocations of x.equals(y) consistently return true or consistently return false, provided no information used in equals comparisons on the objects is modified.
  • For any non-null reference value x, x.equals(null) should return false.

An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.

Parameters
o:Object

the reference object with which to compare.

Returns:boolean

true if this object is the same as the obj argument; false otherwise.

Annotations
@Override
hashCodeback to summary
public int hashCode()

Overrides java.lang.Object.hashCode.

Doc from java.lang.Object.hashCode.

Returns a hash code value for the object. This method is supported for the benefit of hash tables such as those provided by java.util.HashMap.

The general contract of hashCode is:

  • Whenever it is invoked on the same object more than once during an execution of a Java application, the hashCode method must consistently return the same integer, provided no information used in equals comparisons on the object is modified. This integer need not remain consistent from one execution of an application to another execution of the same application.
  • If two objects are equal according to the equals method, then calling the hashCode method on each of the two objects must produce the same integer result.
  • It is not required that if two objects are unequal according to the equals method, then calling the hashCode method on each of the two objects must produce distinct integer results. However, the programmer should be aware that producing distinct integer results for unequal objects may improve the performance of hash tables.
Returns:int

a hash code value for this object.

Annotations
@Override
headerTableSizeback to summary
public Long headerTableSize()

Returns the configured SETTINGS_HEADER_TABLE_SIZE value or null.

Returns:Long

the configured SETTINGS_HEADER_TABLE_SIZE value or null

Annotations
@Nullable
initialWindowSizeback to summary
public Integer initialWindowSize()

Returns the configured SETTINGS_INITIAL_WINDOW_SIZE value or null.

Returns:Integer

the configured SETTINGS_INITIAL_WINDOW_SIZE value or null

Annotations
@Nullable
maxConcurrentStreamsback to summary
public Long maxConcurrentStreams()

Returns the configured SETTINGS_MAX_CONCURRENT_STREAMS value or null.

Returns:Long

the configured SETTINGS_MAX_CONCURRENT_STREAMS value or null

Annotations
@Nullable
maxFrameSizeback to summary
public Integer maxFrameSize()

Returns the configured SETTINGS_MAX_FRAME_SIZE value or null.

Returns:Integer

the configured SETTINGS_MAX_FRAME_SIZE value or null

Annotations
@Nullable
maxHeaderListSizeback to summary
public Long maxHeaderListSize()

Returns the configured SETTINGS_MAX_HEADER_LIST_SIZE value or the default Http2CodecUtil#DEFAULT_HEADER_LIST_SIZE.

Returns:Long

the configured SETTINGS_MAX_HEADER_LIST_SIZE value or the default Http2CodecUtil#DEFAULT_HEADER_LIST_SIZE.

pushEnabledback to summary
public Boolean pushEnabled()

Returns the configured SETTINGS_ENABLE_PUSH value or null.

Returns:Boolean

the configured SETTINGS_ENABLE_PUSH value or null

Annotations
@Nullable
reactor.netty5.http back to summary

pack-priv final Class Http2SettingsSpec.Build

extends Object
implements Builder
Class Inheritance
All Implemented Interfaces
reactor.netty5.http.Http2SettingsSpec.Builder

Field Summary

Modifier and TypeField and Description
pack-priv final Http2Settings

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public Http2SettingsSpec
public Http2SettingsSpec.Builder
headerTableSize(long
the SETTINGS_HEADER_TABLE_SIZE value
headerTableSize
)

Implements reactor.netty5.http.Http2SettingsSpec.Builder.headerTableSize.

Sets the SETTINGS_HEADER_TABLE_SIZE value.
public Http2SettingsSpec.Builder
initialWindowSize(int
the SETTINGS_INITIAL_WINDOW_SIZE value
initialWindowSize
)

Implements reactor.netty5.http.Http2SettingsSpec.Builder.initialWindowSize.

Sets the SETTINGS_INITIAL_WINDOW_SIZE value.
public Http2SettingsSpec.Builder
maxConcurrentStreams(long
the SETTINGS_MAX_CONCURRENT_STREAMS value
maxConcurrentStreams
)

Implements reactor.netty5.http.Http2SettingsSpec.Builder.maxConcurrentStreams.

Sets the SETTINGS_MAX_CONCURRENT_STREAMS value.
public Http2SettingsSpec.Builder
maxFrameSize(int
the SETTINGS_MAX_FRAME_SIZE value
maxFrameSize
)

Implements reactor.netty5.http.Http2SettingsSpec.Builder.maxFrameSize.

Sets the SETTINGS_MAX_FRAME_SIZE value.
public Http2SettingsSpec.Builder
maxHeaderListSize(long
the SETTINGS_MAX_HEADER_LIST_SIZE value
maxHeaderListSize
)

Implements reactor.netty5.http.Http2SettingsSpec.Builder.maxHeaderListSize.

Sets the SETTINGS_MAX_HEADER_LIST_SIZE value.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

http2Settingsback to summary
pack-priv final Http2Settings http2Settings

Constructor Detail

Buildback to summary
pack-priv Build()

Method Detail

buildback to summary
public Http2SettingsSpec build()

Implements reactor.netty5.http.Http2SettingsSpec.Builder.build.

Doc from reactor.netty5.http.Http2SettingsSpec.Builder.build.

Build a new Http2SettingsSpec

Returns:Http2SettingsSpec

a new Http2SettingsSpec

Annotations
@Override
headerTableSizeback to summary
public Http2SettingsSpec.Builder headerTableSize(long headerTableSize)

Implements reactor.netty5.http.Http2SettingsSpec.Builder.headerTableSize.

Doc from reactor.netty5.http.Http2SettingsSpec.Builder.headerTableSize.

Sets the SETTINGS_HEADER_TABLE_SIZE value.

Parameters
headerTableSize:long

the SETTINGS_HEADER_TABLE_SIZE value

Returns:Http2SettingsSpec.Builder

this

Annotations
@Override
initialWindowSizeback to summary
public Http2SettingsSpec.Builder initialWindowSize(int initialWindowSize)

Implements reactor.netty5.http.Http2SettingsSpec.Builder.initialWindowSize.

Doc from reactor.netty5.http.Http2SettingsSpec.Builder.initialWindowSize.

Sets the SETTINGS_INITIAL_WINDOW_SIZE value.

Parameters
initialWindowSize:int

the SETTINGS_INITIAL_WINDOW_SIZE value

Returns:Http2SettingsSpec.Builder

this

Annotations
@Override
maxConcurrentStreamsback to summary
public Http2SettingsSpec.Builder maxConcurrentStreams(long maxConcurrentStreams)

Implements reactor.netty5.http.Http2SettingsSpec.Builder.maxConcurrentStreams.

Doc from reactor.netty5.http.Http2SettingsSpec.Builder.maxConcurrentStreams.

Sets the SETTINGS_MAX_CONCURRENT_STREAMS value.

Parameters
maxConcurrentStreams:long

the SETTINGS_MAX_CONCURRENT_STREAMS value

Returns:Http2SettingsSpec.Builder

this

Annotations
@Override
maxFrameSizeback to summary
public Http2SettingsSpec.Builder maxFrameSize(int maxFrameSize)

Implements reactor.netty5.http.Http2SettingsSpec.Builder.maxFrameSize.

Doc from reactor.netty5.http.Http2SettingsSpec.Builder.maxFrameSize.

Sets the SETTINGS_MAX_FRAME_SIZE value.

Parameters
maxFrameSize:int

the SETTINGS_MAX_FRAME_SIZE value

Returns:Http2SettingsSpec.Builder

this

Annotations
@Override
maxHeaderListSizeback to summary
public Http2SettingsSpec.Builder maxHeaderListSize(long maxHeaderListSize)

Implements reactor.netty5.http.Http2SettingsSpec.Builder.maxHeaderListSize.

Doc from reactor.netty5.http.Http2SettingsSpec.Builder.maxHeaderListSize.

Sets the SETTINGS_MAX_HEADER_LIST_SIZE value.

Parameters
maxHeaderListSize:long

the SETTINGS_MAX_HEADER_LIST_SIZE value

Returns:Http2SettingsSpec.Builder

this

Annotations
@Override
reactor.netty5.http back to summary

public Interface Http2SettingsSpec.Builder

Known Direct Implementers
reactor.netty5.http.Http2SettingsSpec.Build

Method Summary

Modifier and TypeMethod and Description
public Http2SettingsSpec

Returns:

a new Http2SettingsSpec
build
()

Build a new Http2SettingsSpec

public Http2SettingsSpec.Builder

Returns:

this
headerTableSize
(long
the SETTINGS_HEADER_TABLE_SIZE value
headerTableSize
)

Sets the SETTINGS_HEADER_TABLE_SIZE value.

public Http2SettingsSpec.Builder

Returns:

this
initialWindowSize
(int
the SETTINGS_INITIAL_WINDOW_SIZE value
initialWindowSize
)

Sets the SETTINGS_INITIAL_WINDOW_SIZE value.

public Http2SettingsSpec.Builder

Returns:

this
maxConcurrentStreams
(long
the SETTINGS_MAX_CONCURRENT_STREAMS value
maxConcurrentStreams
)

Sets the SETTINGS_MAX_CONCURRENT_STREAMS value.

public Http2SettingsSpec.Builder

Returns:

this
maxFrameSize
(int
the SETTINGS_MAX_FRAME_SIZE value
maxFrameSize
)

Sets the SETTINGS_MAX_FRAME_SIZE value.

public Http2SettingsSpec.Builder

Returns:

this
maxHeaderListSize
(long
the SETTINGS_MAX_HEADER_LIST_SIZE value
maxHeaderListSize
)

Sets the SETTINGS_MAX_HEADER_LIST_SIZE value.

Method Detail

buildback to summary
public Http2SettingsSpec build()

Build a new Http2SettingsSpec

Returns:Http2SettingsSpec

a new Http2SettingsSpec

headerTableSizeback to summary
public Http2SettingsSpec.Builder headerTableSize(long headerTableSize)

Sets the SETTINGS_HEADER_TABLE_SIZE value.

Parameters
headerTableSize:long

the SETTINGS_HEADER_TABLE_SIZE value

Returns:Http2SettingsSpec.Builder

this

initialWindowSizeback to summary
public Http2SettingsSpec.Builder initialWindowSize(int initialWindowSize)

Sets the SETTINGS_INITIAL_WINDOW_SIZE value.

Parameters
initialWindowSize:int

the SETTINGS_INITIAL_WINDOW_SIZE value

Returns:Http2SettingsSpec.Builder

this

maxConcurrentStreamsback to summary
public Http2SettingsSpec.Builder maxConcurrentStreams(long maxConcurrentStreams)

Sets the SETTINGS_MAX_CONCURRENT_STREAMS value.

Parameters
maxConcurrentStreams:long

the SETTINGS_MAX_CONCURRENT_STREAMS value

Returns:Http2SettingsSpec.Builder

this

maxFrameSizeback to summary
public Http2SettingsSpec.Builder maxFrameSize(int maxFrameSize)

Sets the SETTINGS_MAX_FRAME_SIZE value.

Parameters
maxFrameSize:int

the SETTINGS_MAX_FRAME_SIZE value

Returns:Http2SettingsSpec.Builder

this

maxHeaderListSizeback to summary
public Http2SettingsSpec.Builder maxHeaderListSize(long maxHeaderListSize)

Sets the SETTINGS_MAX_HEADER_LIST_SIZE value.

Parameters
maxHeaderListSize:long

the SETTINGS_MAX_HEADER_LIST_SIZE value

Returns:Http2SettingsSpec.Builder

this