Tabnine Logo
CRepository.setNotFoundCacheTTL
Code IndexAdd Tabnine to your IDE (free)

How to use
setNotFoundCacheTTL
method
in
org.sonatype.nexus.configuration.model.CRepository

Best Java code snippets using org.sonatype.nexus.configuration.model.CRepository.setNotFoundCacheTTL (Showing top 14 results out of 315)

origin: org.sonatype.nexus/nexus-proxy

public void setNotFoundCacheTimeToLive( int notFoundCacheTimeToLive )
{
  getCurrentConfiguration( true ).setNotFoundCacheTTL( notFoundCacheTimeToLive );
}
origin: org.sonatype.nexus.plugins/nexus-site-repository-plugin

@Override
protected CRepositoryCoreConfiguration initCoreConfiguration() {
 CRepository repo = new DefaultCRepository();
 repo.setId("");
 repo.setProviderRole(WebSiteRepository.class.getName());
 repo.setProviderHint(SiteRepository.ID);
 Xpp3Dom ex = new Xpp3Dom(DefaultCRepository.EXTERNAL_CONFIGURATION_NODE_NAME);
 repo.setExternalConfiguration(ex);
 repo.setIndexable(false);
 repo.setWritePolicy(RepositoryWritePolicy.ALLOW_WRITE.name());
 repo.setNotFoundCacheTTL(1440);
 CRepositoryCoreConfiguration result = new CRepositoryCoreConfiguration(
   getTemplateProvider().getApplicationConfiguration(),
   repo,
   new CRepositoryExternalConfigurationHolderFactory<DefaultSiteRepositoryConfiguration>()
   {
    public DefaultSiteRepositoryConfiguration createExternalConfigurationHolder(CRepository config) {
     return new DefaultSiteRepositoryConfiguration((Xpp3Dom) config.getExternalConfiguration());
    }
   });
 return result;
}
origin: org.sonatype.nexus.plugins/nexus-ruby-plugin

repo.setNotFoundCacheTTL(1440);
repo.setIndexable(true);
repo.setSearchable(true);
origin: org.sonatype.nexus/nexus-app

repo.setNotFoundCacheTTL( 1440 );
origin: org.sonatype.nexus/nexus-configuration-model

value.setNotFoundCacheTTL( cRepository.getNotFoundCacheTTL() );
origin: org.sonatype.nexus/nexus-app

repo.setNotFoundCacheTTL( 1440 );
repo.setIndexable( true );
repo.setSearchable( true );
origin: org.sonatype.nexus.plugins/nexus-p2-repository-plugin

repo.setNotFoundCacheTTL(1440);
origin: org.sonatype.nexus.plugins/nexus-p2-repository-plugin

repo.setNotFoundCacheTTL(1440);
origin: org.sonatype.nexus.plugins/nexus-ruby-plugin

repo.setNotFoundCacheTTL(1440);
origin: org.sonatype.nexus.plugins/nexus-restlet1x-plugin

appModel.setSearchable(repoResource.isIndexable());
appModel.setNotFoundCacheTTL(repoResource.getNotFoundCacheTTL());
origin: org.sonatype.nexus/nexus-rest-api

appModel.setSearchable( repoResource.isIndexable() );
appModel.setNotFoundCacheTTL( repoResource.getNotFoundCacheTTL() );
origin: org.sonatype.nexus/nexus-app

repo.setNotFoundCacheTTL( 1440 );
origin: org.sonatype.nexus/nexus-app

repo.setNotFoundCacheTTL( 1440 );
origin: org.sonatype.nexus/nexus-configuration-model

cRepository.setNotFoundCacheTTL( getIntegerValue( getTrimmedValue( parser.nextText() ), "notFoundCacheTTL", parser, strict ) );
org.sonatype.nexus.configuration.modelCRepositorysetNotFoundCacheTTL

Javadoc

Set notFoundCache, the neg-cache records time to live in minutes. How long will misses be cached.

Popular methods of CRepository

  • getExternalConfiguration
    Get repository implementation's own configuration.
  • getRemoteStorage
    Get the remote storage definition of repository.
  • setExternalConfiguration
    Set repository implementation's own configuration.
  • setId
    Set repository ID. It should uniquely identify this repository across Nexus.
  • setIndexable
    Set if true, repository will get indexed. If false, the files and artifacts from repository will NOT
  • setName
    Set human readable Repository name.
  • setRemoteStorage
    Set the remote storage definition of repository.
  • setWritePolicy
    Set the policy of the repositories write capability, i.e. (ALLOW_WRITE, ALLOW_WRITE_ONCE, READ_ONLY)
  • setNotFoundCacheActive
    Set if true, NFC will be used. If false, no miss caching will happen.
  • setProviderHint
    Set the implementation of repository.
  • setProviderRole
    Set the type of repository.
  • getId
    Get repository ID. It should uniquely identify this repository across Nexus.
  • setProviderRole,
  • getId,
  • getLocalStorage,
  • getName,
  • setSearchable,
  • getLocalStatus,
  • getProviderHint,
  • getNotFoundCacheTTL,
  • setBrowseable

Popular in Java

  • Finding current android device location
  • scheduleAtFixedRate (Timer)
  • putExtra (Intent)
  • findViewById (Activity)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Runner (org.openjdk.jmh.runner)
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now