Package org.eclipse.jetty.websocket.core
Class Configuration.ConfigurationCustomizer
java.lang.Object
org.eclipse.jetty.websocket.core.Configuration.ConfigurationCustomizer
- All Implemented Interfaces:
Configuration
,Configuration.Customizer
- Direct Known Subclasses:
CoreSession.Empty
,JettyWebSocketFrameHandlerMetadata
,WebSocketNegotiator.AbstractNegotiator
- Enclosing interface:
- Configuration
public static class Configuration.ConfigurationCustomizer
extends Object
implements Configuration, Configuration.Customizer
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.jetty.websocket.core.Configuration
Configuration.ConfigurationCustomizer, Configuration.Customizer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
customize
(Configuration configurable) Get the Idle Timeoutint
long
long
int
Get the maximum number of data frames allowed to be waiting to be sent at any one time.long
int
Get the Write Timeoutboolean
void
setAutoFragment
(boolean autoFragment) void
setIdleTimeout
(Duration timeout) Set the Idle Timeout.void
setInputBufferSize
(int inputBufferSize) void
setMaxBinaryMessageSize
(long maxBinaryMessageSize) void
setMaxFrameSize
(long maxFrameSize) void
setMaxOutgoingFrames
(int maxOutgoingFrames) Set the maximum number of data frames allowed to be waiting to be sent at any one time.void
setMaxTextMessageSize
(long maxTextMessageSize) void
setOutputBufferSize
(int outputBufferSize) void
setWriteTimeout
(Duration timeout) Set the Write Timeout.toString()
-
Constructor Details
-
ConfigurationCustomizer
public ConfigurationCustomizer()
-
-
Method Details
-
getIdleTimeout
Description copied from interface:Configuration
Get the Idle Timeout- Specified by:
getIdleTimeout
in interfaceConfiguration
- Returns:
- the idle timeout
-
getWriteTimeout
Description copied from interface:Configuration
Get the Write Timeout- Specified by:
getWriteTimeout
in interfaceConfiguration
- Returns:
- the write timeout
-
setIdleTimeout
Description copied from interface:Configuration
Set the Idle Timeout.- Specified by:
setIdleTimeout
in interfaceConfiguration
- Parameters:
timeout
- the timeout duration (timeout <= 0 implies an infinite timeout)
-
setWriteTimeout
Description copied from interface:Configuration
Set the Write Timeout.- Specified by:
setWriteTimeout
in interfaceConfiguration
- Parameters:
timeout
- the timeout duration (timeout <= 0 implies an infinite timeout)
-
isAutoFragment
public boolean isAutoFragment()- Specified by:
isAutoFragment
in interfaceConfiguration
-
setAutoFragment
public void setAutoFragment(boolean autoFragment) - Specified by:
setAutoFragment
in interfaceConfiguration
-
getMaxFrameSize
public long getMaxFrameSize()- Specified by:
getMaxFrameSize
in interfaceConfiguration
-
setMaxFrameSize
public void setMaxFrameSize(long maxFrameSize) - Specified by:
setMaxFrameSize
in interfaceConfiguration
-
getOutputBufferSize
public int getOutputBufferSize()- Specified by:
getOutputBufferSize
in interfaceConfiguration
-
setOutputBufferSize
public void setOutputBufferSize(int outputBufferSize) - Specified by:
setOutputBufferSize
in interfaceConfiguration
-
getInputBufferSize
public int getInputBufferSize()- Specified by:
getInputBufferSize
in interfaceConfiguration
-
setInputBufferSize
public void setInputBufferSize(int inputBufferSize) - Specified by:
setInputBufferSize
in interfaceConfiguration
-
getMaxBinaryMessageSize
public long getMaxBinaryMessageSize()- Specified by:
getMaxBinaryMessageSize
in interfaceConfiguration
-
setMaxBinaryMessageSize
public void setMaxBinaryMessageSize(long maxBinaryMessageSize) - Specified by:
setMaxBinaryMessageSize
in interfaceConfiguration
-
getMaxTextMessageSize
public long getMaxTextMessageSize()- Specified by:
getMaxTextMessageSize
in interfaceConfiguration
-
setMaxTextMessageSize
public void setMaxTextMessageSize(long maxTextMessageSize) - Specified by:
setMaxTextMessageSize
in interfaceConfiguration
-
getMaxOutgoingFrames
public int getMaxOutgoingFrames()Description copied from interface:Configuration
Get the maximum number of data frames allowed to be waiting to be sent at any one time. The default value is -1, this indicates there is no limit on how many frames can be queued to be sent by the implementation. If the limit is exceeded, subsequent frames sent are failed with aWritePendingException
but the connection is not failed and will remain open.- Specified by:
getMaxOutgoingFrames
in interfaceConfiguration
- Returns:
- the max number of frames.
-
setMaxOutgoingFrames
public void setMaxOutgoingFrames(int maxOutgoingFrames) Description copied from interface:Configuration
Set the maximum number of data frames allowed to be waiting to be sent at any one time. The default value is -1, this indicates there is no limit on how many frames can be queued to be sent by the implementation. If the limit is exceeded, subsequent frames sent are failed with aWritePendingException
but the connection is not failed and will remain open.- Specified by:
setMaxOutgoingFrames
in interfaceConfiguration
- Parameters:
maxOutgoingFrames
- the max number of frames.
-
customize
- Specified by:
customize
in interfaceConfiguration.Customizer
-
toString
-