类 ConnectionHandler
java.lang.Object
org.apache.pulsar.client.impl.ConnectionHandler
-
字段概要
字段修饰符和类型字段说明protected final Backoffprotected org.apache.pulsar.client.impl.ConnectionHandler.Connectionprotected longprotected final intprotected final org.apache.pulsar.client.impl.HandlerState -
构造器概要
构造器限定符构造器说明protectedConnectionHandler(org.apache.pulsar.client.impl.HandlerState state, Backoff backoff, org.apache.pulsar.client.impl.ConnectionHandler.Connection connection) -
方法概要
修饰符和类型方法说明cnx()voidvoidlonggetEpoch()protected voidgrabCnx()protected voidprotected voidprotected voidsetClientCnx(ClientCnx clientCnx) protected longswitchClientCnx(ClientCnx clientCnx) Update theClientCnxfor the class, then increment and get the epoch value.
-
字段详细资料
-
state
protected final org.apache.pulsar.client.impl.HandlerState state -
backoff
-
lastConnectionClosedTimestamp
protected volatile long lastConnectionClosedTimestamp -
randomKeyForSelectConnection
protected final int randomKeyForSelectConnection -
connection
protected org.apache.pulsar.client.impl.ConnectionHandler.Connection connection
-
-
构造器详细资料
-
ConnectionHandler
protected ConnectionHandler(org.apache.pulsar.client.impl.HandlerState state, Backoff backoff, org.apache.pulsar.client.impl.ConnectionHandler.Connection connection)
-
-
方法详细资料
-
grabCnx
protected void grabCnx() -
grabCnx
-
connectionClosed
-
connectionClosed
-
resetBackoff
protected void resetBackoff() -
cnx
-
setClientCnx
-
switchClientCnx
Update theClientCnxfor the class, then increment and get the epoch value. Note that the epoch value is currently only used by theProducerImpl.- 参数:
clientCnx- - the newClientCnx- 返回:
- the epoch value to use for this pair of
ClientCnxandProducerImpl
-
getEpoch
public long getEpoch()
-