类 CommonHandleCache<K,V>

java.lang.Object
org.apache.shenyu.plugin.base.cache.CommonHandleCache<K,V>
所有已实现的接口:
org.apache.shenyu.plugin.api.HandleCache<K,V>

public class CommonHandleCache<K,V> extends Object implements org.apache.shenyu.plugin.api.HandleCache<K,V>
The selector or rule handle base cache.
  • 构造器详细资料

    • CommonHandleCache

      public CommonHandleCache()
  • 方法详细资料

    • obtainHandle

      public V obtainHandle(K key, Supplier<V> supplier)
      指定者:
      obtainHandle 在接口中 org.apache.shenyu.plugin.api.HandleCache<K,V>
    • obtainHandle

      public V obtainHandle(K key)
      指定者:
      obtainHandle 在接口中 org.apache.shenyu.plugin.api.HandleCache<K,V>
    • cachedHandle

      public void cachedHandle(K key, V value)
      指定者:
      cachedHandle 在接口中 org.apache.shenyu.plugin.api.HandleCache<K,V>
    • removeHandle

      public void removeHandle(K key)
      指定者:
      removeHandle 在接口中 org.apache.shenyu.plugin.api.HandleCache<K,V>
    • getAllCache

      public ConcurrentHashMap<K,V> getAllCache()
      Get all cached.
      返回:
      all cached