Class PageCacheGeneratorProfile


  • public class PageCacheGeneratorProfile
    extends java.lang.Object
    Contains the configurations for cache generation.

    Each configuration can be applied to a cache queue on specific servers using PCGeneratorConfig.

    Since:
    6.0.0
    Version:
    $Revision: 23092 $ $Date: 2019-08-28 15:42:35 -0300 (Wed, 28 Aug 2019) $
    • Constructor Detail

      • PageCacheGeneratorProfile

        public PageCacheGeneratorProfile()
    • Method Detail

      • getId

        public java.lang.String getId()
        Returns the identifier for this generation configuration.
        Returns:
        the identifier.
        Since:
        6.0.0
      • getDisplayName

        public java.lang.String getDisplayName()
        Returns the display-name for this configuration.
        Returns:
        the display-name.
        Since:
        6.0.0
      • setDisplayName

        public void setDisplayName​(java.lang.String displayName)
        Sets the display-name for this configuration.
        Parameters:
        displayName - the display-name.
        Since:
        6.0.0
      • getDelayBetweenGenerations

        public int getDelayBetweenGenerations()
        Returns the delay each thread will wait between generations.
        Returns:
        the delay in milliseconds.
        Since:
        6.0.0
      • setDelayBetweenGenerations

        public void setDelayBetweenGenerations​(int delayBetweenGenerations)
        Sets the delay each thread will wait between generations.
        Parameters:
        delayBetweenGenerations - the delay in milliseconds.
        Since:
        6.0.0
      • getDelayAfterStabilization

        public int getDelayAfterStabilization()
        Returns the delay each thread will wait after it has no more demand.
        Returns:
        the delay in milliseconds.
        Since:
        6.0.0
      • setDelayAfterStabilization

        public void setDelayAfterStabilization​(int delayAfterStabilization)
        Returns the delay each thread will wait after it has no more demand.
        Since:
        6.0.0
      • getNumberOfThreads

        public int getNumberOfThreads()
        Returns the number of generation threads for general use.
        Returns:
        the number of generation threads.
        Since:
        6.0.0
      • setNumberOfShareableThreads

        public void setNumberOfShareableThreads​(int numberOfThreads)
        Sets the number of generation threads for general use.
        Parameters:
        numberOfThreads - the number of generation threads.
        Since:
        6.0.0
      • getNumberOfThreadsForImmediateUseOnly

        public int getNumberOfThreadsForImmediateUseOnly()
        Returns the number of generation threads for immediate use only.

        These threads are used only to generate caches required for immediate use.

        Returns:
        the number of generation threads.
        Since:
        6.0.0
      • setNumberOfThreadsForImmediateUseOnly

        public void setNumberOfThreadsForImmediateUseOnly​(int numberOfThreadsForImmediateUseOnly)
        Sets the number of generation threads for immediate use only.
        Parameters:
        numberOfThreadsForImmediateUseOnly - the number of generation threads.
        Since:
        6.0.0
        See Also:
        getNumberOfThreadsForImmediateUseOnly()
      • getThreadPriority

        public int getThreadPriority()
        Returns the priority of the generation threads.
        Returns:
        the priority of the generation threads.
        Since:
        6.0.0
        See Also:
        Thread
      • setThreadPriority

        public void setThreadPriority​(int threadPriority)
        Sets the priority of the generation threads.
        Parameters:
        threadPriority - the priority of the generation threads.
        Since:
        6.0.0
        See Also:
        Thread