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

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

    XMLWordPrintable

Details

    • Low

    Description

      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)

      Attachments

        Activity

          People

            manik_jira Manik Surtani (Inactive)
            domak Christophe Domas (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: