@Summary(value="Generates a client id from a static prefix and a dynamic suffix") public class ClientIDCustomExpressionGenerator extends Object implements ClientIDGenerator
ClientIDGenerator implementation that allows the user
to specify an client id and a custom expression to be
added to the client id as a suffix. Both are optional, but at least one
of these fields must be specified in order to successfully generate a client ID.| Modifier and Type | Field and Description |
|---|---|
protected String |
clientId
Client id used to identify the connection to the MQTT broker.
|
protected String |
customClientIdSuffix
Custom client id suffix used to identify the connection to the MQTT broker.
|
| Constructor and Description |
|---|
ClientIDCustomExpressionGenerator() |
@Parameter @DisplayName(value="Client ID") @Optional(defaultValue="") @Expression(value=NOT_SUPPORTED) @ClientId @Summary(value="A static client id to identify the connection to the broker") protected String clientId
@Parameter @DisplayName(value="Custom Client ID Suffix") @Expression(value=SUPPORTED) @Optional(defaultValue="") @Summary(value="A dynamic client id suffix") protected String customClientIdSuffix
public String generateClientID()
generateClientID in interface ClientIDGeneratorCopyright © 2025 MuleSoft, Inc.. All rights reserved.