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 long |
lastConnectionClosedTimestamp |
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 |
|---|---|
ClientCnx |
cnx() |
void |
connectionClosed(ClientCnx cnx) |
long |
getEpoch() |
protected void |
grabCnx() |
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 volatile long lastConnectionClosedTimestamp
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()
public ClientCnx cnx()
protected void setClientCnx(ClientCnx clientCnx)
public long getEpoch()
Copyright © 2017–2020 Apache Software Foundation. All rights reserved.