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

public Class PoolWaiter<C>

extends Object
Class Inheritance
Known Direct Subclasses
io.vertx.core.net.impl.pool.SimpleConnectionPool.Acquire
Imports
io.vertx.core.AsyncResult, .Handler, io.vertx.core.impl.ContextInternal

A waiter for a connection.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static interface
PoolWaiter.Listener<C>

An interface notifying the connection borrower of the waiter lifecycle.

Field Summary

Modifier and TypeField and Description
pack-priv final int
pack-priv final ContextInternal
pack-priv boolean
pack-priv final Handler<AsyncResult<Lease<C>>>
pack-priv final PoolWaiter.Listener<C>
pack-priv PoolWaiter<C>
pack-priv static final PoolWaiter.Listener<C>
pack-priv PoolWaiter<C>
pack-priv boolean

Constructor Summary

AccessConstructor and Description
pack-priv
PoolWaiter(PoolWaiter.Listener<C> listener, ContextInternal context, final int capacity, Handler<AsyncResult<Lease<C>>> handler)

Method Summary

Modifier and TypeMethod and Description
public ContextInternal

Returns:

the waiter context
context
()

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

capacityback to summary
pack-priv final int capacity
contextback to summary
pack-priv final ContextInternal context
disposedback to summary
pack-priv boolean disposed
handlerback to summary
pack-priv final Handler<AsyncResult<Lease<C>>> handler
listenerback to summary
pack-priv final PoolWaiter.Listener<C> listener
nextback to summary
pack-priv PoolWaiter<C> next
NULL_LISTENERback to summary
pack-priv static final PoolWaiter.Listener<C> NULL_LISTENER
prevback to summary
pack-priv PoolWaiter<C> prev
queuedback to summary
pack-priv boolean queued

Constructor Detail

PoolWaiterback to summary
pack-priv PoolWaiter(PoolWaiter.Listener<C> listener, ContextInternal context, final int capacity, Handler<AsyncResult<Lease<C>>> handler)

Method Detail

contextback to summary
public ContextInternal context()
Returns:ContextInternal

the waiter context

io.vertx.core.net.impl.pool back to summary

public Interface PoolWaiter.Listener<C>

Known Direct Implementers
io.vertx.core.http.impl.SharedClientHttpStreamEndpoint.Request

An interface notifying the connection borrower of the waiter lifecycle.

Method Summary

Modifier and TypeMethod and Description
public default void
onConnect(PoolWaiter<C>
the waiter
waiter
)

The waiter is associated with a connection request.

public default void
onEnqueue(PoolWaiter<C>
the waiter
waiter
)

The waiter is moved to the pool wait queue.

Method Detail

onConnectback to summary
public default void onConnect(PoolWaiter<C> waiter)

The waiter is associated with a connection request.

Parameters
waiter:PoolWaiter<C>

the waiter

onEnqueueback to summary
public default void onEnqueue(PoolWaiter<C> waiter)

The waiter is moved to the pool wait queue.

Parameters
waiter:PoolWaiter<C>

the waiter