Class TopologyInfo

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

@Deprecated(since="26.5", forRemoval=true) public class TopologyInfo extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
For removal. To get the node or site name, use NodeInfo from InfinispanConnectionProvider.getNodeInfo().
Author:
Marek Posolda
  • Constructor Summary

    Constructors
    Constructor
    Description
    TopologyInfo(org.infinispan.manager.EmbeddedCacheManager cacheManager)
    Deprecated, for removal: This API element is subject to removal in a future version.
    TopologyInfo(org.infinispan.manager.EmbeddedCacheManager cacheManager, org.keycloak.Config.Scope config, boolean embedded, String providerId)
    Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    amIOwner(org.infinispan.Cache<?,?> cache, Object key)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Removed without replacement.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Use NodeInfo.nodeName() instead.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Use NodeInfo.siteName() instead.
    getRouteName(org.infinispan.Cache<?,?> cache, Object key)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Use StickySessionEncoderProvider.sessionIdRoute(String) instead.
    Deprecated, for removal: This API element is subject to removal in a future version.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • TopologyInfo

      @Deprecated(since="26.3", forRemoval=true) public TopologyInfo(org.infinispan.manager.EmbeddedCacheManager cacheManager, org.keycloak.Config.Scope config, boolean embedded, String providerId)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • TopologyInfo

      @Deprecated(since="26.5", forRemoval=true) public TopologyInfo(org.infinispan.manager.EmbeddedCacheManager cacheManager)
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • getMyNodeName

      @Deprecated(since="26.5", forRemoval=true) public String getMyNodeName()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Use NodeInfo.nodeName() instead.
    • getMySiteName

      @Deprecated(since="26.5", forRemoval=true) public String getMySiteName()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Use NodeInfo.siteName() instead.
    • toString

      public String toString()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      toString in class Object
    • amIOwner

      @Deprecated(since="26.5", forRemoval=true) public boolean amIOwner(org.infinispan.Cache<?,?> cache, Object key)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Removed without replacement.
      True if I am primary owner of the key in case of distributed caches. In case of local caches, always return true
    • getRouteName

      @Deprecated(since="26.5", forRemoval=true) public String getRouteName(org.infinispan.Cache<?,?> cache, Object key)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Use StickySessionEncoderProvider.sessionIdRoute(String) instead.
      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)