类 TransactionMetaStoreHandler
java.lang.Object
org.apache.pulsar.client.impl.TransactionMetaStoreHandler
- 所有已实现的接口:
io.netty.util.TimerTask,Closeable,AutoCloseable
public class TransactionMetaStoreHandler
extends Object
implements Closeable, io.netty.util.TimerTask
Handler for transaction meta store.
-
字段概要
字段修饰符和类型字段说明protected final PulsarClientImplprotected URIprotected final io.netty.util.Timerprotected final String -
构造器概要
构造器构造器说明TransactionMetaStoreHandler(long transactionCoordinatorId, PulsarClientImpl pulsarClient, String topic, CompletableFuture<Void> connectFuture) -
方法概要
修饰符和类型方法说明addPublishPartitionToTxnAsync(TxnID txnID, List<String> partitions) addSubscriptionToTxn(TxnID txnID, List<Subscription> subscriptionList) protected booleanprotected booleanprotected booleanvoidclose()voidconnectionFailed(PulsarClientException exception) endTxnAsync(TxnID txnID, TxnAction action) protected org.apache.pulsar.client.impl.HandlerState.StategetAndUpdateState(UnaryOperator<org.apache.pulsar.client.impl.HandlerState.State> updater) org.apache.pulsar.client.impl.HandlerState.StategetExceptionByServerError(ServerError serverError, String msg) protected org.apache.pulsar.client.impl.HandlerState.StategetState()voidnewTransactionAsync(long timeout, TimeUnit unit) voidrun(io.netty.util.Timeout timeout) protected voidsetRedirectedClusterURI(String serviceUrl, String serviceUrlTls) protected voidsetState(org.apache.pulsar.client.impl.HandlerState.State s) voidstart()
-
字段详细资料
-
timer
protected final io.netty.util.Timer timer -
client
-
topic
-
redirectedClusterURI
-
-
构造器详细资料
-
TransactionMetaStoreHandler
public TransactionMetaStoreHandler(long transactionCoordinatorId, PulsarClientImpl pulsarClient, String topic, CompletableFuture<Void> connectFuture)
-
-
方法详细资料
-
start
public void start() -
connectionFailed
-
connectionOpened
-
newTransactionAsync
-
addPublishPartitionToTxnAsync
-
addSubscriptionToTxn
public CompletableFuture<Void> addSubscriptionToTxn(TxnID txnID, List<Subscription> subscriptionList) -
handleAddSubscriptionToTxnResponse
-
endTxnAsync
-
getExceptionByServerError
public static TransactionCoordinatorClientException getExceptionByServerError(ServerError serverError, String msg) -
run
- 指定者:
run在接口中io.netty.util.TimerTask- 抛出:
Exception
-
close
- 指定者:
close在接口中AutoCloseable- 指定者:
close在接口中Closeable- 抛出:
IOException
-
getConnectHandleState
public org.apache.pulsar.client.impl.HandlerState.State getConnectHandleState() -
getHandlerName
-
setRedirectedClusterURI
protected void setRedirectedClusterURI(String serviceUrl, String serviceUrlTls) throws URISyntaxException -
changeToReadyState
protected boolean changeToReadyState() -
changeToRegisteringSchemaState
protected boolean changeToRegisteringSchemaState() -
getState
protected org.apache.pulsar.client.impl.HandlerState.State getState() -
changeToConnecting
protected boolean changeToConnecting() -
setState
protected void setState(org.apache.pulsar.client.impl.HandlerState.State s) -
getAndUpdateState
protected org.apache.pulsar.client.impl.HandlerState.State getAndUpdateState(UnaryOperator<org.apache.pulsar.client.impl.HandlerState.State> updater) -
getClient
-