-
Maps endpoint -to- SingleEndpointPool
Endpoint.Factory.create(E targetAddress,
E localAddress,
org.glassfish.grizzly.ConnectorHandler<E> connectorHandler)
Endpoint.Factory.create(E targetAddress,
org.glassfish.grizzly.ConnectorHandler<E> connectorHandler)
Endpoint.Factory.create(Object id,
E targetAddress,
E localAddress,
org.glassfish.grizzly.ConnectorHandler<E> connectorHandler)
boolean
MultiEndpointPool.attach(Endpoint<E> endpoint,
org.glassfish.grizzly.Connection connection)
Attaches "foreign" Connection to the pool.
void
Closes specific endpoint associated pool and releases its resources.
void
Sets the endpoint information.
org.glassfish.grizzly.Connection
org.glassfish.grizzly.GrizzlyFuture<org.glassfish.grizzly.Connection>
Obtains a Connection to the specified endpoint from the pool in
non-blocking/asynchronous fashion.
void
MultiEndpointPool.take(Endpoint<E> endpoint,
org.glassfish.grizzly.CompletionHandler<org.glassfish.grizzly.Connection> completionHandler)
Obtains a Connection to the specified endpoint from the pool
in non-blocking/asynchronous fashion.
protected
Builder(Endpoint<E> endpoint,
org.glassfish.grizzly.ConnectorHandler<E> connectorHandler,
E endpointAddress,
E localEndpointAddress,
int corePoolSize,
int maxPoolSize,
org.glassfish.grizzly.utils.DelayedExecutor delayedExecutor,
long connectTimeoutMillis,
long reconnectDelayMillis,
int maxReconnectAttempts,
long asyncPollTimeoutMillis,
long connectionTTLMillis,
boolean failFastWhenMaxSizeReached,
long keepAliveTimeoutMillis,
long keepAliveCheckIntervalMillis)
protected
SingleEndpointPool(Endpoint<E> endpoint,
int corePoolSize,
int maxPoolSize,
org.glassfish.grizzly.utils.DelayedExecutor.DelayQueue<SingleEndpointPool.ConnectTimeoutTask> connectTimeoutQueue,
org.glassfish.grizzly.utils.DelayedExecutor.DelayQueue<SingleEndpointPool.ReconnectTask> reconnectQueue,
org.glassfish.grizzly.utils.DelayedExecutor.DelayQueue<SingleEndpointPool.KeepAliveCleanerTask> keepAliveCleanerQueue,
org.glassfish.grizzly.utils.DelayedExecutor.DelayQueue<Link<SingleEndpointPool.AsyncPoll>> asyncPollTimeoutQueue,
org.glassfish.grizzly.utils.DelayedExecutor.DelayQueue<ConnectionInfo> connectionTTLQueue,
long connectTimeoutMillis,
long keepAliveTimeoutMillis,
long keepAliveCheckIntervalMillis,
long reconnectDelayMillis,
int maxReconnectAttempts,
long asyncPollTimeoutMillis,
long connectionTTLMillis,
boolean failFastWhenMaxSizeReached)
Constructs SingleEndpointPool instance.
protected
SingleEndpointPool(Endpoint<E> endpoint,
int corePoolSize,
int maxPoolSize,
org.glassfish.grizzly.utils.DelayedExecutor delayedExecutor,
long connectTimeoutMillis,
long keepAliveTimeoutMillis,
long keepAliveCheckIntervalMillis,
long reconnectDelayMillis,
int maxReconnectAttempts,
long asyncPollTimeoutMillis,
long connectionTTLMillis,
boolean failFastWhenMaxSizeReached)
Constructs SingleEndpointPool instance.