SBQueueInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. core. management. Resource - com.
azure. resourcemanager. servicebus. fluent. models. SBQueueInner
- com.
- com.
- com.
public final class SBQueueInner
extends Resource
Description of queue Resource.
Constructor Summary
Constructor | Description |
---|---|
SBQueueInner() |
Creates an instance of SBQueue |
Method Summary
Modifier and Type | Method and Description |
---|---|
Offset |
accessedAt()
Get the accessed |
Duration |
autoDeleteOnIdle()
Get the auto |
Message |
countDetails()
Get the count |
Offset |
createdAt()
Get the created |
Boolean |
deadLetteringOnMessageExpiration()
Get the dead |
Duration |
defaultMessageTimeToLive()
Get the default |
Duration |
duplicateDetectionHistoryTimeWindow()
Get the duplicate |
Boolean |
enableBatchedOperations()
Get the enable |
Boolean |
enableExpress()
Get the enable |
Boolean |
enablePartitioning()
Get the enable |
String |
forwardDeadLetteredMessagesTo()
Get the forward |
String |
forwardTo()
Get the forward |
static
SBQueue |
fromJson(JsonReader jsonReader)
Reads an instance of SBQueue |
String |
id()
Get the id property: Fully qualified resource Id for the resource. |
String |
location()
Get the location property: The geo-location where the resource lives. |
Duration |
lockDuration()
Get the lock |
Integer |
maxDeliveryCount()
Get the max |
Long |
maxMessageSizeInKilobytes()
Get the max |
Integer |
maxSizeInMegabytes()
Get the max |
Long |
messageCount()
Get the message |
String |
name()
Get the name property: The name of the resource. |
Boolean |
requiresDuplicateDetection()
Get the requires |
Boolean |
requiresSession()
Get the requires |
Long |
sizeInBytes()
Get the size |
Entity |
status()
Get the status property: Enumerates the possible values for the status of a messaging entity. |
System |
systemData()
Get the system |
Json |
toJson(JsonWriter jsonWriter) |
String |
type()
Get the type property: The type of the resource. |
Offset |
updatedAt()
Get the updated |
void |
validate()
Validates the instance. |
SBQueue |
withAutoDeleteOnIdle(Duration autoDeleteOnIdle)
Set the auto |
SBQueue |
withDeadLetteringOnMessageExpiration(Boolean deadLetteringOnMessageExpiration)
Set the dead |
SBQueue |
withDefaultMessageTimeToLive(Duration defaultMessageTimeToLive)
Set the default |
SBQueue |
withDuplicateDetectionHistoryTimeWindow(Duration duplicateDetectionHistoryTimeWindow)
Set the duplicate |
SBQueue |
withEnableBatchedOperations(Boolean enableBatchedOperations)
Set the enable |
SBQueue |
withEnableExpress(Boolean enableExpress)
Set the enable |
SBQueue |
withEnablePartitioning(Boolean enablePartitioning)
Set the enable |
SBQueue |
withForwardDeadLetteredMessagesTo(String forwardDeadLetteredMessagesTo)
Set the forward |
SBQueue |
withForwardTo(String forwardTo)
Set the forward |
SBQueue |
withLockDuration(Duration lockDuration)
Set the lock |
SBQueue |
withMaxDeliveryCount(Integer maxDeliveryCount)
Set the max |
SBQueue |
withMaxMessageSizeInKilobytes(Long maxMessageSizeInKilobytes)
Set the max |
SBQueue |
withMaxSizeInMegabytes(Integer maxSizeInMegabytes)
Set the max |
SBQueue |
withRequiresDuplicateDetection(Boolean requiresDuplicateDetection)
Set the requires |
SBQueue |
withRequiresSession(Boolean requiresSession)
Set the requires |
SBQueue |
withStatus(EntityStatus status)
Set the status property: Enumerates the possible values for the status of a messaging entity. |
Methods inherited from ProxyResource
Methods inherited from Resource
Methods inherited from java.lang.Object
Constructor Details
SBQueueInner
public SBQueueInner()
Creates an instance of SBQueueInner class.
Method Details
accessedAt
public OffsetDateTime accessedAt()
Get the accessedAt property: Last time a message was sent, or the last time there was a receive request to this queue.
Returns:
autoDeleteOnIdle
public Duration autoDeleteOnIdle()
Get the autoDeleteOnIdle property: ISO 8061 timeSpan idle interval after which the queue is automatically deleted. The minimum duration is 5 minutes.
Returns:
countDetails
public MessageCountDetails countDetails()
Get the countDetails property: Message Count Details.
Returns:
createdAt
public OffsetDateTime createdAt()
Get the createdAt property: The exact time the message was created.
Returns:
deadLetteringOnMessageExpiration
public Boolean deadLetteringOnMessageExpiration()
Get the deadLetteringOnMessageExpiration property: A value that indicates whether this queue has dead letter support when a message expires.
Returns:
defaultMessageTimeToLive
public Duration defaultMessageTimeToLive()
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:
duplicateDetectionHistoryTimeWindow
public Duration duplicateDetectionHistoryTimeWindow()
Get the duplicateDetectionHistoryTimeWindow property: ISO 8601 timeSpan structure that defines the duration of the duplicate detection history. The default value is 10 minutes.
Returns:
enableBatchedOperations
public Boolean enableBatchedOperations()
Get the enableBatchedOperations property: Value that indicates whether server-side batched operations are enabled.
Returns:
enableExpress
public Boolean enableExpress()
Get the enableExpress property: A value that indicates whether Express Entities are enabled. An express queue holds a message in memory temporarily before writing it to persistent storage.
Returns:
enablePartitioning
public Boolean enablePartitioning()
Get the enablePartitioning property: A value that indicates whether the queue is to be partitioned across multiple message brokers.
Returns:
forwardDeadLetteredMessagesTo
public String forwardDeadLetteredMessagesTo()
Get the forwardDeadLetteredMessagesTo property: Queue/Topic name to forward the Dead Letter message.
Returns:
forwardTo
public String forwardTo()
Get the forwardTo property: Queue/Topic name to forward the messages.
Returns:
fromJson
public static SBQueueInner fromJson(JsonReader jsonReader)
Reads an instance of SBQueueInner from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
SBQueueInner.id()Returns:
location
public String location()
Get the location property: The geo-location where the resource lives.
Overrides:
SBQueueInner.location()Returns:
lockDuration
public Duration lockDuration()
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:
maxDeliveryCount
public Integer maxDeliveryCount()
Get the maxDeliveryCount property: The maximum delivery count. A message is automatically deadlettered after this number of deliveries. default value is 10.
Returns:
maxMessageSizeInKilobytes
public Long maxMessageSizeInKilobytes()
Get the maxMessageSizeInKilobytes property: Maximum size (in KB) of the message payload that can be accepted by the queue. This property is only used in Premium today and default is 1024.
Returns:
maxSizeInMegabytes
public Integer maxSizeInMegabytes()
Get the maxSizeInMegabytes property: The maximum size of the queue in megabytes, which is the size of memory allocated for the queue. Default is 1024.
Returns:
messageCount
public Long messageCount()
Get the messageCount property: The number of messages in the queue.
Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
SBQueueInner.name()Returns:
requiresDuplicateDetection
public Boolean requiresDuplicateDetection()
Get the requiresDuplicateDetection property: A value indicating if this queue requires duplicate detection.
Returns:
requiresSession
public Boolean requiresSession()
Get the requiresSession property: A value that indicates whether the queue supports the concept of sessions.
Returns:
sizeInBytes
public Long sizeInBytes()
Get the sizeInBytes property: The size of the queue, in bytes.
Returns:
status
public EntityStatus status()
Get the status property: Enumerates the possible values for the status of a messaging entity.
Returns:
systemData
public SystemData systemData()
Get the systemData property: The system meta data relating to this resource.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
SBQueueInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
SBQueueInner.type()Returns:
updatedAt
public OffsetDateTime updatedAt()
Get the updatedAt property: The exact time the message was updated.
Returns:
validate
public void validate()
Validates the instance.
withAutoDeleteOnIdle
public SBQueueInner withAutoDeleteOnIdle(Duration autoDeleteOnIdle)
Set the autoDeleteOnIdle property: ISO 8061 timeSpan idle interval after which the queue is automatically deleted. The minimum duration is 5 minutes.
Parameters:
Returns:
withDeadLetteringOnMessageExpiration
public SBQueueInner withDeadLetteringOnMessageExpiration(Boolean deadLetteringOnMessageExpiration)
Set the deadLetteringOnMessageExpiration property: A value that indicates whether this queue has dead letter support when a message expires.
Parameters:
Returns:
withDefaultMessageTimeToLive
public SBQueueInner withDefaultMessageTimeToLive(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:
withDuplicateDetectionHistoryTimeWindow
public SBQueueInner withDuplicateDetectionHistoryTimeWindow(Duration duplicateDetectionHistoryTimeWindow)
Set the duplicateDetectionHistoryTimeWindow property: ISO 8601 timeSpan structure that defines the duration of the duplicate detection history. The default value is 10 minutes.
Parameters:
Returns:
withEnableBatchedOperations
public SBQueueInner withEnableBatchedOperations(Boolean enableBatchedOperations)
Set the enableBatchedOperations property: Value that indicates whether server-side batched operations are enabled.
Parameters:
Returns:
withEnableExpress
public SBQueueInner withEnableExpress(Boolean enableExpress)
Set the enableExpress property: A value that indicates whether Express Entities are enabled. An express queue holds a message in memory temporarily before writing it to persistent storage.
Parameters:
Returns:
withEnablePartitioning
public SBQueueInner withEnablePartitioning(Boolean enablePartitioning)
Set the enablePartitioning property: A value that indicates whether the queue is to be partitioned across multiple message brokers.
Parameters:
Returns:
withForwardDeadLetteredMessagesTo
public SBQueueInner withForwardDeadLetteredMessagesTo(String forwardDeadLetteredMessagesTo)
Set the forwardDeadLetteredMessagesTo property: Queue/Topic name to forward the Dead Letter message.
Parameters:
Returns:
withForwardTo
public SBQueueInner withForwardTo(String forwardTo)
Set the forwardTo property: Queue/Topic name to forward the messages.
Parameters:
Returns:
withLockDuration
public SBQueueInner withLockDuration(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:
withMaxDeliveryCount
public SBQueueInner withMaxDeliveryCount(Integer 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:
withMaxMessageSizeInKilobytes
public SBQueueInner withMaxMessageSizeInKilobytes(Long maxMessageSizeInKilobytes)
Set the maxMessageSizeInKilobytes property: Maximum size (in KB) of the message payload that can be accepted by the queue. This property is only used in Premium today and default is 1024.
Parameters:
Returns:
withMaxSizeInMegabytes
public SBQueueInner withMaxSizeInMegabytes(Integer maxSizeInMegabytes)
Set the maxSizeInMegabytes property: The maximum size of the queue in megabytes, which is the size of memory allocated for the queue. Default is 1024.
Parameters:
Returns:
withRequiresDuplicateDetection
public SBQueueInner withRequiresDuplicateDetection(Boolean requiresDuplicateDetection)
Set the requiresDuplicateDetection property: A value indicating if this queue requires duplicate detection.
Parameters:
Returns:
withRequiresSession
public SBQueueInner withRequiresSession(Boolean requiresSession)
Set the requiresSession property: A value that indicates whether the queue supports the concept of sessions.
Parameters:
Returns:
withStatus
public SBQueueInner withStatus(EntityStatus status)
Set the status property: Enumerates the possible values for the status of a messaging entity.
Parameters:
Returns:
Applies to
Azure SDK for Java