Class DefaultMqttPahoClientFactory

java.lang.Object
org.springframework.integration.mqtt.core.DefaultMqttPahoClientFactory
All Implemented Interfaces:
MqttPahoClientFactory

@Deprecated(since="7.2", forRemoval=true) public class DefaultMqttPahoClientFactory extends Object implements MqttPahoClientFactory
Deprecated, for removal: This API element is subject to removal in a future version.
since 7.2 in favor of the spring-integration-mqtt-client module.
Creates a default MqttClient and a set of options as configured.
Since:
4.0
Author:
Gary Russell, Gunnar Hillert, Jaehong Park
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Deprecated, for removal: This API element is subject to removal in a future version.
    An MQTT will message.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.eclipse.paho.client.mqttv3.IMqttAsyncClient
    getAsyncClientInstance(@Nullable String uri, String clientId)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Retrieve an async client instance.
    org.eclipse.paho.client.mqttv3.IMqttClient
    getClientInstance(@Nullable String uri, String clientId)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Retrieve a client instance.
    org.eclipse.paho.client.mqttv3.MqttConnectOptions
    Deprecated, for removal: This API element is subject to removal in a future version.
    Retrieve the connection options.
    void
    setConnectionOptions(org.eclipse.paho.client.mqttv3.MqttConnectOptions options)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Set the preconfigured MqttConnectOptions.
    void
    setPersistence(org.eclipse.paho.client.mqttv3.MqttClientPersistence persistence)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Set the persistence to pass into the client constructor.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DefaultMqttPahoClientFactory

      public DefaultMqttPahoClientFactory()
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • setPersistence

      public void setPersistence(org.eclipse.paho.client.mqttv3.MqttClientPersistence persistence)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Set the persistence to pass into the client constructor.
      Parameters:
      persistence - the persistence to set.
    • getClientInstance

      public org.eclipse.paho.client.mqttv3.IMqttClient getClientInstance(@Nullable String uri, String clientId) throws org.eclipse.paho.client.mqttv3.MqttException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: MqttPahoClientFactory
      Retrieve a client instance.
      Specified by:
      getClientInstance in interface MqttPahoClientFactory
      Parameters:
      uri - The URL.
      clientId - The client id.
      Returns:
      The client instance.
      Throws:
      org.eclipse.paho.client.mqttv3.MqttException - Any.
    • getAsyncClientInstance

      public org.eclipse.paho.client.mqttv3.IMqttAsyncClient getAsyncClientInstance(@Nullable String uri, String clientId) throws org.eclipse.paho.client.mqttv3.MqttException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: MqttPahoClientFactory
      Retrieve an async client instance.
      Specified by:
      getAsyncClientInstance in interface MqttPahoClientFactory
      Parameters:
      uri - The URL.
      clientId - The client id.
      Returns:
      The client instance.
      Throws:
      org.eclipse.paho.client.mqttv3.MqttException - Any.
    • setConnectionOptions

      public void setConnectionOptions(org.eclipse.paho.client.mqttv3.MqttConnectOptions options)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Set the preconfigured MqttConnectOptions.
      Parameters:
      options - the options.
      Since:
      4.3.16
    • getConnectionOptions

      public org.eclipse.paho.client.mqttv3.MqttConnectOptions getConnectionOptions()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: MqttPahoClientFactory
      Retrieve the connection options.
      Specified by:
      getConnectionOptions in interface MqttPahoClientFactory
      Returns:
      The options.