| Modifier and Type | Method and Description |
|---|---|
MultiEndpointPool.Builder<E> |
MultiEndpointPool.Builder.asyncPollTimeout(long asyncPollTimeout,
TimeUnit timeunit)
Sets the max time consumer will wait for a
Connection to become available. |
static <T> MultiEndpointPool.Builder<T> |
MultiEndpointPool.builder(Class<T> endpointType)
Returns single endpoint pool
MultiEndpointPool.Builder. |
MultiEndpointPool.Builder<E> |
MultiEndpointPool.Builder.connectionTTL(long connectionTTL,
TimeUnit timeunit)
Sets the max amount of time a
Connection could be associated with the pool. |
MultiEndpointPool.Builder<E> |
MultiEndpointPool.Builder.connectorHandler(org.glassfish.grizzly.ConnectorHandler<E> defaultConnectorHandler)
Deprecated.
Endpoint must always know how to establish the connection |
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(org.glassfish.grizzly.utils.DelayedExecutor delayedExecutor)
Sets the custom
DelayedExecutor to be used for keep-alive and reconnect mechanisms. |
MultiEndpointPool.Builder<E> |
MultiEndpointPool.Builder.endpointPoolCustomizer(MultiEndpointPool.EndpointPoolCustomizer<E> endpointPoolCustomizer)
Set the customizer, which will be used to modify a specific endpoint pool settings and overwrite the default settings
assigned by this MultiEndpointPool.
|
MultiEndpointPool.Builder<E> |
MultiEndpointPool.Builder.failFastWhenMaxSizeReached(boolean failFastWhenMaxSizeReached)
if true, the "take" method will fail fast if there is no free connection in the pool and max pool size is
reached.
|
MultiEndpointPool.Builder<E> |
MultiEndpointPool.Builder.keepAliveCheckInterval(long keepAliveCheckInterval,
TimeUnit timeunit)
Sets the interval, which specifies how often the pool will perform idle
Connections 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
Connections to a single endpoint the pool is allowed to have. |
MultiEndpointPool.Builder<E> |
MultiEndpointPool.Builder.maxConnectionsTotal(int maxConnectionsTotal)
Sets the maximum number of
Connections 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 © 2017–2021 Oracle Corporation. All rights reserved.