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

Allow creation of RemoteCacheConfigurations at runtime

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

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • 11.0.0.Final
    • 11.0.0.Final
    • 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
              Archiver:
              rhn-support-adongare Amol Dongare

                Created:
                Updated:
                Resolved:
                Archived: