Interface ServiceDiscoveryChangeListener


  • public interface ServiceDiscoveryChangeListener
    This interface defines the methods that a Service Discovery consumer should implement if it wishes to be notified of changes in the service.
    • Method Detail

      • partitionsChanged

        void partitionsChanged​(ServiceDiscoveryMechanism<?> changedService)
        Invoked when the service discovery mechanism detected that the servers have changed. The changes may impact the partitions returned by this service discovery mechanism.
        Parameters:
        changedService - the service discovery mechanism that detected a change
      • connectionOptionsChanged

        void connectionOptionsChanged​(ServiceDiscoveryMechanism<?> changedService)
        Invoked when the connection options for connecting to the servers have changed.
        Parameters:
        changedService - the service discovery mechanism that detected a change