]
Tristan Tarrant updated ISPN-11852:
-----------------------------------
Status: Pull Request Sent (was: Open)
Git Pull Request:
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}