public static interface PublishMessageCommandStep1.PublishMessageCommandStep3 extends FinalCommandStep<Void>
Modifier and Type | Method and Description |
---|---|
PublishMessageCommandStep1.PublishMessageCommandStep3 |
messageId(String messageId)
Set the id of the message.
|
PublishMessageCommandStep1.PublishMessageCommandStep3 |
payload(InputStream payload)
Set the payload of the message.
|
PublishMessageCommandStep1.PublishMessageCommandStep3 |
payload(Map<String,Object> payload)
Set the payload of the message.
|
PublishMessageCommandStep1.PublishMessageCommandStep3 |
payload(Object payload)
Set the payload of the message.
|
PublishMessageCommandStep1.PublishMessageCommandStep3 |
payload(String payload)
Set the payload of the message.
|
PublishMessageCommandStep1.PublishMessageCommandStep3 |
timeToLive(java.time.Duration timeToLive)
Set the time-to-live of the message.
|
send
PublishMessageCommandStep1.PublishMessageCommandStep3 messageId(String messageId)
messageId
- the id of the messageFinalCommandStep.send()
to complete the command and send
it to the broker.PublishMessageCommandStep1.PublishMessageCommandStep3 timeToLive(java.time.Duration timeToLive)
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.
timeToLive
- the time-to-live of the messageFinalCommandStep.send()
to complete the command and send
it to the broker.PublishMessageCommandStep1.PublishMessageCommandStep3 payload(InputStream payload)
payload
- the payload (JSON) as streamFinalCommandStep.send()
to complete the command and send
it to the broker.PublishMessageCommandStep1.PublishMessageCommandStep3 payload(String payload)
payload
- the payload (JSON) as StringFinalCommandStep.send()
to complete the command and send
it to the broker.PublishMessageCommandStep1.PublishMessageCommandStep3 payload(Map<String,Object> payload)
payload
- the payload as mapFinalCommandStep.send()
to complete the command and send
it to the broker.PublishMessageCommandStep1.PublishMessageCommandStep3 payload(Object payload)
payload
- the payload as objectFinalCommandStep.send()
to complete the command and send
it to the broker.Copyright © 2017–2018 camunda services GmbH. All rights reserved.