Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-12042

RemoteCacheConfigurationBuilder only implements Builder

    Details

    • Type: Bug
    • Status: New (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 11.0.0.Final
    • Fix Version/s: None
    • Component/s: Remote Protocols
    • Labels:
      None

      Description

      RemoteCacheConfigurationBuilder only implements Builder so you can't chain config methods from its result.

       

      For example, the following does not compile if you call remoteCache on the same builder:

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

       

      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");

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                dnaro27 Donald Naro
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: