Class SubscriptionCoordinator
java.lang.Object
org.apache.iotdb.confignode.manager.subscription.SubscriptionCoordinator
-
Constructor Summary
ConstructorsConstructorDescriptionSubscriptionCoordinator(ConfigManager configManager, SubscriptionInfo subscriptionInfo) -
Method Summary
Modifier and TypeMethodDescriptionbooleandropTopic(TDropTopicReq req) booleanisLocked()lock()Lock theSubscriptionInfocoordinator.showTopic(TShowTopicReq req) voidvoidtryLock()booleanunlock()voidCaller should ensure that the method is called in the write lock ofsubscriptionInfo.
-
Constructor Details
-
SubscriptionCoordinator
-
-
Method Details
-
getSubscriptionInfo
-
tryLock
-
lock
Lock theSubscriptionInfocoordinator.- Returns:
- the
SubscriptionInfoholder, which can be used to get theSubscriptionInfo. Wait until lock is acquired
-
unlock
public boolean unlock() -
isLocked
public boolean isLocked() -
startSubscriptionMetaSync
public void startSubscriptionMetaSync() -
stopSubscriptionMetaSync
public void stopSubscriptionMetaSync() -
updateLastSyncedVersion
public void updateLastSyncedVersion()Caller should ensure that the method is called in the write lock ofsubscriptionInfo. -
canSkipNextSync
public boolean canSkipNextSync() -
createTopic
-
dropTopic
-
showTopic
-
getAllTopicInfo
-
createConsumer
-
dropConsumer
-
createSubscription
-
dropSubscription
-
dropSubscription
-
showSubscription
-
getAllSubscriptionInfo
-