Class LRUThreadSafeCompiledScriptCache

java.lang.Object
org.openspaces.remoting.scripting.cache.LRUThreadSafeCompiledScriptCache
All Implemented Interfaces:
CompiledScriptCache

public class LRUThreadSafeCompiledScriptCache extends Object implements CompiledScriptCache
An LRU cache that can handle compiled scripts that are thread safe. Thread safe compiled scripts are scripts that can be executed by several threads at the same time.

Uses a simple LinkedHashMap to implement the LRU.

Author:
kimchy
  • Field Details

  • Constructor Details

    • LRUThreadSafeCompiledScriptCache

      public LRUThreadSafeCompiledScriptCache()
    • LRUThreadSafeCompiledScriptCache

      public LRUThreadSafeCompiledScriptCache(int cacheSize)
  • Method Details