Enum ListenerType
- java.lang.Object
-
- java.lang.Enum<ListenerType>
-
- com.hivemq.extension.sdk.api.client.parameter.ListenerType
-
- All Implemented Interfaces:
Serializable
,Comparable<ListenerType>
public enum ListenerType extends Enum<ListenerType>
The type of aListener
.- Since:
- 4.0.0, CE 2019.1
-
-
Enum Constant Summary
Enum Constants Enum Constant Description TCP_LISTENER
A TCP Listener is used.TLS_TCP_LISTENER
A TCP Listener with TLS is used.TLS_WEBSOCKET_LISTENER
A Websocket Listener with TLS is used.WEBSOCKET_LISTENER
A Websocket Listener is used.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ListenerType
valueOf(String name)
Returns the enum constant of this type with the specified name.static ListenerType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TCP_LISTENER
public static final ListenerType TCP_LISTENER
A TCP Listener is used.- Since:
- 4.0.0, CE 2019.1
-
TLS_TCP_LISTENER
public static final ListenerType TLS_TCP_LISTENER
A TCP Listener with TLS is used.- Since:
- 4.0.0, CE 2019.1
-
WEBSOCKET_LISTENER
public static final ListenerType WEBSOCKET_LISTENER
A Websocket Listener is used.- Since:
- 4.0.0, CE 2019.1
-
TLS_WEBSOCKET_LISTENER
public static final ListenerType TLS_WEBSOCKET_LISTENER
A Websocket Listener with TLS is used.- Since:
- 4.0.0, CE 2019.1
-
-
Method Detail
-
values
public static ListenerType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ListenerType c : ListenerType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ListenerType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-