public abstract class Endpoint<C> extends Object
| Modifier and Type | Method and Description |
|---|---|
protected void |
close()
Close the endpoint, this will close all connections, this method is called by the
ConnectionManager when
it is closed. |
protected boolean |
decRefCount() |
protected void |
dispose()
Hook to cleanup when all metrics have been processed, e.g unregistering metrics, this method is called when
the endpoint will not accept anymore requests.
|
boolean |
getConnection(ContextInternal ctx,
Handler<AsyncResult<C>> handler) |
protected boolean |
incRefCount() |
abstract void |
requestConnection(ContextInternal ctx,
Handler<AsyncResult<C>> handler) |
public Endpoint(Runnable dispose)
public boolean getConnection(ContextInternal ctx, Handler<AsyncResult<C>> handler)
public abstract void requestConnection(ContextInternal ctx, Handler<AsyncResult<C>> handler)
protected boolean incRefCount()
protected boolean decRefCount()
protected void dispose()
protected void close()
ConnectionManager when
it is closed.Copyright © 2021. All rights reserved.