[infinispan-issues] [JBoss JIRA] (ISPN-12042) RemoteCacheConfigurationBuilder only implements Builder

Donald Naro (Jira) issues at jboss.org
Mon Jun 22 11:36:03 EDT 2020


Donald Naro created ISPN-12042:
----------------------------------

             Summary: RemoteCacheConfigurationBuilder only implements Builder
                 Key: ISPN-12042
                 URL: https://issues.redhat.com/browse/ISPN-12042
             Project: Infinispan
          Issue Type: Bug
          Components: Remote Protocols
    Affects Versions: 11.0.0.Final
            Reporter: Donald Naro


{color:#333333}RemoteCacheConfigurationBuilder only implements Builder so you can't chain config methods from its result.
{color}

 

{color:#333333}For example, the following does not compile if you call remoteCache on the same builder:
{color}

{color:#333333}{{.{color:#7b8e29}remoteCache{color}({color:#6da02b}"another-cache"{color}).{color:#7b8e29}configuration{color}({color:#6da02b}"<infinispan><cache-container><distributed-cache name=\"another-cache\"/></cache-container></infinispan>"{color}).{color:#7b8e29}remoteCache{color}({color:#6da02b}"my-cache"{color}).{color:#7b8e29}templateName{color}({color:#6da02b}"org.infinispan.DIST_SYNC"{color});}}{color}

 

{color:#333333}This works:

builder.remoteCache("another-cache")
 .configuration("<infinispan><cache-container><distributed-cache name=\"another-cache\"/></cache-container></infinispan>");
 builder.remoteCache("my-cache")
 .templateName("org.infinispan.DIST_SYNC");{color}



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



More information about the infinispan-issues mailing list