@ProviderType
public static interface SolaceProperties.ClientProperties
MessagingService
instances. The properties are for use with MessagingServiceClientBuilder.fromProperties(Properties)
.
Example usage:
final Properties clientProperties = new Properties();
clientProperties.setProperty(ClientProperties.NAME, "Some Client Name");
clientProperties.setProperty(ClientProperties.APPLICATION_DESCRIPTION, "Client Description");
final MessagingServiceClientBuilder serviceBuilder = new MessagingServiceClientBuilder(ConfigurationProfile.V1);
final MessagingService service = serviceBuilder.fromProperties(clientProperties).build();
MessagingServiceClientBuilder.fromProperties(Properties)
Modifier and Type | Field and Description |
---|---|
static String |
APPLICATION_DESCRIPTION
A property key to specify a client description to report to an appliance.
|
static String |
NAME
A property key to specify the unique client name to use to register to an appliance.
|
@PropertiesKeyMapping(mappedClass=com.solacesystems.jcsmp.JCSMPProperties.class, mappedFieldName="APPLICATION_DESCRIPTION", valueType=java.lang.String.class) static final String APPLICATION_DESCRIPTION
@PropertiesKeyMapping(mappedClass=com.solacesystems.jcsmp.JCSMPProperties.class, mappedFieldName="CLIENT_NAME", valueType=java.lang.String.class) static final String NAME
$HOSTNAME/$PID/#instanceId
(e.g., "localhost/999/#00010123"
). Setting this property is optional.Copyright 2019-2024 Solace Corporation. All rights reserved.