psdi.mbo

Class AbstractMaximoMTEnabledCache

  • java.lang.Object
    • psdi.mbo.AbstractMaximoMTEnabledCache
    • Constructor Detail

      • AbstractMaximoMTEnabledCache

        public AbstractMaximoMTEnabledCache()
    • Method Detail

      • reload

        public void reload()
                    throws MXException
        Description copied from interface: MaximoCache
        Reloads the cache object. This will be called by the app server whenever the cache needs to be refreshed. Don't call this method directly. Instead call MXServer.reloadCache(String, boolean).
        Specified by:
        reload in interface MaximoCache
        Throws:
        MXException
      • reload

        public void reload(java.lang.String key)
                    throws MXException
        Description copied from interface: MaximoCache
        Initialize a specific component of the cache identified by the key. E.g. In Maxvars, a specific maxvar can be reinitiliazed from the database. Don't call this method directly. Instead call MXServer.reloadCache(String, String, boolean).
        Specified by:
        reload in interface MaximoCache
        Throws:
        MXException
      • getCache

        public MaximoCache getCache()
        Description copied from interface: MaximoMTEnabledCache
        Return the maximo cache instance. This method is called to obtain the cache object. In multi-tenancy enviroment, if the cache is specific to the tenant, this method should return the cache instance based on the tenant id of the context. In non-multi-tenant environment, or the cache is not tenant specific, then it returns to the one cache object.
        Specified by:
        getCache in interface MaximoMTEnabledCache
        Returns:
      • unloadInactiveCaches

        public void unloadInactiveCaches(long interval)
                                  throws MXException
        Throws:
        MXException
      • getCachedUnit

        protected abstract MaximoCache getCachedUnit()