com.hazelcast.spi

## Interface NotifiableEventListener<S>

- Type Parameters:
    `S` - the type of the `ManagedService`

      public interface NotifiableEventListener<S>

  Contract point for event listeners to be notified by `EventService`.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `onDeregister(S service, String serviceName, String topic, EventRegistration registration)` Called when this listener deregistered from `EventService`.
    `void` | `onRegister(S service, String serviceName, String topic, EventRegistration registration)` Called when this listener registered to `EventService`.

- - ### Method Detail

    - #### onRegister

          void onRegister(S service,
                          String serviceName,
                          String topic,
                          EventRegistration registration)

      Called when this listener registered to `EventService`.
      Parameters:
        `service` - the service instance that event belongs to
        `serviceName` - name of the service that event belongs to
        `topic` - name of the topic that event belongs to
        `registration` - the `EventRegistration` instance that holds information about the registration

    - #### onDeregister

          void onDeregister(S service,
                            String serviceName,
                            String topic,
                            EventRegistration registration)

      Called when this listener deregistered from `EventService`.
      Parameters:
        `service` - the service instance that event belongs to
        `serviceName` - name of the service that event belongs to
        `topic` - name of the topic that event belongs to
        `registration` - the `EventRegistration` instance that holds information about the registration

Copyright © 2020. All rights reserved.