Interface PahoMqtt5EndpointBuilderFactory.PahoMqtt5EndpointConsumerBuilder

  • All Superinterfaces:
    org.apache.camel.builder.EndpointConsumerBuilder, org.apache.camel.EndpointConsumerResolver
    All Known Subinterfaces:
    PahoMqtt5EndpointBuilderFactory.PahoMqtt5EndpointBuilder
    Enclosing interface:
    PahoMqtt5EndpointBuilderFactory

    public static interface PahoMqtt5EndpointBuilderFactory.PahoMqtt5EndpointConsumerBuilder
    extends org.apache.camel.builder.EndpointConsumerBuilder
    Builder for endpoint consumers for the Paho MQTT 5 component.
    • Method Detail

      • automaticReconnect

        default PahoMqtt5EndpointBuilderFactory.PahoMqtt5EndpointConsumerBuilder automaticReconnect​(boolean automaticReconnect)
        Sets whether the client will automatically attempt to reconnect to the server if the connection is lost. If set to false, the client will not attempt to automatically reconnect to the server in the event that the connection is lost. If set to true, in the event that the connection is lost, the client will attempt to reconnect to the server. It will initially wait 1 second before it attempts to reconnect, for every failed reconnect attempt, the delay will double until it is at 2 minutes at which point the delay will stay at 2 minutes. The option is a: <code>boolean</code> type. Default: true Group: common
        Parameters:
        automaticReconnect - the value to set
        Returns:
        the dsl builder
      • automaticReconnect

        default PahoMqtt5EndpointBuilderFactory.PahoMqtt5EndpointConsumerBuilder automaticReconnect​(String automaticReconnect)
        Sets whether the client will automatically attempt to reconnect to the server if the connection is lost. If set to false, the client will not attempt to automatically reconnect to the server in the event that the connection is lost. If set to true, in the event that the connection is lost, the client will attempt to reconnect to the server. It will initially wait 1 second before it attempts to reconnect, for every failed reconnect attempt, the delay will double until it is at 2 minutes at which point the delay will stay at 2 minutes. The option will be converted to a <code>boolean</code> type. Default: true Group: common
        Parameters:
        automaticReconnect - the value to set
        Returns:
        the dsl builder
      • cleanStart

        default PahoMqtt5EndpointBuilderFactory.PahoMqtt5EndpointConsumerBuilder cleanStart​(boolean cleanStart)
        Sets whether the client and server should remember state across restarts and reconnects. If set to false both the client and server will maintain state across restarts of the client, the server and the connection. As state is maintained: Message delivery will be reliable meeting the specified QOS even if the client, server or connection are restarted. The server will treat a subscription as durable. If set to true the client and server will not maintain state across restarts of the client, the server or the connection. This means Message delivery to the specified QOS cannot be maintained if the client, server or connection are restarted The server will treat a subscription as non-durable. The option is a: <code>boolean</code> type. Default: true Group: common
        Parameters:
        cleanStart - the value to set
        Returns:
        the dsl builder
      • cleanStart

        default PahoMqtt5EndpointBuilderFactory.PahoMqtt5EndpointConsumerBuilder cleanStart​(String cleanStart)
        Sets whether the client and server should remember state across restarts and reconnects. If set to false both the client and server will maintain state across restarts of the client, the server and the connection. As state is maintained: Message delivery will be reliable meeting the specified QOS even if the client, server or connection are restarted. The server will treat a subscription as durable. If set to true the client and server will not maintain state across restarts of the client, the server or the connection. This means Message delivery to the specified QOS cannot be maintained if the client, server or connection are restarted The server will treat a subscription as non-durable. The option will be converted to a <code>boolean</code> type. Default: true Group: common
        Parameters:
        cleanStart - the value to set
        Returns:
        the dsl builder
      • connectionTimeout

        default PahoMqtt5EndpointBuilderFactory.PahoMqtt5EndpointConsumerBuilder connectionTimeout​(int connectionTimeout)
        Sets the connection timeout value. This value, measured in seconds, defines the maximum time interval the client will wait for the network connection to the MQTT server to be established. The default timeout is 30 seconds. A value of 0 disables timeout processing meaning the client will wait until the network connection is made successfully or fails. The option is a: <code>int</code> type. Default: 30 Group: common
        Parameters:
        connectionTimeout - the value to set
        Returns:
        the dsl builder
      • connectionTimeout

        default PahoMqtt5EndpointBuilderFactory.PahoMqtt5EndpointConsumerBuilder connectionTimeout​(String connectionTimeout)
        Sets the connection timeout value. This value, measured in seconds, defines the maximum time interval the client will wait for the network connection to the MQTT server to be established. The default timeout is 30 seconds. A value of 0 disables timeout processing meaning the client will wait until the network connection is made successfully or fails. The option will be converted to a <code>int</code> type. Default: 30 Group: common
        Parameters:
        connectionTimeout - the value to set
        Returns:
        the dsl builder
      • filePersistenceDirectory

        default PahoMqtt5EndpointBuilderFactory.PahoMqtt5EndpointConsumerBuilder filePersistenceDirectory​(String filePersistenceDirectory)
        Base directory used by file persistence. Will by default use user directory. The option is a: <code>java.lang.String</code> type. Group: common
        Parameters:
        filePersistenceDirectory - the value to set
        Returns:
        the dsl builder
      • keepAliveInterval

        default PahoMqtt5EndpointBuilderFactory.PahoMqtt5EndpointConsumerBuilder keepAliveInterval​(int keepAliveInterval)
        Sets the keep alive interval. This value, measured in seconds, defines the maximum time interval between messages sent or received. It enables the client to detect if the server is no longer available, without having to wait for the TCP/IP timeout. The client will ensure that at least one message travels across the network within each keep alive period. In the absence of a data-related message during the time period, the client sends a very small ping message, which the server will acknowledge. A value of 0 disables keepalive processing in the client. The default value is 60 seconds. The option is a: <code>int</code> type. Default: 60 Group: common
        Parameters:
        keepAliveInterval - the value to set
        Returns:
        the dsl builder
      • keepAliveInterval

        default PahoMqtt5EndpointBuilderFactory.PahoMqtt5EndpointConsumerBuilder keepAliveInterval​(String keepAliveInterval)
        Sets the keep alive interval. This value, measured in seconds, defines the maximum time interval between messages sent or received. It enables the client to detect if the server is no longer available, without having to wait for the TCP/IP timeout. The client will ensure that at least one message travels across the network within each keep alive period. In the absence of a data-related message during the time period, the client sends a very small ping message, which the server will acknowledge. A value of 0 disables keepalive processing in the client. The default value is 60 seconds. The option will be converted to a <code>int</code> type. Default: 60 Group: common
        Parameters:
        keepAliveInterval - the value to set
        Returns:
        the dsl builder
      • maxReconnectDelay

        default PahoMqtt5EndpointBuilderFactory.PahoMqtt5EndpointConsumerBuilder maxReconnectDelay​(int maxReconnectDelay)
        Get the maximum time (in millis) to wait between reconnects. The option is a: <code>int</code> type. Default: 128000 Group: common
        Parameters:
        maxReconnectDelay - the value to set
        Returns:
        the dsl builder
      • maxReconnectDelay

        default PahoMqtt5EndpointBuilderFactory.PahoMqtt5EndpointConsumerBuilder maxReconnectDelay​(String maxReconnectDelay)
        Get the maximum time (in millis) to wait between reconnects. The option will be converted to a <code>int</code> type. Default: 128000 Group: common
        Parameters:
        maxReconnectDelay - the value to set
        Returns:
        the dsl builder
      • persistence

        default PahoMqtt5EndpointBuilderFactory.PahoMqtt5EndpointConsumerBuilder persistence​(org.apache.camel.component.paho.mqtt5.PahoMqtt5Persistence persistence)
        Client persistence to be used - memory or file. The option is a: <code>org.apache.camel.component.paho.mqtt5.PahoMqtt5Persistence</code> type. Default: MEMORY Group: common
        Parameters:
        persistence - the value to set
        Returns:
        the dsl builder
      • persistence

        default PahoMqtt5EndpointBuilderFactory.PahoMqtt5EndpointConsumerBuilder persistence​(String persistence)
        Client persistence to be used - memory or file. The option will be converted to a <code>org.apache.camel.component.paho.mqtt5.PahoMqtt5Persistence</code> type. Default: MEMORY Group: common
        Parameters:
        persistence - the value to set
        Returns:
        the dsl builder
      • receiveMaximum

        default PahoMqtt5EndpointBuilderFactory.PahoMqtt5EndpointConsumerBuilder receiveMaximum​(int receiveMaximum)
        Sets the Receive Maximum. This value represents the limit of QoS 1 and QoS 2 publications that the client is willing to process concurrently. There is no mechanism to limit the number of QoS 0 publications that the Server might try to send. The default value is 65535. The option is a: <code>int</code> type. Default: 65535 Group: common
        Parameters:
        receiveMaximum - the value to set
        Returns:
        the dsl builder
      • receiveMaximum

        default PahoMqtt5EndpointBuilderFactory.PahoMqtt5EndpointConsumerBuilder receiveMaximum​(String receiveMaximum)
        Sets the Receive Maximum. This value represents the limit of QoS 1 and QoS 2 publications that the client is willing to process concurrently. There is no mechanism to limit the number of QoS 0 publications that the Server might try to send. The default value is 65535. The option will be converted to a <code>int</code> type. Default: 65535 Group: common
        Parameters:
        receiveMaximum - the value to set
        Returns:
        the dsl builder
      • serverURIs

        default PahoMqtt5EndpointBuilderFactory.PahoMqtt5EndpointConsumerBuilder serverURIs​(String serverURIs)
        Set a list of one or more serverURIs the client may connect to. Multiple servers can be separated by comma. Each serverURI specifies the address of a server that the client may connect to. Two types of connection are supported tcp:// for a TCP connection and ssl:// for a TCP connection secured by SSL/TLS. For example: tcp://localhost:1883 ssl://localhost:8883 If the port is not specified, it will default to 1883 for tcp:// URIs, and 8883 for ssl:// URIs. If serverURIs is set then it overrides the serverURI parameter passed in on the constructor of the MQTT client. When an attempt to connect is initiated the client will start with the first serverURI in the list and work through the list until a connection is established with a server. If a connection cannot be made to any of the servers then the connect attempt fails. Specifying a list of servers that a client may connect to has several uses: High Availability and reliable message delivery Some MQTT servers support a high availability feature where two or more equal MQTT servers share state. An MQTT client can connect to any of the equal servers and be assured that messages are reliably delivered and durable subscriptions are maintained no matter which server the client connects to. The cleansession flag must be set to false if durable subscriptions and/or reliable message delivery is required. Hunt List A set of servers may be specified that are not equal (as in the high availability option). As no state is shared across the servers reliable message delivery and durable subscriptions are not valid. The cleansession flag must be set to true if the hunt list mode is used. The option is a: <code>java.lang.String</code> type. Group: common
        Parameters:
        serverURIs - the value to set
        Returns:
        the dsl builder
      • sessionExpiryInterval

        default PahoMqtt5EndpointBuilderFactory.PahoMqtt5EndpointConsumerBuilder sessionExpiryInterval​(long sessionExpiryInterval)
        Sets the Session Expiry Interval. This value, measured in seconds, defines the maximum time that the broker will maintain the session for once the client disconnects. Clients should only connect with a long Session Expiry interval if they intend to connect to the server at some later point in time. By default this value is -1 and so will not be sent, in this case, the session will not expire. If a 0 is sent, the session will end immediately once the Network Connection is closed. When the client has determined that it has no longer any use for the session, it should disconnect with a Session Expiry Interval set to 0. The option is a: <code>long</code> type. Default: -1 Group: common
        Parameters:
        sessionExpiryInterval - the value to set
        Returns:
        the dsl builder
      • sessionExpiryInterval

        default PahoMqtt5EndpointBuilderFactory.PahoMqtt5EndpointConsumerBuilder sessionExpiryInterval​(String sessionExpiryInterval)
        Sets the Session Expiry Interval. This value, measured in seconds, defines the maximum time that the broker will maintain the session for once the client disconnects. Clients should only connect with a long Session Expiry interval if they intend to connect to the server at some later point in time. By default this value is -1 and so will not be sent, in this case, the session will not expire. If a 0 is sent, the session will end immediately once the Network Connection is closed. When the client has determined that it has no longer any use for the session, it should disconnect with a Session Expiry Interval set to 0. The option will be converted to a <code>long</code> type. Default: -1 Group: common
        Parameters:
        sessionExpiryInterval - the value to set
        Returns:
        the dsl builder
      • willMqttProperties

        default PahoMqtt5EndpointBuilderFactory.PahoMqtt5EndpointConsumerBuilder willMqttProperties​(org.eclipse.paho.mqttv5.common.packet.MqttProperties willMqttProperties)
        Sets the Last Will and Testament (LWT) for the connection. In the event that this client unexpectedly loses its connection to the server, the server will publish a message to itself using the supplied details. The MQTT properties set for the message. The option is a: <code>org.eclipse.paho.mqttv5.common.packet.MqttProperties</code> type. Group: common
        Parameters:
        willMqttProperties - the value to set
        Returns:
        the dsl builder
      • willMqttProperties

        default PahoMqtt5EndpointBuilderFactory.PahoMqtt5EndpointConsumerBuilder willMqttProperties​(String willMqttProperties)
        Sets the Last Will and Testament (LWT) for the connection. In the event that this client unexpectedly loses its connection to the server, the server will publish a message to itself using the supplied details. The MQTT properties set for the message. The option will be converted to a <code>org.eclipse.paho.mqttv5.common.packet.MqttProperties</code> type. Group: common
        Parameters:
        willMqttProperties - the value to set
        Returns:
        the dsl builder
      • willPayload

        default PahoMqtt5EndpointBuilderFactory.PahoMqtt5EndpointConsumerBuilder willPayload​(String willPayload)
        Sets the Last Will and Testament (LWT) for the connection. In the event that this client unexpectedly loses its connection to the server, the server will publish a message to itself using the supplied details. The byte payload for the message. The option is a: <code>java.lang.String</code> type. Group: common
        Parameters:
        willPayload - the value to set
        Returns:
        the dsl builder
      • willQos

        default PahoMqtt5EndpointBuilderFactory.PahoMqtt5EndpointConsumerBuilder willQos​(int willQos)
        Sets the Last Will and Testament (LWT) for the connection. In the event that this client unexpectedly loses its connection to the server, the server will publish a message to itself using the supplied details. The quality of service to publish the message at (0, 1 or 2). The option is a: <code>int</code> type. Default: 1 Group: common
        Parameters:
        willQos - the value to set
        Returns:
        the dsl builder
      • willQos

        default PahoMqtt5EndpointBuilderFactory.PahoMqtt5EndpointConsumerBuilder willQos​(String willQos)
        Sets the Last Will and Testament (LWT) for the connection. In the event that this client unexpectedly loses its connection to the server, the server will publish a message to itself using the supplied details. The quality of service to publish the message at (0, 1 or 2). The option will be converted to a <code>int</code> type. Default: 1 Group: common
        Parameters:
        willQos - the value to set
        Returns:
        the dsl builder
      • willRetained

        default PahoMqtt5EndpointBuilderFactory.PahoMqtt5EndpointConsumerBuilder willRetained​(boolean willRetained)
        Sets the Last Will and Testament (LWT) for the connection. In the event that this client unexpectedly loses its connection to the server, the server will publish a message to itself using the supplied details. Whether or not the message should be retained. The option is a: <code>boolean</code> type. Default: false Group: common
        Parameters:
        willRetained - the value to set
        Returns:
        the dsl builder
      • willRetained

        default PahoMqtt5EndpointBuilderFactory.PahoMqtt5EndpointConsumerBuilder willRetained​(String willRetained)
        Sets the Last Will and Testament (LWT) for the connection. In the event that this client unexpectedly loses its connection to the server, the server will publish a message to itself using the supplied details. Whether or not the message should be retained. The option will be converted to a <code>boolean</code> type. Default: false Group: common
        Parameters:
        willRetained - the value to set
        Returns:
        the dsl builder
      • willTopic

        default PahoMqtt5EndpointBuilderFactory.PahoMqtt5EndpointConsumerBuilder willTopic​(String willTopic)
        Sets the Last Will and Testament (LWT) for the connection. In the event that this client unexpectedly loses its connection to the server, the server will publish a message to itself using the supplied details. The topic to publish to. The option is a: <code>java.lang.String</code> type. Group: common
        Parameters:
        willTopic - the value to set
        Returns:
        the dsl builder
      • httpsHostnameVerificationEnabled

        default PahoMqtt5EndpointBuilderFactory.PahoMqtt5EndpointConsumerBuilder httpsHostnameVerificationEnabled​(boolean httpsHostnameVerificationEnabled)
        Whether SSL HostnameVerifier is enabled or not. The default value is true. The option is a: <code>boolean</code> type. Default: true Group: security
        Parameters:
        httpsHostnameVerificationEnabled - the value to set
        Returns:
        the dsl builder
      • httpsHostnameVerificationEnabled

        default PahoMqtt5EndpointBuilderFactory.PahoMqtt5EndpointConsumerBuilder httpsHostnameVerificationEnabled​(String httpsHostnameVerificationEnabled)
        Whether SSL HostnameVerifier is enabled or not. The default value is true. The option will be converted to a <code>boolean</code> type. Default: true Group: security
        Parameters:
        httpsHostnameVerificationEnabled - the value to set
        Returns:
        the dsl builder
      • socketFactory

        default PahoMqtt5EndpointBuilderFactory.PahoMqtt5EndpointConsumerBuilder socketFactory​(SocketFactory socketFactory)
        Sets the SocketFactory to use. This allows an application to apply its own policies around the creation of network sockets. If using an SSL connection, an SSLSocketFactory can be used to supply application-specific security settings. The option is a: <code>javax.net.SocketFactory</code> type. Group: security
        Parameters:
        socketFactory - the value to set
        Returns:
        the dsl builder
      • socketFactory

        default PahoMqtt5EndpointBuilderFactory.PahoMqtt5EndpointConsumerBuilder socketFactory​(String socketFactory)
        Sets the SocketFactory to use. This allows an application to apply its own policies around the creation of network sockets. If using an SSL connection, an SSLSocketFactory can be used to supply application-specific security settings. The option will be converted to a <code>javax.net.SocketFactory</code> type. Group: security
        Parameters:
        socketFactory - the value to set
        Returns:
        the dsl builder
      • sslClientProps

        default PahoMqtt5EndpointBuilderFactory.PahoMqtt5EndpointConsumerBuilder sslClientProps​(Properties sslClientProps)
        Sets the SSL properties for the connection. Note that these properties are only valid if an implementation of the Java Secure Socket Extensions (JSSE) is available. These properties are not used if a custom SocketFactory has been set. The following properties can be used: com.ibm.ssl.protocol One of: SSL, SSLv3, TLS, TLSv1, SSL_TLS. com.ibm.ssl.contextProvider Underlying JSSE provider. For example IBMJSSE2 or SunJSSE com.ibm.ssl.keyStore The name of the file that contains the KeyStore object that you want the KeyManager to use. For example /mydir/etc/key.p12 com.ibm.ssl.keyStorePassword The password for the KeyStore object that you want the KeyManager to use. The password can either be in plain-text, or may be obfuscated using the static method: com.ibm.micro.security.Password.obfuscate(char password). This obfuscates the password using a simple and insecure XOR and Base64 encoding mechanism. Note that this is only a simple scrambler to obfuscate clear-text passwords. com.ibm.ssl.keyStoreType Type of key store, for example PKCS12, JKS, or JCEKS. com.ibm.ssl.keyStoreProvider Key store provider, for example IBMJCE or IBMJCEFIPS. com.ibm.ssl.trustStore The name of the file that contains the KeyStore object that you want the TrustManager to use. com.ibm.ssl.trustStorePassword The password for the TrustStore object that you want the TrustManager to use. The password can either be in plain-text, or may be obfuscated using the static method: com.ibm.micro.security.Password.obfuscate(char password). This obfuscates the password using a simple and insecure XOR and Base64 encoding mechanism. Note that this is only a simple scrambler to obfuscate clear-text passwords. com.ibm.ssl.trustStoreType The type of KeyStore object that you want the default TrustManager to use. Same possible values as keyStoreType. com.ibm.ssl.trustStoreProvider Trust store provider, for example IBMJCE or IBMJCEFIPS. com.ibm.ssl.enabledCipherSuites A list of which ciphers are enabled. Values are dependent on the provider, for example: SSL_RSA_WITH_AES_128_CBC_SHA;SSL_RSA_WITH_3DES_EDE_CBC_SHA. com.ibm.ssl.keyManager Sets the algorithm that will be used to instantiate a KeyManagerFactory object instead of using the default algorithm available in the platform. Example values: IbmX509 or IBMJ9X509. com.ibm.ssl.trustManager Sets the algorithm that will be used to instantiate a TrustManagerFactory object instead of using the default algorithm available in the platform. Example values: PKIX or IBMJ9X509. The option is a: <code>java.util.Properties</code> type. Group: security
        Parameters:
        sslClientProps - the value to set
        Returns:
        the dsl builder
      • sslClientProps

        default PahoMqtt5EndpointBuilderFactory.PahoMqtt5EndpointConsumerBuilder sslClientProps​(String sslClientProps)
        Sets the SSL properties for the connection. Note that these properties are only valid if an implementation of the Java Secure Socket Extensions (JSSE) is available. These properties are not used if a custom SocketFactory has been set. The following properties can be used: com.ibm.ssl.protocol One of: SSL, SSLv3, TLS, TLSv1, SSL_TLS. com.ibm.ssl.contextProvider Underlying JSSE provider. For example IBMJSSE2 or SunJSSE com.ibm.ssl.keyStore The name of the file that contains the KeyStore object that you want the KeyManager to use. For example /mydir/etc/key.p12 com.ibm.ssl.keyStorePassword The password for the KeyStore object that you want the KeyManager to use. The password can either be in plain-text, or may be obfuscated using the static method: com.ibm.micro.security.Password.obfuscate(char password). This obfuscates the password using a simple and insecure XOR and Base64 encoding mechanism. Note that this is only a simple scrambler to obfuscate clear-text passwords. com.ibm.ssl.keyStoreType Type of key store, for example PKCS12, JKS, or JCEKS. com.ibm.ssl.keyStoreProvider Key store provider, for example IBMJCE or IBMJCEFIPS. com.ibm.ssl.trustStore The name of the file that contains the KeyStore object that you want the TrustManager to use. com.ibm.ssl.trustStorePassword The password for the TrustStore object that you want the TrustManager to use. The password can either be in plain-text, or may be obfuscated using the static method: com.ibm.micro.security.Password.obfuscate(char password). This obfuscates the password using a simple and insecure XOR and Base64 encoding mechanism. Note that this is only a simple scrambler to obfuscate clear-text passwords. com.ibm.ssl.trustStoreType The type of KeyStore object that you want the default TrustManager to use. Same possible values as keyStoreType. com.ibm.ssl.trustStoreProvider Trust store provider, for example IBMJCE or IBMJCEFIPS. com.ibm.ssl.enabledCipherSuites A list of which ciphers are enabled. Values are dependent on the provider, for example: SSL_RSA_WITH_AES_128_CBC_SHA;SSL_RSA_WITH_3DES_EDE_CBC_SHA. com.ibm.ssl.keyManager Sets the algorithm that will be used to instantiate a KeyManagerFactory object instead of using the default algorithm available in the platform. Example values: IbmX509 or IBMJ9X509. com.ibm.ssl.trustManager Sets the algorithm that will be used to instantiate a TrustManagerFactory object instead of using the default algorithm available in the platform. Example values: PKIX or IBMJ9X509. The option will be converted to a <code>java.util.Properties</code> type. Group: security
        Parameters:
        sslClientProps - the value to set
        Returns:
        the dsl builder
      • sslHostnameVerifier

        default PahoMqtt5EndpointBuilderFactory.PahoMqtt5EndpointConsumerBuilder sslHostnameVerifier​(HostnameVerifier sslHostnameVerifier)
        Sets the HostnameVerifier for the SSL connection. Note that it will be used after handshake on a connection and you should do actions by yourself when hostname is verified error. There is no default HostnameVerifier. The option is a: <code>javax.net.ssl.HostnameVerifier</code> type. Group: security
        Parameters:
        sslHostnameVerifier - the value to set
        Returns:
        the dsl builder
      • sslHostnameVerifier

        default PahoMqtt5EndpointBuilderFactory.PahoMqtt5EndpointConsumerBuilder sslHostnameVerifier​(String sslHostnameVerifier)
        Sets the HostnameVerifier for the SSL connection. Note that it will be used after handshake on a connection and you should do actions by yourself when hostname is verified error. There is no default HostnameVerifier. The option will be converted to a <code>javax.net.ssl.HostnameVerifier</code> type. Group: security
        Parameters:
        sslHostnameVerifier - the value to set
        Returns:
        the dsl builder