Class InvalidateCacheMessage

java.lang.Object
overit.geocall.cache.InvalidateCacheMessage
All Implemented Interfaces:
Serializable, overit.geocall.cluster.redis.Message

public class InvalidateCacheMessage extends Object implements overit.geocall.cluster.redis.Message
Invalidation message used to communicate the invalidation of a cache's entry
See Also:
  • Field Details

  • Method Details

    • all

      public static InvalidateCacheMessage all()
      creates an invalidation message for all entries in the cache
      Returns:
      the instance of the invalidation message
    • onlyKey

      public static InvalidateCacheMessage onlyKey(String key)
      creates an invalidation message for th cache's entry identified by the provided key
      Parameters:
      key - the key of the entry to be invalidated
      Returns:
      the instance of the invalidation message
    • type

      public String type()
      Specified by:
      type in interface overit.geocall.cluster.redis.Message
    • key

      public String key()