Class MessageBroker


  • public class MessageBroker
    extends java.lang.Object
    Implements a message broker configuration.
    • Constructor Summary

      Constructors 
      Constructor Description
      MessageBroker​(java.lang.String host, java.lang.String port, boolean tls, boolean tlsVerifyCertificate)
      Construct.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getHost()
      Gets the host address.
      java.lang.String getPort()
      Gets the TCP port.
      boolean isTls()
      Tells if TLS is used.
      boolean isTlsVerifyCertificate()
      Tells if TLS certificate verification is enabled.
      • Methods inherited from class java.lang.Object

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

      • MessageBroker

        public MessageBroker​(java.lang.String host,
                             java.lang.String port,
                             boolean tls,
                             boolean tlsVerifyCertificate)
        Construct.
        Parameters:
        host - the message broker host address
        port - the message broker TCP port
        tls - use TLS when true
        tlsVerifyCertificate - verifies TLS certificate when true, otherwise not
    • Method Detail

      • getHost

        public java.lang.String getHost()
        Gets the host address.
        Returns:
        a string
      • getPort

        public java.lang.String getPort()
        Gets the TCP port.
        Returns:
        a string with numeric value
      • isTls

        public boolean isTls()
        Tells if TLS is used.
        Returns:
        true if used, false otherwise
      • isTlsVerifyCertificate

        public boolean isTlsVerifyCertificate()
        Tells if TLS certificate verification is enabled.
        Returns:
        true if verification enabled, false otherwise