Package io.zeebe.client.api.command
Interface PublishMessageCommandStep1.PublishMessageCommandStep3
-
- All Superinterfaces:
FinalCommandStep<PublishMessageResponse>
- All Known Implementing Classes:
PublishMessageCommandImpl
- Enclosing interface:
- PublishMessageCommandStep1
public static interface PublishMessageCommandStep1.PublishMessageCommandStep3 extends FinalCommandStep<PublishMessageResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PublishMessageCommandStep1.PublishMessageCommandStep3
messageId(String messageId)
Set the id of the message.PublishMessageCommandStep1.PublishMessageCommandStep3
timeToLive(Duration timeToLive)
Set the time-to-live of the message.PublishMessageCommandStep1.PublishMessageCommandStep3
variables(InputStream variables)
Set the variables of the message.PublishMessageCommandStep1.PublishMessageCommandStep3
variables(Object variables)
Set the variables of the message.PublishMessageCommandStep1.PublishMessageCommandStep3
variables(String variables)
Set the variables of the message.PublishMessageCommandStep1.PublishMessageCommandStep3
variables(Map<String,Object> variables)
Set the variables of the message.-
Methods inherited from interface io.zeebe.client.api.command.FinalCommandStep
requestTimeout, send
-
-
-
-
Method Detail
-
messageId
PublishMessageCommandStep1.PublishMessageCommandStep3 messageId(String messageId)
Set the id of the message. The message is rejected if another message is already published with the same id, name and correlation-key.- Parameters:
messageId
- the id of the message- Returns:
- the builder for this command. Call
FinalCommandStep.send()
to complete the command and send it to the broker.
-
timeToLive
PublishMessageCommandStep1.PublishMessageCommandStep3 timeToLive(Duration timeToLive)
Set the time-to-live of the message. The message can only be correlated within the given time-to-live.If the duration is zero or negative then the message can only be correlated to open subscriptions (e.g. to an entered message catch event).
If no duration is set then the default is used from the configuration.
- Parameters:
timeToLive
- the time-to-live of the message- Returns:
- the builder for this command. Call
FinalCommandStep.send()
to complete the command and send it to the broker.
-
variables
PublishMessageCommandStep1.PublishMessageCommandStep3 variables(InputStream variables)
Set the variables of the message.- Parameters:
variables
- the variables (JSON) as stream- Returns:
- the builder for this command. Call
FinalCommandStep.send()
to complete the command and send it to the broker.
-
variables
PublishMessageCommandStep1.PublishMessageCommandStep3 variables(String variables)
Set the variables of the message.- Parameters:
variables
- the variables (JSON) as String- Returns:
- the builder for this command. Call
FinalCommandStep.send()
to complete the command and send it to the broker.
-
variables
PublishMessageCommandStep1.PublishMessageCommandStep3 variables(Map<String,Object> variables)
Set the variables of the message.- Parameters:
variables
- the variables as map- Returns:
- the builder for this command. Call
FinalCommandStep.send()
to complete the command and send it to the broker.
-
variables
PublishMessageCommandStep1.PublishMessageCommandStep3 variables(Object variables)
Set the variables of the message.- Parameters:
variables
- the variables as object- Returns:
- the builder for this command. Call
FinalCommandStep.send()
to complete the command and send it to the broker.
-
-