Package | Description |
---|---|
org.glassfish.grizzly.connectionpool |
Modifier and Type | Method and Description |
---|---|
static <T> SingleEndpointPool.Builder<T> |
SingleEndpointPool.builder(Class<T> endpointType)
Returns single endpoint pool
SingleEndpointPool.Builder . |
SingleEndpointPool.Builder<E> |
SingleEndpointPool.Builder.connectorHandler(ConnectorHandler<E> connectorHandler)
Sets the
ConnectorHandler used to establish new Connection s. |
SingleEndpointPool.Builder<E> |
SingleEndpointPool.Builder.connectTimeout(long connectTimeout,
TimeUnit timeunit)
Sets the max time
Connection connect operation may take. |
SingleEndpointPool.Builder<E> |
SingleEndpointPool.Builder.corePoolSize(int corePoolSize)
Sets the number of
Connection s, kept in the pool,
that are immune to keep-alive mechanism. |
SingleEndpointPool.Builder<E> |
SingleEndpointPool.Builder.delayExecutor(DelayedExecutor delayedExecutor)
Sets the custom
DelayedExecutor to be used for keep-alive and
reconnect mechanisms. |
SingleEndpointPool.Builder<E> |
SingleEndpointPool.Builder.endpointAddress(E endpointAddress)
Sets the endpoint address.
|
SingleEndpointPool.Builder<E> |
SingleEndpointPool.Builder.keepAliveCheckInterval(long keepAliveCheckInterval,
TimeUnit timeunit)
Sets the interval, which specifies how often the pool will perform
idle
Connection s check. |
SingleEndpointPool.Builder<E> |
SingleEndpointPool.Builder.keepAliveTimeout(long keepAliveTimeout,
TimeUnit timeunit)
Sets the maximum number of milliseconds an idle
Connection
will be kept in the pool. |
SingleEndpointPool.Builder<E> |
SingleEndpointPool.Builder.localEndpointAddress(E localEndpointAddress)
Sets the local endpoint address.
|
SingleEndpointPool.Builder<E> |
SingleEndpointPool.Builder.maxPoolSize(int maxPoolSize)
Sets the max number of
Connection s kept by this pool. |
SingleEndpointPool.Builder<E> |
SingleEndpointPool.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.
|
SingleEndpointPool.Builder<E> |
SingleEndpointPool.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.