Interface ResponseCache

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.String get​(Key key)
      Get the cached information about applications.
      byte[] getGZIP​(Key key)
      Get the compressed information about the applications.
      java.util.concurrent.atomic.AtomicLong getVersionDelta()  
      java.util.concurrent.atomic.AtomicLong getVersionDeltaWithRegions()  
      void invalidate​(java.lang.String appName, java.lang.String vipAddress, java.lang.String secureVipAddress)  
      void stop()
      Performs a shutdown of this cache by stopping internal threads and unregistering Servo monitors.
    • Method Detail

      • invalidate

        void invalidate​(java.lang.String appName,
                        @Nullable
                        java.lang.String vipAddress,
                        @Nullable
                        java.lang.String secureVipAddress)
      • getVersionDelta

        java.util.concurrent.atomic.AtomicLong getVersionDelta()
      • getVersionDeltaWithRegions

        java.util.concurrent.atomic.AtomicLong getVersionDeltaWithRegions()
      • get

        java.lang.String get​(Key key)
        Get the cached information about applications.

        If the cached information is not available it is generated on the first request. After the first request, the information is then updated periodically by a background thread.

        Parameters:
        key - the key for which the cached information needs to be obtained.
        Returns:
        payload which contains information about the applications.
      • getGZIP

        byte[] getGZIP​(Key key)
        Get the compressed information about the applications.
        Parameters:
        key - the key for which the compressed cached information needs to be obtained.
        Returns:
        compressed payload which contains information about the applications.
      • stop

        void stop()
        Performs a shutdown of this cache by stopping internal threads and unregistering Servo monitors.