org.keycloak.models.sessions.infinispan.events

## Class AbstractUserSessionClusterListener<SE extends SessionClusterEvent,T extends Provider>

- java.lang.Object
- - org.keycloak.models.sessions.infinispan.events.AbstractUserSessionClusterListener<SE,T>

- All Implemented Interfaces:
    ClusterListener

      public abstract class AbstractUserSessionClusterListener<SE extends SessionClusterEvent,T extends Provider>
      extends Object
      implements ClusterListener

  Author:
    Marek Posolda

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `AbstractUserSessionClusterListener(KeycloakSessionFactory sessionFactory, Class<T> providerClazz)`

  - ### Method Summary

    All Methods Instance Methods Abstract Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `eventReceived(ClusterEvent event)` Registered task to be executed on all cluster nodes once it's notified from cache.
    `protected abstract void` | `eventReceived(KeycloakSession session, T provider, SE sessionEvent)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### AbstractUserSessionClusterListener

          public AbstractUserSessionClusterListener(KeycloakSessionFactory sessionFactory,
                                                    Class<T> providerClazz)

  - ### Method Detail

    - #### eventReceived

          public void eventReceived(ClusterEvent event)

      Description copied from interface: `ClusterListener`
      Registered task to be executed on all cluster nodes once it's notified from cache.
      Specified by:
        `eventReceived` in interface `ClusterListener`
      Parameters:
        `event` - value of notification (Object added into the cache)

    - #### eventReceived

          protected abstract void eventReceived(KeycloakSession session,
                                                T provider,
                                                SE sessionEvent)

Copyright © 2021 JBoss by Red Hat. All rights reserved.