Class ServiceUnitStateTableViewSyncer
java.lang.Object
org.apache.pulsar.broker.loadbalance.extensions.channel.ServiceUnitStateTableViewSyncer
- All Implemented Interfaces:
Closeable,AutoCloseable
Defines ServiceUnitTableViewSyncer.
It syncs service unit(bundle) states between metadata store and system topic table views.
One could enable this syncer before migration from one to the other and disable it after the migration finishes.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()booleanisActive()voidstart(PulsarService pulsar)
-
Constructor Details
-
ServiceUnitStateTableViewSyncer
public ServiceUnitStateTableViewSyncer()
-
-
Method Details
-
start
public void start(PulsarService pulsar) throws IOException, TimeoutException, InterruptedException, ExecutionException -
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
isActive
public boolean isActive()
-