Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-1868

enable() method is missing after async() in "ConfigurationBuilder Programmatic Configuration API"

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • Low

      In
      doc: https://docs.jboss.org/author/display/ISPN/Configuring+cache+programmatically
      section: "Configuring Infinispan with one or several chained persistent stores is simple too:"

      I think enable() is missing after async() in the following code (with infinispan-5.1.1):
      actual doc:

      Configuration config = new ConfigurationBuilder()
            .loaders()
              .shared(false).passivation(false).preload(false)
              .addFileCacheStore().location("/tmp").streamBufferSize(1800).async().threadPoolSize(20).build();
      

      corrected doc:

      Configuration config = new ConfigurationBuilder()
            .loaders()
              .shared(false).passivation(false).preload(false)
      .addFileCacheStore().location("/tmp").streamBufferSize(1800).async().enable().threadPoolSize(20).build();
      

      I added a comment on the page you can remove (I spent so much time to understand why it didn't works that I've filled a ticket to ask for toString() methods in configuration objects: ISPN-1861)

              manik_jira Manik Surtani (Inactive)
              domak Christophe Domas (Inactive)
              Archiver:
              rhn-support-adongare Amol Dongare

                Created:
                Updated:
                Resolved:
                Archived: