Package lumis.portal.page.cache
Class PageCacheGeneratorProfile
- java.lang.Object
-
- lumis.portal.page.cache.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$ $Date$
-
-
Constructor Summary
Constructors Constructor Description PageCacheGeneratorProfile()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getDelayAfterStabilization()
Returns the delay each thread will wait after it has no more demand.int
getDelayBetweenGenerations()
Returns the delay each thread will wait between generations.java.lang.String
getDisplayName()
Returns the display-name for this configuration.java.lang.String
getId()
Returns the identifier for this generation configuration.int
getNumberOfThreads()
Returns the number of generation threads for general use.int
getNumberOfThreadsForImmediateUseOnly()
Returns the number of generation threads for immediate use only.int
getThreadPriority()
Returns the priority of the generation threads.void
setDelayAfterStabilization(int delayAfterStabilization)
Returns the delay each thread will wait after it has no more demand.void
setDelayBetweenGenerations(int delayBetweenGenerations)
Sets the delay each thread will wait between generations.void
setDisplayName(java.lang.String displayName)
Sets the display-name for this configuration.void
setNumberOfShareableThreads(int numberOfThreads)
Sets the number of generation threads for general use.void
setNumberOfThreadsForImmediateUseOnly(int numberOfThreadsForImmediateUseOnly)
Sets the number of generation threads for immediate use only.void
setThreadPriority(int threadPriority)
Sets the priority of the generation threads.
-
-
-
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
-
-