Package io.vertx.core.spi.cluster
Interface RegistrationListener
-
public interface RegistrationListenerRegistration listener used by the cluster manager to keep the clustered event bus updated with the registration changes.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default voidregistrationsLost()Invoked by theClusterManagerwhen some handler registrations have been lost.default voidregistrationsUpdated(RegistrationUpdateEvent event)Invoked by theClusterManagerwhen messaging handler registrations are added or removed.default booleanwantsUpdatesFor(String address)Invoked by theClusterManagerto determine if the node selector wants updates for the givenaddress.
-
-
-
Method Detail
-
registrationsUpdated
default void registrationsUpdated(RegistrationUpdateEvent event)
Invoked by theClusterManagerwhen messaging handler registrations are added or removed.
-
registrationsLost
default void registrationsLost()
Invoked by theClusterManagerwhen some handler registrations have been lost.
-
wantsUpdatesFor
default boolean wantsUpdatesFor(String address)
Invoked by theClusterManagerto determine if the node selector wants updates for the givenaddress.- Parameters:
address- the event bus address- Returns:
trueif the node selector wants updates for the givenaddress,falseotherwise
-
-