ServiceBusMessage.setTimeToLive(Duration timeToLive) Method

Definition

Sets the duration of time before this message expires.

public ServiceBusMessage setTimeToLive(Duration timeToLive)

Parameters

timeToLive
java.time.Duration

Time to Live duration of this message

Returns

Applies to