Class TopologyInfo

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

public class TopologyInfo extends Object
Author:
Marek Posolda
  • Constructor Details

    • TopologyInfo

      public TopologyInfo(org.infinispan.manager.EmbeddedCacheManager cacheManager, Config.Scope config, boolean embedded, String providerId)
  • Method Details

    • 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)