Class SettingCacheSelector

java.lang.Object
org.exoplatform.services.cache.ClusterCachedObjectSelector<org.exoplatform.commons.api.settings.data.SettingKey, Object>
org.exoplatform.settings.cache.selector.SettingCacheSelector
All Implemented Interfaces:
Serializable, org.exoplatform.services.cache.CachedObjectSelector<org.exoplatform.commons.api.settings.data.SettingKey, Object>

public class SettingCacheSelector extends org.exoplatform.services.cache.ClusterCachedObjectSelector<org.exoplatform.commons.api.settings.data.SettingKey, Object>
Created by The eXo Platform SAS Author : Nguyen Viet Bang bangnv@exoplatform.com Nov 27, 2012 This class allows to select all setting cache objects which are in a specified Context or Scope. The selected settings are removed, from every node of a cluster.
See Also:
eXo level API
Experimental
  • Constructor Summary

    Constructors
    Constructor
    Description
    SettingCacheSelector(org.exoplatform.commons.api.settings.data.SettingContext provider)
    Create a selector with a specified context
  • Method Summary

    Modifier and Type
    Method
    Description
    protected Object[]
     
    boolean
    select(org.exoplatform.commons.api.settings.data.SettingKey key, org.exoplatform.services.cache.ObjectCacheInfo<? extends Object> ocinfo)
    This function allows this selector could select right object.

    Methods inherited from class org.exoplatform.services.cache.ClusterCachedObjectSelector

    equals, hashCode, onSelect, toString

    Methods inherited from class Object

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

    • SettingCacheSelector

      public SettingCacheSelector(org.exoplatform.commons.api.settings.data.SettingContext provider)
      Create a selector with a specified context
      Parameters:
      provider - context or scope with which the specified value is to be associated
      eXo level API
      Experimental
  • Method Details

    • select

      public boolean select(org.exoplatform.commons.api.settings.data.SettingKey key, org.exoplatform.services.cache.ObjectCacheInfo<? extends Object> ocinfo)
      This function allows this selector could select right object.
      Parameters:
      key - the key which is composed by context, scope, key
      ocinfo - cache info (expire time, cache associated object)
      Returns:
      return true if compared key is equals to provider, false if not
      eXo level API
      Experimental
    • criteria

      protected Object[] criteria()
      Specified by:
      criteria in class org.exoplatform.services.cache.ClusterCachedObjectSelector<org.exoplatform.commons.api.settings.data.SettingKey, Object>