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

Paul Ferraro (Jira) issues at jboss.org
Mon May 18 17:23:33 EDT 2020


    [ https://issues.redhat.com/browse/ISPN-11852?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14103849#comment-14103849 ] 

Paul Ferraro commented on ISPN-11852:
-------------------------------------

[~NadirX] Can we also include a mechanism to remove a configuration?  If I create a deployment specific remote cache configuration on deploy and I'd like to be able to remove it on undeploy.

> 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