public class ConnectionHandler extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Backoff |
backoff |
protected org.apache.pulsar.client.impl.ConnectionHandler.Connection |
connection |
protected long |
epoch |
protected org.apache.pulsar.client.impl.HandlerState |
state |
| Modifier | Constructor and Description |
|---|---|
protected |
ConnectionHandler(org.apache.pulsar.client.impl.HandlerState state,
Backoff backoff,
org.apache.pulsar.client.impl.ConnectionHandler.Connection connection) |
| Modifier and Type | Method and Description |
|---|---|
protected ClientCnx |
cnx() |
void |
connectionClosed(ClientCnx cnx) |
ClientCnx |
getClientCnx() |
long |
getEpoch() |
protected void |
grabCnx() |
protected boolean |
isRetriableError(PulsarClientException e) |
protected void |
reconnectLater(Throwable exception) |
protected void |
resetBackoff() |
protected void |
setClientCnx(ClientCnx clientCnx) |
protected final org.apache.pulsar.client.impl.HandlerState state
protected final Backoff backoff
protected long epoch
protected org.apache.pulsar.client.impl.ConnectionHandler.Connection connection
protected ConnectionHandler(org.apache.pulsar.client.impl.HandlerState state, Backoff backoff, org.apache.pulsar.client.impl.ConnectionHandler.Connection connection)
protected void grabCnx()
protected void reconnectLater(Throwable exception)
public void connectionClosed(ClientCnx cnx)
protected void resetBackoff()
protected ClientCnx cnx()
protected boolean isRetriableError(PulsarClientException e)
public ClientCnx getClientCnx()
protected void setClientCnx(ClientCnx clientCnx)
public long getEpoch()
Copyright © 2017–2020 Apache Software Foundation. All rights reserved.