public enum Protocol extends Enum<Protocol>
| Enum Constant and Description |
|---|
LOCAL
Deliver mqtt messages over local connection.
|
SSL
Deliver mqtt messages over SSL/TLS connection.
|
TCP
Deliver mqtt messages over TCP connection.
|
WS
Deliver mqtt messages using WebSockets connection.
|
WSS
Deliver mqtt messages over Secure WebSockets connection.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getProtocol() |
static Protocol |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Protocol[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Protocol TCP
public static final Protocol WS
public static final Protocol WSS
public static final Protocol SSL
public static final Protocol LOCAL
public static Protocol[] values()
for (Protocol c : Protocol.values()) System.out.println(c);
public static Protocol valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String getProtocol()
Copyright © 2025 MuleSoft, Inc.. All rights reserved.