@Summary(value="Generates a client id from a static prefix and appends a random uuid suffix") public class ClientIDRandomSuffixGenerator extends Object implements ClientIDGenerator
ClientIDGenerator implementation that will attach a random UUID to
the specified Client ID, as a suffix. If a client ID is not provided, the random
UUID will be used as the connection identifier.| Modifier and Type | Field and Description |
|---|---|
protected String |
clientId
Client id to be used to identify the connection to the MQTT broker.
|
| Constructor and Description |
|---|
ClientIDRandomSuffixGenerator() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
generateClientID() |
String |
getClientId() |
int |
hashCode() |
void |
setClientId(String clientId) |
@Parameter @DisplayName(value="Client ID") @Optional(defaultValue="") @Expression(value=NOT_SUPPORTED) @ClientId @Summary(value="A static client id prefix to identify the connection to the broker") protected String clientId
public String generateClientID()
generateClientID in interface ClientIDGeneratorpublic String getClientId()
public void setClientId(String clientId)
Copyright © 2025 MuleSoft, Inc.. All rights reserved.