[JBoss JIRA] (ISPN-11852) Allow creation of RemoteCacheConfigurations at runtime
by Ryan Emerson (Jira)
[ https://issues.redhat.com/browse/ISPN-11852?page=com.atlassian.jira.plugi... ]
Ryan Emerson resolved ISPN-11852.
---------------------------------
Resolution: Done
> 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)
4 years, 7 months