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

Allow creation of RemoteCacheConfigurations at runtime

    XMLWordPrintable

Details

    Description

      ISPN-11676 added the ability to have per-cache client configurations. It should be possible to add new configurations after a RemoteCacheManager has been started.

      public void remoteCache(String name, Consumer<RemoteCacheConfigurationBuilder> builderConsumer);
      

      If the `name` doesn't yet exist, a builder will be created and the `Consumer` invoked to allow configuration, as follows:

      remoteCache("blah", c -> c.nearCacheMode(NearCacheMode.INVALIDATED).templateName(DefaultTemplate.DIST_SYNC));
      

      Attachments

        Activity

          People

            ttarrant@redhat.com Tristan Tarrant
            ttarrant@redhat.com Tristan Tarrant
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: