[infinispan-issues] [JBoss JIRA] (ISPN-11852) Allow creation of RemoteCacheConfigurations at runtime

Tristan Tarrant (Jira) issues at jboss.org
Mon May 18 10:20:00 EDT 2020


Tristan Tarrant created ISPN-11852:
--------------------------------------

             Summary: Allow creation of RemoteCacheConfigurations at runtime
                 Key: ISPN-11852
                 URL: https://issues.redhat.com/browse/ISPN-11852
             Project: Infinispan
          Issue Type: Enhancement
          Components: Configuration, Hot Rod
    Affects Versions: 11.0.0.Dev05
            Reporter: Tristan Tarrant
            Assignee: Tristan Tarrant
             Fix For: 11.0.0.CR1


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.


{code:java}
public void remoteCache(String name, Consumer<RemoteCacheConfigurationBuilder> builderConsumer);
{code}

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


{code:java}
remoteCache("blah", c -> c.nearCacheMode(NearCacheMode.INVALIDATED).templateName(DefaultTemplate.DIST_SYNC));
{code}




--
This message was sent by Atlassian Jira
(v7.13.8#713008)


More information about the infinispan-issues mailing list