Class PeerToPeerSessionCache

    • Field Detail

      • DEFAULT_REGION_ATTRIBUTES_ID

        protected static final java.lang.String DEFAULT_REGION_ATTRIBUTES_ID
      • DEFAULT_ENABLE_LOCAL_CACHE

        protected static final boolean DEFAULT_ENABLE_LOCAL_CACHE
        See Also:
        Constant Field Values
    • Constructor Detail

      • PeerToPeerSessionCache

        public PeerToPeerSessionCache​(SessionManager sessionManager,
                                      Cache cache)
    • Method Detail

      • initialize

        public void initialize()
      • getDefaultRegionAttributesId

        public java.lang.String getDefaultRegionAttributesId()
      • getDefaultEnableLocalCache

        public boolean getDefaultEnableLocalCache()
      • touchSessions

        public void touchSessions​(java.util.Set<java.lang.String> sessionIds)
      • isPeerToPeer

        public boolean isPeerToPeer()
      • isClientServer

        public boolean isClientServer()
      • keySet

        public java.util.Set<java.lang.String> keySet()
      • size

        public int size()
      • isBackingCacheAvailable

        public boolean isBackingCacheAvailable()
        For peer-to-peer the backing cache *is* what's embedded in tomcat so it's always available
        Returns:
        boolean indicating whether a backing cache is available
      • createOrRetrieveRegion

        protected void createOrRetrieveRegion()