Package io.camunda.client.protocol.rest
Class MessagePublicationRequest
java.lang.Object
io.camunda.client.protocol.rest.MessagePublicationRequest
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class MessagePublicationRequest
extends Object
MessagePublicationRequest
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbusinessId(String businessId) correlationKey(String correlationKey) booleanAn optional business id used to enforce uniqueness of the process instance that a message start event would create.The correlation key of the message.The unique ID of the message.getName()The name of the message.The tenant of the message sender.Timespan (in ms) to buffer the message on the broker.The message variables as JSON document.inthashCode()putVariablesItem(String key, Object variablesItem) voidsetBusinessId(String businessId) voidsetCorrelationKey(String correlationKey) voidsetMessageId(String messageId) voidvoidsetTenantId(String tenantId) voidsetTimeToLive(Long timeToLive) voidsetVariables(Map<String, Object> variables) timeToLive(Long timeToLive) toString()
-
Field Details
-
JSON_PROPERTY_NAME
- See Also:
-
JSON_PROPERTY_CORRELATION_KEY
- See Also:
-
JSON_PROPERTY_TIME_TO_LIVE
- See Also:
-
JSON_PROPERTY_MESSAGE_ID
- See Also:
-
JSON_PROPERTY_VARIABLES
- See Also:
-
JSON_PROPERTY_TENANT_ID
- See Also:
-
JSON_PROPERTY_BUSINESS_ID
- See Also:
-
-
Constructor Details
-
MessagePublicationRequest
public MessagePublicationRequest()
-
-
Method Details
-
name
-
getName
The name of the message.- Returns:
- name
-
setName
-
correlationKey
-
getCorrelationKey
The correlation key of the message.- Returns:
- correlationKey
-
setCorrelationKey
-
timeToLive
-
getTimeToLive
Timespan (in ms) to buffer the message on the broker.- Returns:
- timeToLive
-
setTimeToLive
-
messageId
-
getMessageId
The unique ID of the message. This is used to ensure only one message with the given ID will be published during the lifetime of the message (if `timeToLive` is set).- Returns:
- messageId
-
setMessageId
-
variables
-
putVariablesItem
-
getVariables
The message variables as JSON document.- Returns:
- variables
-
setVariables
-
tenantId
-
getTenantId
The tenant of the message sender.- Returns:
- tenantId
-
setTenantId
-
businessId
-
getBusinessId
An optional business id used to enforce uniqueness of the process instance that a message start event would create. If provided and uniqueness enforcement is enabled, the engine rejects starting a new process instance when another root process instance with the same business id is already active for the same process definition. It has no effect when the message correlates to a catch, boundary, or intermediate event.- Returns:
- businessId
-
setBusinessId
-
equals
-
hashCode
public int hashCode() -
toString
-