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

Tristan Tarrant (Jira) issues at jboss.org
Tue May 19 05:09:09 EDT 2020


     [ https://issues.redhat.com/browse/ISPN-11852?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tristan Tarrant updated ISPN-11852:
-----------------------------------
              Status: Pull Request Sent  (was: Open)
    Git Pull Request: https://github.com/infinispan/infinispan/pull/8342


> 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
>            Priority: Major
>             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