Class AbstractComponentTracker<C>

    • Field Detail

      • LINGERING_TIMEOUT

        public static final long LINGERING_TIMEOUT
        Deprecated.
        See Also:
        Constant Field Values
      • WAIT_BETWEEN_SUCCESSIVE_REMOVAL_ITERATIONS

        public static final long WAIT_BETWEEN_SUCCESSIVE_REMOVAL_ITERATIONS
        Deprecated.
        The minimum amount of time that has to elapse between successive removal iterations.
        See Also:
        Constant Field Values
    • Constructor Detail

      • AbstractComponentTracker

        public AbstractComponentTracker()
        Deprecated.
    • Method Detail

      • getComponentCount

        public int getComponentCount()
        Deprecated.
        Description copied from interface: ComponentTracker
        Returns the number of components tracked.
        Specified by:
        getComponentCount in interface ComponentTracker<C>
        Returns:
        number of components
      • find

        public C find​(String key)
        Deprecated.
        Find the component identified by 'key', without updating the timestamp. Returns null if no corresponding component could be found.

        Note that this method is synchronized.

        Specified by:
        find in interface ComponentTracker<C>
        Parameters:
        key -
        Returns:
        corresponding component, may be null
      • getOrCreate

        public C getOrCreate​(String key,
                             long timestamp)
        Deprecated.
        Get the component identified by 'key', updating its timestamp in the process. If the corresponding component could not be found, it is created.

        Note that this method is atomic, i.e. synchronized.

        Specified by:
        getOrCreate in interface ComponentTracker<C>
        Parameters:
        key -
        timestamp -
        Returns:
      • endOfLife

        public void endOfLife​(String key)
        Deprecated.
        Mark component identified by 'key' as having reached its end-of-life.
        Specified by:
        endOfLife in interface ComponentTracker<C>
        Parameters:
        key -
      • removeStaleComponents

        public void removeStaleComponents​(long now)
        Deprecated.
        Clear (and detach) components which are stale. Components which have not been accessed for more than a user-specified duration are deemed stale.
        Specified by:
        removeStaleComponents in interface ComponentTracker<C>
        Parameters:
        now -
      • getTimeout

        public long getTimeout()
        Deprecated.
      • setTimeout

        public void setTimeout​(long timeout)
        Deprecated.
      • getMaxComponents

        public int getMaxComponents()
        Deprecated.
      • setMaxComponents

        public void setMaxComponents​(int maxComponents)
        Deprecated.