throws ArchivaRestServiceException
{
try
{
archivaRuntimeConfigurationAdmin.updateArchivaRuntimeConfiguration( archivaRuntimeConfiguration );
CacheConfiguration cacheConfiguration = archivaRuntimeConfiguration.getUrlFailureCacheConfiguration();
if ( cacheConfiguration != null )
{
usersCache.setTimeToLiveSeconds( cacheConfiguration.getTimeToLiveSeconds() );
usersCache.setTimeToIdleSeconds( cacheConfiguration.getTimeToIdleSeconds() );
usersCache.setMaxElementsOnDisk( cacheConfiguration.getMaxElementsOnDisk() );
usersCache.setMaxElementsInMemory( cacheConfiguration.getMaxElementsInMemory() );
}
}
catch ( RepositoryAdminException e )
{
throw new ArchivaRestServiceException( e.getMessage(), e );