Uses of Class
org.glassfish.grizzly.connectionpool.MultiEndpointPool.Builder
-
Uses of MultiEndpointPool.Builder in org.glassfish.grizzly.connectionpool
Methods in org.glassfish.grizzly.connectionpool that return MultiEndpointPool.BuilderModifier and TypeMethodDescriptionMultiEndpointPool.Builder.asyncPollTimeout(long asyncPollTimeout, TimeUnit timeunit) Sets the max time consumer will wait for aConnectionto become available.static <T> MultiEndpointPool.Builder<T>Returns single endpoint poolMultiEndpointPool.Builder.MultiEndpointPool.Builder.connectionTTL(long connectionTTL, TimeUnit timeunit) Sets the max amount of time aConnectioncould be associated with the pool.MultiEndpointPool.Builder.connectorHandler(org.glassfish.grizzly.ConnectorHandler<E> defaultConnectorHandler) Deprecated.MultiEndpointPool.Builder.connectTimeout(long connectTimeout, TimeUnit timeunit) Sets the max timeConnectionconnect operation may take.MultiEndpointPool.Builder.delayExecutor(org.glassfish.grizzly.utils.DelayedExecutor delayedExecutor) Sets the customDelayedExecutorto be used for keep-alive and reconnect mechanisms.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.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.keepAliveCheckInterval(long keepAliveCheckInterval, TimeUnit timeunit) Sets the interval, which specifies how often the pool will perform idleConnections check.MultiEndpointPool.Builder.keepAliveTimeout(long keepAliveTimeout, TimeUnit timeunit) Sets the maximum number of milliseconds an idleConnectionwill be kept in the pool.MultiEndpointPool.Builder.maxConnectionsPerEndpoint(int maxConnectionsPerEndpoint) Sets the maximum number ofConnections to a single endpoint the pool is allowed to have.MultiEndpointPool.Builder.maxConnectionsTotal(int maxConnectionsTotal) Sets the maximum number ofConnections the pool is allowed to have.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.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.
Endpointmust always know how to establish the connection