Package | Description |
---|---|
org.glassfish.grizzly.connectionpool |
Modifier and Type | Method and Description |
---|---|
static <T> MultiEndpointPool.Builder<T> |
MultiEndpointPool.builder(Class<T> endpointType)
Returns single endpoint pool
MultiEndpointPool.Builder . |
MultiEndpointPool.Builder<E> |
MultiEndpointPool.Builder.connectorHandler(ConnectorHandler<E> defaultConnectorHandler)
Sets the default
ConnectorHandler to be used to establish new
Connection s if none is specified by EndpointKey . |
MultiEndpointPool.Builder<E> |
MultiEndpointPool.Builder.connectTimeout(long connectTimeout,
TimeUnit timeunit)
Sets the max time
Connection connect operation may take. |
MultiEndpointPool.Builder<E> |
MultiEndpointPool.Builder.delayExecutor(DelayedExecutor delayedExecutor)
Sets the custom
DelayedExecutor to be used for keep-alive and
reconnect mechanisms. |
MultiEndpointPool.Builder<E> |
MultiEndpointPool.Builder.keepAliveCheckInterval(long keepAliveCheckInterval,
TimeUnit timeunit)
Sets the interval, which specifies how often the pool will perform
idle
Connection s check. |
MultiEndpointPool.Builder<E> |
MultiEndpointPool.Builder.keepAliveTimeout(long keepAliveTimeout,
TimeUnit timeunit)
Sets the maximum number of milliseconds an idle
Connection
will be kept in the pool. |
MultiEndpointPool.Builder<E> |
MultiEndpointPool.Builder.maxConnectionsPerEndpoint(int maxConnectionsPerEndpoint)
Sets the maximum number of
Connection s to a single endpoint
the pool is allowed to have. |
MultiEndpointPool.Builder<E> |
MultiEndpointPool.Builder.maxConnectionsTotal(int maxConnectionsTotal)
Sets the maximum number of
Connection s the pool is allowed to have. |
MultiEndpointPool.Builder<E> |
MultiEndpointPool.Builder.maxReconnectAttempts(int maxReconnectAttempts)
If the reconnect mechanism is enabled, then this property will affect
how many times a reconnection attempt can be made consecutively before
a failure is flagged.
|
MultiEndpointPool.Builder<E> |
MultiEndpointPool.Builder.reconnectDelay(long reconnectDelay,
TimeUnit timeunit)
Sets the delay to be used before the pool will repeat the attempt to
connect to the endpoint after previous connect operation had failed.
|
Copyright © 2015 Oracle Corporation. All rights reserved.