org.keycloak.connections.infinispan

## Class TopologyInfo

- java.lang.Object
- - org.keycloak.connections.infinispan.TopologyInfo

-     public class TopologyInfo
      extends Object

  Author:
    Marek Posolda

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `TopologyInfo(org.infinispan.manager.EmbeddedCacheManager cacheManager, Config.Scope config, boolean embedded)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `amIOwner(org.infinispan.Cache cache, Object key)` True if I am primary owner of the key in case of distributed caches.
    `String` | `getMyNodeName()`
    `String` | `getMySiteName()`
    `String` | `getRouteName(org.infinispan.Cache cache, Object key)` Get route to be used as the identifier for sticky session.
    `String` | `toString()`

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

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

- - ### Constructor Detail

    - #### TopologyInfo

          public TopologyInfo(org.infinispan.manager.EmbeddedCacheManager cacheManager,
                              Config.Scope config,
                              boolean embedded)

  - ### Method Detail

    - #### getMyNodeName

          public String getMyNodeName()

    - #### getMySiteName

          public String getMySiteName()

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

    - #### amIOwner

          public boolean amIOwner(org.infinispan.Cache cache,
                                  Object key)

      True if I am primary owner of the key in case of distributed caches. In case of local caches, always return true

    - #### getRouteName

          public String getRouteName(org.infinispan.Cache cache,
                                     Object key)

      Get route to be used as the identifier for sticky session. Return null if I am not able to find the appropriate route (or in case of local mode)

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