Class StubCache

java.lang.Object
com.gigaspaces.internal.stubcache.StubCache
All Implemented Interfaces:
IClassLoaderCacheStateListener

public class StubCache extends Object implements IClassLoaderCacheStateListener
A global cache for dynamic smart stubs
Since:
7.5
Author:
eitany
  • Constructor Details

    • StubCache

      public StubCache()
  • Method Details

    • getStub

      public Object getStub(StubId id)
    • addStub

      public void addStub(StubId id, Object stub)
    • clearStaleEntries

      public void clearStaleEntries()
      Clear stale entries, an entry is considered stale if it was not touched in the last two clean cycles
    • onClassLoaderRemoved

      public void onClassLoaderRemoved(Long classLoaderKey, boolean explicit)
      Specified by:
      onClassLoaderRemoved in interface IClassLoaderCacheStateListener
    • clear

      public void clear()