CreateSubscriptionOptions.setDefaultMessageTimeToLive(Duration defaultMessageTimeToLive) Method

Definition

Set the defaultMessageTimeToLive property: ISO 8601 default message timespan to live value. This is the duration after which the message expires, starting from when the message is sent to Service Bus. This is the default value used when TimeToLive is not set on a message itself.

public CreateSubscriptionOptions setDefaultMessageTimeToLive(Duration defaultMessageTimeToLive)

Parameters

defaultMessageTimeToLive
java.time.Duration

the defaultMessageTimeToLive value to set.

Returns

the CreateSubscriptionOptions object itself.

Applies to