diff options
author | Olivier Lamy <olamy@apache.org> | 2012-12-21 16:25:42 +0000 |
---|---|---|
committer | Olivier Lamy <olamy@apache.org> | 2012-12-21 16:25:42 +0000 |
commit | ba2bf9114778efa4754ff465cb3a7bc34c368af8 (patch) | |
tree | 0f826db06943cdf36c076189a987b778d73c3667 /archiva-modules/archiva-base | |
parent | cde61f1cfcf70c43bb6042c155ed3ca09a57d526 (diff) | |
download | archiva-ba2bf9114778efa4754ff465cb3a7bc34c368af8.tar.gz archiva-ba2bf9114778efa4754ff465cb3a7bc34c368af8.zip |
new field to configure ttl for users cache
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1425001 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/archiva-base')
2 files changed, 46 insertions, 0 deletions
diff --git a/archiva-modules/archiva-base/archiva-configuration/src/main/mdo/configuration.mdo b/archiva-modules/archiva-base/archiva-configuration/src/main/mdo/configuration.mdo index 99a82dad2..db9f7a49c 100644 --- a/archiva-modules/archiva-base/archiva-configuration/src/main/mdo/configuration.mdo +++ b/archiva-modules/archiva-base/archiva-configuration/src/main/mdo/configuration.mdo @@ -1493,6 +1493,20 @@ <type>boolean</type> <defaultValue>true</defaultValue> </field> + <field> + <name>useUsersCacheTimeToIdleSeconds</name> + <description>TimeToIdleSeconds for users cache</description> + <version>1.4.0+</version> + <type>int</type> + <defaultValue>14400</defaultValue> + </field> + <field> + <name>useUsersCacheTimeToLiveSeconds</name> + <description>TimeToLiveSeconds for users cache</description> + <version>1.4.0+</version> + <type>int</type> + <defaultValue>14400</defaultValue> + </field> </fields> </class> diff --git a/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-api/src/main/java/org/apache/archiva/admin/model/beans/RedbackRuntimeConfiguration.java b/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-api/src/main/java/org/apache/archiva/admin/model/beans/RedbackRuntimeConfiguration.java index cda3d4d52..a21d213ce 100644 --- a/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-api/src/main/java/org/apache/archiva/admin/model/beans/RedbackRuntimeConfiguration.java +++ b/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-api/src/main/java/org/apache/archiva/admin/model/beans/RedbackRuntimeConfiguration.java @@ -59,6 +59,16 @@ public class RedbackRuntimeConfiguration */ private boolean useUsersCache = false; + /** + * TimeToIdleSeconds for users cache. + */ + private int useUsersCacheTimeToIdleSeconds = 14400; + + /** + * TimeToLiveSeconds for users cache. + */ + private int useUsersCacheTimeToLiveSeconds = 14400; + public RedbackRuntimeConfiguration() { // no op @@ -141,6 +151,26 @@ public class RedbackRuntimeConfiguration this.useUsersCache = useUsersCache; } + public int getUseUsersCacheTimeToIdleSeconds() + { + return useUsersCacheTimeToIdleSeconds; + } + + public void setUseUsersCacheTimeToIdleSeconds( int useUsersCacheTimeToIdleSeconds ) + { + this.useUsersCacheTimeToIdleSeconds = useUsersCacheTimeToIdleSeconds; + } + + public int getUseUsersCacheTimeToLiveSeconds() + { + return useUsersCacheTimeToLiveSeconds; + } + + public void setUseUsersCacheTimeToLiveSeconds( int useUsersCacheTimeToLiveSeconds ) + { + this.useUsersCacheTimeToLiveSeconds = useUsersCacheTimeToLiveSeconds; + } + @Override public String toString() { @@ -152,6 +182,8 @@ public class RedbackRuntimeConfiguration sb.append( ", configurationProperties=" ).append( configurationProperties ); sb.append( ", configurationPropertiesEntries=" ).append( configurationPropertiesEntries ); sb.append( ", useUsersCache=" ).append( useUsersCache ); + sb.append( ", useUsersCacheTimeToIdleSeconds=" ).append( useUsersCacheTimeToIdleSeconds ); + sb.append( ", useUsersCacheTimeToLiveSeconds=" ).append( useUsersCacheTimeToLiveSeconds ); sb.append( '}' ); return sb.toString(); } |