Class SplitManager
java.lang.Object
org.apache.pulsar.broker.loadbalance.extensions.manager.SplitManager
- All Implemented Interfaces:
StateChangeListener
Split manager.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidhandleEvent(String serviceUnit, ServiceUnitStateData data, Throwable t) Called after the service unit state change has been handled.waitAsync(CompletableFuture<Void> eventPubFuture, String bundle, SplitDecision decision, long timeout, TimeUnit timeoutUnit) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.pulsar.broker.loadbalance.extensions.manager.StateChangeListener
beforeEvent
-
Constructor Details
-
SplitManager
-
-
Method Details
-
waitAsync
public CompletableFuture<Void> waitAsync(CompletableFuture<Void> eventPubFuture, String bundle, SplitDecision decision, long timeout, TimeUnit timeoutUnit) -
handleEvent
Description copied from interface:StateChangeListenerCalled after the service unit state change has been handled.- Specified by:
handleEventin interfaceStateChangeListener- Parameters:
serviceUnit- - Service Unit(Namespace bundle).data- - Service unit state data.t- - Exception, if present.
-
close
public void close()
-