org.keycloak.models.sessions.infinispan.events

## Class AbstractUserSessionClusterListener<SE extends SessionClusterEvent>

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

- All Implemented Interfaces:
    ClusterListener

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

  Author:
    Marek Posolda

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `AbstractUserSessionClusterListener(KeycloakSessionFactory sessionFactory)`

  - ### 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, InfinispanUserSessionProvider 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)

  - ### 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,
                                                InfinispanUserSessionProvider provider,
                                                SE sessionEvent)

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