Class AbstractHTTP2ServerConnectionFactory
java.lang.Object
org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.util.component.ContainerLifeCycle
org.eclipse.jetty.server.AbstractConnectionFactory
org.eclipse.jetty.http2.server.AbstractHTTP2ServerConnectionFactory
- All Implemented Interfaces:
 ConnectionFactory, Container, Destroyable, Dumpable, Dumpable.DumpableContainer, LifeCycle
- Direct Known Subclasses:
 HTTP2ServerConnectionFactory, RawHTTP2ServerConnectionFactory
@ManagedObject
public abstract class AbstractHTTP2ServerConnectionFactory
extends AbstractConnectionFactory
- 
Nested Class Summary
Nested classes/interfaces inherited from class AbstractLifeCycle
AbstractLifeCycle.AbstractLifeCycleListener, AbstractLifeCycle.StopExceptionNested classes/interfaces inherited from interface ConnectionFactory
ConnectionFactory.Configuring, ConnectionFactory.Detecting, ConnectionFactory.UpgradingNested classes/interfaces inherited from interface Container
Container.InheritedListener, Container.ListenerNested classes/interfaces inherited from interface Dumpable
Dumpable.DumpableContainer, Dumpable.DumpAppendableNested classes/interfaces inherited from interface LifeCycle
LifeCycle.Listener - 
Field Summary
 - 
Constructor Summary
ConstructorsModifierConstructorDescriptionAbstractHTTP2ServerConnectionFactory(HttpConfiguration httpConfiguration) protectedAbstractHTTP2ServerConnectionFactory(HttpConfiguration httpConfiguration, String... protocols)  - 
Method Summary
Modifier and TypeMethodDescriptionintintintintintintintintintlongbooleanbooleanbooleannewConnection(Connector connector, EndPoint endPoint) Creates a newConnectionwith the given parametersprotected abstract ServerSessionListenernewSessionListener(Connector connector, EndPoint endPoint) voidsetConnectProtocolEnabled(boolean connectProtocolEnabled) voidsetFlowControlStrategyFactory(FlowControlStrategy.Factory flowControlStrategyFactory) voidsetInitialSessionRecvWindow(int initialSessionRecvWindow) voidsetInitialStreamRecvWindow(int initialStreamRecvWindow) voidsetInputBufferSize(int size) voidsetMaxConcurrentStreams(int maxConcurrentStreams) voidsetMaxDecoderTableCapacity(int maxDecoderTableCapacity) voidsetMaxEncoderTableCapacity(int maxEncoderTableCapacity) Sets the limit for the encoder HPACK dynamic table capacity.voidsetMaxFrameSize(int maxFrameSize) voidsetMaxHeaderBlockFragment(int maxHeaderBlockFragment) voidsetMaxSettingsKeys(int maxSettingsKeys) voidsetRateControlFactory(RateControl.Factory rateControlFactory) Sets the factory that creates a per-connection RateControl object.voidsetStreamIdleTimeout(long streamIdleTimeout) Sets the HTTP/2 stream idle timeout.voidsetUseInputDirectByteBuffers(boolean useInputDirectByteBuffers) voidsetUseOutputDirectByteBuffers(boolean useOutputDirectByteBuffers) Methods inherited from class AbstractConnectionFactory
configure, findNextProtocol, findNextProtocol, getFactories, getProtocol, getProtocols, toStringMethods inherited from class ContainerLifeCycle
addBean, addBean, addEventListener, addManaged, contains, destroy, doStart, doStop, dump, dump, dump, dumpObjects, dumpStdErr, getBean, getBeans, getBeans, getContainedBeans, getContainedBeans, installBean, installBean, isAuto, isManaged, isUnmanaged, manage, removeBean, removeBeans, removeEventListener, setBeans, start, stop, unmanage, updateBean, updateBean, updateBeans, updateBeansMethods inherited from class AbstractLifeCycle
getEventListeners, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, setEventListeners, start, stopMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Container
getCachedBeans, getEventListenersMethods inherited from interface Dumpable.DumpableContainer
isDumpable 
- 
Constructor Details
- 
AbstractHTTP2ServerConnectionFactory
 - 
AbstractHTTP2ServerConnectionFactory
protected AbstractHTTP2ServerConnectionFactory(@Name("config") HttpConfiguration httpConfiguration, @Name("protocols") String... protocols)  
 - 
 - 
Method Details
- 
setInputBufferSize
public void setInputBufferSize(int size) - Overrides:
 setInputBufferSizein classAbstractConnectionFactory
 - 
getInputBufferSize
public int getInputBufferSize()- Overrides:
 getInputBufferSizein classAbstractConnectionFactory
 - 
getMaxEncoderTableCapacity
@ManagedAttribute("The HPACK encoder dynamic table maximum capacity") public int getMaxEncoderTableCapacity() - 
setMaxEncoderTableCapacity
public void setMaxEncoderTableCapacity(int maxEncoderTableCapacity) Sets the limit for the encoder HPACK dynamic table capacity.
Setting this value to
0disables the use of the dynamic table.- Parameters:
 maxEncoderTableCapacity- The HPACK encoder dynamic table maximum capacity
 - 
getMaxDecoderTableCapacity
@ManagedAttribute("The HPACK decoder dynamic table maximum capacity") public int getMaxDecoderTableCapacity() - 
setMaxDecoderTableCapacity
public void setMaxDecoderTableCapacity(int maxDecoderTableCapacity)  - 
getInitialSessionRecvWindow
@ManagedAttribute("The initial size of session's flow control receive window") public int getInitialSessionRecvWindow() - 
setInitialSessionRecvWindow
public void setInitialSessionRecvWindow(int initialSessionRecvWindow)  - 
getInitialStreamRecvWindow
@ManagedAttribute("The initial size of stream's flow control receive window") public int getInitialStreamRecvWindow() - 
setInitialStreamRecvWindow
public void setInitialStreamRecvWindow(int initialStreamRecvWindow)  - 
getMaxConcurrentStreams
@ManagedAttribute("The max number of concurrent streams per session") public int getMaxConcurrentStreams() - 
setMaxConcurrentStreams
public void setMaxConcurrentStreams(int maxConcurrentStreams)  - 
getMaxHeaderBlockFragment
 - 
setMaxHeaderBlockFragment
public void setMaxHeaderBlockFragment(int maxHeaderBlockFragment)  - 
getFlowControlStrategyFactory
 - 
setFlowControlStrategyFactory
 - 
getStreamIdleTimeout
 - 
setStreamIdleTimeout
public void setStreamIdleTimeout(long streamIdleTimeout) Sets the HTTP/2 stream idle timeout.
Value
-1disables the idle timeout, value0implies using the default idle timeout, positive values specify the idle timeout in milliseconds.- Parameters:
 streamIdleTimeout- the idle timeout in milliseconds,0for the default,-1to disable the idle timeout
 - 
getMaxFrameSize
 - 
setMaxFrameSize
public void setMaxFrameSize(int maxFrameSize)  - 
getMaxSettingsKeys
 - 
setMaxSettingsKeys
public void setMaxSettingsKeys(int maxSettingsKeys)  - 
isConnectProtocolEnabled
@ManagedAttribute("Whether CONNECT requests supports a protocol") public boolean isConnectProtocolEnabled() - 
setConnectProtocolEnabled
public void setConnectProtocolEnabled(boolean connectProtocolEnabled)  - 
getRateControlFactory
- Returns:
 - the factory that creates RateControl objects
 
 - 
setRateControlFactory
Sets the factory that creates a per-connection RateControl object.
- Parameters:
 rateControlFactory- the factory that creates RateControl objects
 - 
isUseInputDirectByteBuffers
@ManagedAttribute("Whether to use direct ByteBuffers for reading") public boolean isUseInputDirectByteBuffers() - 
setUseInputDirectByteBuffers
public void setUseInputDirectByteBuffers(boolean useInputDirectByteBuffers)  - 
isUseOutputDirectByteBuffers
@ManagedAttribute("Whether to use direct ByteBuffers for writing") public boolean isUseOutputDirectByteBuffers() - 
setUseOutputDirectByteBuffers
public void setUseOutputDirectByteBuffers(boolean useOutputDirectByteBuffers)  - 
getHttpConfiguration
 - 
newSettings
 - 
newConnection
Description copied from interface:ConnectionFactoryCreates a new
Connectionwith the given parameters- Parameters:
 connector- TheConnectorcreating this connectionendPoint- theEndPointassociated with the connection- Returns:
 - a new 
Connection 
 - 
newSessionListener
 
 -