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 Summary
Modifier and Type Method Description @NotNull StringgetBindAddress()The bind address of HiveMQ the client is connected to.@NotNull ListenerTypegetListenerType()The type of the listener the client uses for the connection to HiveMQ.@NotNull StringgetName()intgetPort()The port of HiveMQ the client is connected to.
-
Method Details
-
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
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
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
- Returns:
- The configured or default name of the listener.
- Since:
- 4.1.0, CE 2020.1
-