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

Allow creation of RemoteCacheConfigurations at runtime

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • 11.0.0.CR1
    • 11.0.0.Dev05
    • Configuration, Hot Rod
    • None

      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));
      

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

              Created:
              Updated:
              Resolved: