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

public Class ConnectResult<C>

extends Object
Class Inheritance

The result of a connect operation.

Field Summary

Modifier and TypeField and Description
private final long
private final long
private final C

Constructor Summary

AccessConstructor and Description
public
ConnectResult(C connection, long concurrency, long capacity)

Method Summary

Modifier and TypeMethod and Description
public long

Returns:

the connection capacity, i.e how much the connection accounts when it is managed by a pool
capacity
()

public long

Returns:

the connection concurrency, i.e how many times a connection can be borrowed from a pool
concurrency
()

public C

Returns:

the connection
connection
()

public long

Returns:

the connection weight, i.e how much the connection accounts when it is managed by a pool
weight
()

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

capacityback to summary
private final long capacity
concurrencyback to summary
private final long concurrency
connback to summary
private final C conn

Constructor Detail

ConnectResultback to summary
public ConnectResult(C connection, long concurrency, long capacity)

Method Detail

capacityback to summary
public long capacity()
Returns:long

the connection capacity, i.e how much the connection accounts when it is managed by a pool

concurrencyback to summary
public long concurrency()
Returns:long

the connection concurrency, i.e how many times a connection can be borrowed from a pool

connectionback to summary
public C connection()
Returns:C

the connection

weightback to summary
public long weight()
Returns:long

the connection weight, i.e how much the connection accounts when it is managed by a pool