Package io.vertx.core.spi.cluster
Interface RegistrationListener
-
public interface RegistrationListener
Registration 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 void
registrationsLost()
Invoked by theClusterManager
when some handler registrations have been lost.default void
registrationsUpdated(RegistrationUpdateEvent event)
Invoked by theClusterManager
when messaging handler registrations are added or removed.default boolean
wantsUpdatesFor(String address)
Invoked by theClusterManager
to determine if the node selector wants updates for the givenaddress
.
-
-
-
Method Detail
-
registrationsUpdated
default void registrationsUpdated(RegistrationUpdateEvent event)
Invoked by theClusterManager
when messaging handler registrations are added or removed.
-
registrationsLost
default void registrationsLost()
Invoked by theClusterManager
when some handler registrations have been lost.
-
wantsUpdatesFor
default boolean wantsUpdatesFor(String address)
Invoked by theClusterManager
to determine if the node selector wants updates for the givenaddress
.- Parameters:
address
- the event bus address- Returns:
true
if the node selector wants updates for the givenaddress
,false
otherwise
-
-