SubscriptionProperties Class
- java.
lang. Object - com.
azure. messaging. servicebus. administration. models. SubscriptionProperties
- com.
public final class SubscriptionProperties
Properties on a subscription.
Method Summary
Modifier and Type | Method and Description |
---|---|
Duration |
getAutoDeleteOnIdle()
Get the auto |
Duration |
getDefaultMessageTimeToLive()
Get the default |
String |
getForwardDeadLetteredMessagesTo()
Get the forward |
String |
getForwardTo()
Get the forward |
Duration |
getLockDuration()
Get the lock |
int |
getMaxDeliveryCount()
Get the max |
Entity |
getStatus()
Get the status property: Status of a Service Bus resource. |
String |
getSubscriptionName()
Gets the name of the subscription. |
String |
getTopicName()
Gets the name of the topic under which subscription exists. |
String |
getUserMetadata()
Get the user |
boolean |
isBatchedOperationsEnabled()
Get the enable |
boolean |
isDeadLetteringOnFilterEvaluationExceptions()
Get the dead |
boolean |
isDeadLetteringOnMessageExpiration()
Get the dead |
boolean |
isSessionRequired()
Get the requires |
Subscription |
setAutoDeleteOnIdle(Duration autoDeleteOnIdle)
Set the auto |
Subscription |
setBatchedOperationsEnabled(boolean enableBatchedOperations)
Set the enable |
Subscription |
setDeadLetteringOnMessageExpiration(boolean deadLetteringOnMessageExpiration)
Set the dead |
Subscription |
setDefaultMessageTimeToLive(Duration defaultMessageTimeToLive)
Set the default |
Subscription |
setEnableDeadLetteringOnFilterEvaluationExceptions(boolean deadLetteringOnFilterEvaluationExceptions)
Set the dead |
Subscription |
setForwardDeadLetteredMessagesTo(String forwardDeadLetteredMessagesTo)
Set the forward |
Subscription |
setForwardTo(String forwardTo)
Set the forward |
Subscription |
setLockDuration(Duration lockDuration)
Set the lock |
Subscription |
setMaxDeliveryCount(int maxDeliveryCount)
Set the max |
Subscription |
setStatus(EntityStatus status)
Set the status property: Status of a Service Bus resource. |
Subscription |
setUserMetadata(String userMetadata)
Set the user |
Methods inherited from java.lang.Object
Method Details
getAutoDeleteOnIdle
public Duration getAutoDeleteOnIdle()
Get the autoDeleteOnIdle property: ISO 8601 timeSpan idle interval after which the subscription is automatically deleted. The minimum duration is 5 minutes.
Returns:
getDefaultMessageTimeToLive
public Duration getDefaultMessageTimeToLive()
Get 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.
Returns:
getForwardDeadLetteredMessagesTo
public String getForwardDeadLetteredMessagesTo()
Get the forwardDeadLetteredMessagesTo property: The name of the recipient entity to which all the messages sent to the subscription are forwarded to.
Returns:
getForwardTo
public String getForwardTo()
Get the forwardTo property: The name of the recipient entity to which all the messages sent to the subscription are forwarded to.
Returns:
getLockDuration
public Duration getLockDuration()
Get the lockDuration property: ISO 8601 timespan duration of a peek-lock; that is, the amount of time that the message is locked for other receivers. The maximum value for LockDuration is 5 minutes; the default value is 1 minute.
Returns:
getMaxDeliveryCount
public int getMaxDeliveryCount()
Get the maxDeliveryCount property: The maximum delivery count. A message is automatically deadlettered after this number of deliveries. Default value is 10.
Returns:
getStatus
public EntityStatus getStatus()
Get the status property: Status of a Service Bus resource.
Returns:
getSubscriptionName
public String getSubscriptionName()
Gets the name of the subscription.
Returns:
getTopicName
public String getTopicName()
Gets the name of the topic under which subscription exists.
Returns:
getUserMetadata
public String getUserMetadata()
Get the userMetadata property: Metadata associated with the subscription. Maximum number of characters is 1024.
Returns:
isBatchedOperationsEnabled
public boolean isBatchedOperationsEnabled()
Get the enableBatchedOperations property: Value that indicates whether server-side batched operations are enabled.
Returns:
isDeadLetteringOnFilterEvaluationExceptions
public boolean isDeadLetteringOnFilterEvaluationExceptions()
Get the deadLetteringOnFilterEvaluationExceptions property: A value that indicates whether this subscription has dead letter support when a message expires.
Returns:
isDeadLetteringOnMessageExpiration
public boolean isDeadLetteringOnMessageExpiration()
Get the deadLetteringOnMessageExpiration property: A value that indicates whether this subscription has dead letter support when a message expires.
Returns:
isSessionRequired
public boolean isSessionRequired()
Get the requiresSession property: A value that indicates whether the queue supports the concept of sessions.
Returns:
setAutoDeleteOnIdle
public SubscriptionProperties setAutoDeleteOnIdle(Duration autoDeleteOnIdle)
Set the autoDeleteOnIdle property: ISO 8601 timeSpan idle interval after which the subscription is automatically deleted. The minimum duration is 5 minutes.
Parameters:
Returns:
setBatchedOperationsEnabled
public SubscriptionProperties setBatchedOperationsEnabled(boolean enableBatchedOperations)
Set the enableBatchedOperations property: Value that indicates whether server-side batched operations are enabled.
Parameters:
Returns:
setDeadLetteringOnMessageExpiration
public SubscriptionProperties setDeadLetteringOnMessageExpiration(boolean deadLetteringOnMessageExpiration)
Set the deadLetteringOnMessageExpiration property: A value that indicates whether this subscription has dead letter support when a message expires.
Parameters:
Returns:
setDefaultMessageTimeToLive
public SubscriptionProperties setDefaultMessageTimeToLive(Duration defaultMessageTimeToLive)
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.
Parameters:
Returns:
setEnableDeadLetteringOnFilterEvaluationExceptions
public SubscriptionProperties setEnableDeadLetteringOnFilterEvaluationExceptions(boolean deadLetteringOnFilterEvaluationExceptions)
Set the deadLetteringOnFilterEvaluationExceptions property: A value that indicates whether this subscription has dead letter support when a message expires.
Parameters:
Returns:
setForwardDeadLetteredMessagesTo
public SubscriptionProperties setForwardDeadLetteredMessagesTo(String forwardDeadLetteredMessagesTo)
Set the forwardDeadLetteredMessagesTo property: The name of the recipient entity to which all the messages sent to the subscription are forwarded to.
Parameters:
Returns:
setForwardTo
public SubscriptionProperties setForwardTo(String forwardTo)
Set the forwardTo property: The name of the recipient entity to which all the messages sent to the subscription are forwarded to.
Parameters:
Returns:
setLockDuration
public SubscriptionProperties setLockDuration(Duration lockDuration)
Set the lockDuration property: ISO 8601 timespan duration of a peek-lock; that is, the amount of time that the message is locked for other receivers. The maximum value for LockDuration is 5 minutes; the default value is 1 minute.
Parameters:
Returns:
setMaxDeliveryCount
public SubscriptionProperties setMaxDeliveryCount(int maxDeliveryCount)
Set the maxDeliveryCount property: The maximum delivery count. A message is automatically deadlettered after this number of deliveries. Default value is 10.
Parameters:
Returns:
setStatus
public SubscriptionProperties setStatus(EntityStatus status)
Set the status property: Status of a Service Bus resource.
Parameters:
Returns:
setUserMetadata
public SubscriptionProperties setUserMetadata(String userMetadata)
Set the userMetadata property: Metadata associated with the subscription. Maximum number of characters is 1024.
Parameters:
Returns: