| Modifier and Type | Class and Description |
|---|---|
| protected static enum | |
| public static interface |
| Modifier and Type | Field and Description |
|---|---|
| private int | acceptCount
Allows the server developer to specify the acceptCount (backlog) that should be used for server sockets. |
| protected Acceptor | acceptor
Thread used to accept new connections and pass them to worker threads. |
| protected int | acceptorThreadPriority
Priority of the acceptor threads. |
| private InetAddress | address
Address for the server socket. |
| protected HashMap | attributes
Attributes provide a way for configuration to be passed to sub-components
without the |
| private boolean | bindOnInit
Controls when the Endpoint binds the port. |
| private volatile AbstractEndpoint. | |
| private volatile LimitLatch | connectionLimitLatch
counter for nr of connections handled by an endpoint |
| protected Map | connections
Map holding all current connections keyed with the sockets. |
| private boolean | daemon
The default is true - the created threads will be in daemon mode. |
| private String | |
| private String | domain
Name of domain to use for JMX registration. |
| private Executor | executor
External Executor based thread pool. |
| private long | executorTerminationTimeoutMillis
Time to wait for the internal executor (if used) to terminate when the endpoint is stopped in milliseconds. |
| private AbstractEndpoint. | handler
Handling of accepted sockets. |
| protected volatile boolean | internalExecutor
Are we using an internal executor |
| private Integer | keepAliveTimeout
Keepalive timeout, if not set the soTimeout is used. |
| private int | |
| private int | maxKeepAliveRequests
Max keep alive requests |
| private int | maxThreads
Maximum amount of worker threads. |
| private int | |
| private String | name
Name of the thread pool, which will be used for naming child threads. |
| protected final List | |
| private ObjectName | |
| protected volatile boolean | paused
Will be set to true whenever the endpoint is paused. |
| private int | port
Server socket port. |
| private int | |
| protected SynchronizedStack | processorCache
Cache for SocketProcessor objects |
| protected volatile boolean | running
Running state of the endpoint. |
| protected static final StringManager | |
| protected final SocketProperties | socketProperties
Socket properties |
| private boolean | SSLEnabled
SSL engine. |
| protected ConcurrentMap | |
| protected int | threadPriority
Priority of the worker threads. |
| private boolean | useAsyncIO
Expose asynchronous IO capability. |
| private boolean | useSendfile
Has the user requested that send file be used where possible? |
| private boolean | |
| private ScheduledExecutorService | utilityExecutor
External Executor based thread pool for utility tasks. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | addSslHostConfig(SSLHostConfig
The configuration to add sslHostConfig)Add the given SSL Host configuration. |
| public void | addSslHostConfig(SSLHostConfig
The configuration to add sslHostConfig, boolean If replace)true replacement of an existing
configuration is permitted, otherwise any such
attempted replacement will trigger an exceptionAdd the given SSL Host configuration, optionally replacing the existing configuration for the given host. |
| public final long | Returns: The wait time, if any remaining when the method returnedThe maximum time to wait in milliseconds for the
client connections to close. waitMillis)Wait for the client connections to the server to close gracefully. |
| public abstract void | |
| private void | |
| public final void | closeServerSocketGraceful()
Close the server socket (to prevent further connections) if the server
socket was originally bound on |
| protected void | closeSocket(U
The newly accepted socket socket)Close the socket when the connection has to be immediately closed when an error occurs while configuring the accepted socket or trying to dispatch it for processing. |
| protected long | |
| protected void | |
| public void | |
| protected abstract SocketProcessorBase | |
| protected abstract void | createSSLContext(SSLHostConfig
The SSLHostConfig for which the SSLContext should be
created sslHostConfig)Create the SSLContext for the given SSLHostConfig. |
| public final void | |
| protected abstract void | |
| protected void | |
| protected abstract void | |
| public SSLHostConfig[] | |
| protected String | |
| public int | |
| public int | |
| public InetAddress | |
| public Object | Returns: The value of the specified propertyThe name of the property for which the value should be
retrieved key)Used by sub-components to retrieve configuration information. |
| public boolean | |
| protected AbstractEndpoint. | |
| public long | Returns: The countReturn the current count of connections handled by this endpoint, if the
connections are counted (which happens when the maximum count of
connections is limited), or |
| public int | Returns: The current socket linger time for sockets created by this endpointSocket linger. |
| public Set | Returns: A set with the open socket wrappersGet a set with the current open connections. |
| public int | Returns: The current socket timeout for sockets created by this endpointSocket timeout. |
| public int | Returns: the amount of threads that are managed by the poolReturn the amount of threads that are managed by the pool. |
| public int | Returns: the amount of threads that are in useReturn the amount of threads that are in use |
| public boolean | |
| public String | Returns: The host name for the default SSL configuration for this endpoint - always in lower case.
|
| protected boolean | Returns: Alwaysfalse
Deprecated
This code will be removed in Tomcat 11 onwards
Always returns |
| public String | |
| public Executor | |
| public long | |
| public AbstractEndpoint. | |
| public String | Returns: the idThe default behavior is to identify connectors uniquely with address and port. |
| public int | |
| protected abstract InetSocketAddress | Returns: The network address that the server socket is listening on or null if the server socket is not currently bound.Obtain the network address the server socket is bound to. |
| public final int | |
| protected abstract Log | |
| protected Log | |
| public int | |
| public int | |
| public int | |
| public int | |
| private int | |
| public String | |
| public int | |
| public int | |
| public int | |
| public String | |
| public SocketProperties | |
| protected SSLHostConfig | Returns: The SSLHostConfig for the given host name.Host name - must be in lower case sniHostName)Look up the SSLHostConfig for the given host name. |
| public boolean | Returns: The current TCP no delay setting for sockets created by this endpointSocket TCP no delay. |
| public int | |
| private static InetSocketAddress | |
| public boolean | |
| public boolean | |
| public boolean | |
| public ScheduledExecutorService | |
| public boolean | |
| public final void | |
| protected LimitLatch | |
| public boolean | |
| public boolean | |
| public boolean | |
| protected void | |
| public void | |
| public boolean | Returns: if processing was triggered successfullyThe socket wrapper to process socketWrapper, SocketEvent The socket event to be processed event, boolean Should the processing be performed on a new
container thread dispatch)Process the given SocketWrapper with the given status. |
| private void | |
| private void | |
| protected void | releaseSSLContext(SSLHostConfig
The SSLHostConfig for which the SSLContext should be
released sslHostConfig)Release the SSLContext, if any, associated with the SSLHostConfig. |
| public void | reloadSslHostConfig(String
The SSL host for which the configuration should be
reloaded. This must match a current SSL host hostName)Re-read the configuration files for the SSL host and replace the existing SSL configuration with the updated settings. |
| public void | reloadSslHostConfigs()
Re-read the configuration files for all SSL hosts and replace the existing SSL configuration with the updated settings. |
| public SSLHostConfig | Returns: The SSL host configuration that was removed, if anyThe host name associated with the SSL host configuration
to remove hostName)Removes the SSL host configuration for the given host name, if such a configuration exists. |
| public void | |
| protected abstract U | |
| public void | |
| public void | |
| public void | |
| public void | setAttribute(String
Name of property to set name, Object The value to set the property to value)Generic property setter called when a property for which a specific
setter already exists within the
|
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public boolean | |
| protected abstract boolean | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public final void | |
| protected void | |
| public abstract void | |
| public final void | |
| public abstract void | |
| public static long | |
| public abstract void | |
| protected void | |
| private void |