Class ResponsePath.ResponsePathBuilder

  • Enclosing class:
    ResponsePath

    public static class ResponsePath.ResponsePathBuilder
    extends Object
    Builder type for ResponsePath instances
    • Method Detail

      • withResponseTopic

        public ResponsePath.ResponsePathBuilder withResponseTopic​(String responseTopic)
        Fluent setter for the MQTT topic associated with this response path.
        Parameters:
        responseTopic - MQTT topic associated with this response path
        Returns:
        the builder object
      • withCorrelationTokenJsonPath

        public ResponsePath.ResponsePathBuilder withCorrelationTokenJsonPath​(String correlationTokenJsonPath)
        Fluent setter for the JSON path for finding correlation tokens within payloads that arrive on this response path's topic.
        Parameters:
        correlationTokenJsonPath - JSON path for finding correlation tokens within payloads that arrive on this response path's topic
        Returns:
        the builder object
      • build

        public ResponsePath build()
        Creates a new ResponsePath instance based on the builder's configuration.
        Returns:
        a new ResponsePath instance based on the builder's configuration