Top Description Fields Constructors Methods
io.vertx.core.net.impl.pool

public Class ConnectionManager<K, C>

extends Object
Class Inheritance
Imports
io.vertx.core.AsyncResult, .Handler, io.vertx.core.impl.ContextInternal, java.util.*, java.util.concurrent.ConcurrentHashMap, java.util.function.Consumer

The connection manager associates remote hosts with pools, it also tracks all connections so they can be closed when the manager is closed.
Author
Tim Fox

Field Summary

Modifier and TypeField and Description
private final Map<K, Endpoint<C>>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
public void
forEach(Consumer<Endpoint<C>> consumer)

public void
getConnection(ContextInternal ctx, K key, EndpointProvider<C> provider, Handler<AsyncResult<C>> handler)

public void
getConnection(ContextInternal ctx, K key, EndpointProvider<C> provider, long timeout, Handler<AsyncResult<C>> handler)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

endpointMapback to summary
private final Map<K, Endpoint<C>> endpointMap

Constructor Detail

ConnectionManagerback to summary
public ConnectionManager()

Method Detail

closeback to summary
public void close()
forEachback to summary
public void forEach(Consumer<Endpoint<C>> consumer)
getConnectionback to summary
public void getConnection(ContextInternal ctx, K key, EndpointProvider<C> provider, Handler<AsyncResult<C>> handler)
getConnectionback to summary
public void getConnection(ContextInternal ctx, K key, EndpointProvider<C> provider, long timeout, Handler<AsyncResult<C>> handler)