Interface Listener


  • @DoNotImplement
    public interface Listener
    Holds information about the listener a client uses for a connection to HiveMQ.
    Since:
    4.0.0, CE 2019.1
    • Method Detail

      • getPort

        int getPort()
        The port of HiveMQ the client is connected to.
        Returns:
        The port of the listener.
        Since:
        4.0.0, CE 2019.1
      • getBindAddress

        @NotNull String getBindAddress()
        The bind address of HiveMQ the client is connected to.
        Returns:
        The bind address of the listener.
        Since:
        4.0.0, CE 2019.1
      • getListenerType

        @NotNull ListenerType getListenerType()
        The type of the listener the client uses for the connection to HiveMQ.
        Returns:
        The type of the listener.
        Since:
        4.0.0, CE 2019.1
      • getName

        @NotNull String getName()
        Returns:
        The configured or default name of the listener.
        Since:
        4.1.0, CE 2020.1