ClientStatusListenerExt instead.@Deprecated
public interface ClientStatusListener
Client in order to receive notifications
when a connection is lost or backpressure occurs| Modifier and Type | Method and Description |
|---|---|
void |
backpressure(boolean status)
Deprecated.
Called by the client API whenever backpressure starts/stops.
|
void |
connectionLost(java.lang.String hostname,
int connectionsLeft)
Deprecated.
Notify listeners that a connection to a host was lost.
|
void |
uncaughtException(ProcedureCallback callback,
ClientResponse r,
java.lang.Throwable e)
Deprecated.
Called when a
ProcedureCallback.clientCallback(ClientResponse) invocation throws
an exception. |
void connectionLost(java.lang.String hostname,
int connectionsLeft)
hostname - Name of the host the connect was lost toconnectionsLeft - Number of remaining connections this client has to the DBvoid backpressure(boolean status)
Client will no longer
queue invocations.status - true if there is backpressure and false otherwise.void uncaughtException(ProcedureCallback callback, ClientResponse r, java.lang.Throwable e)
ProcedureCallback.clientCallback(ClientResponse) invocation throws
an exception.callback - The callback that threw an exception.r - The response object passed to the callback.e - The exception thrown by the callback.