public class TopicDescription extends Object
Constructor and Description |
---|
TopicDescription(String path)
Initializes a new instance of TopicDescription with the specified relative path.
|
public TopicDescription(String path)
path
- - Path of the topic.
Max length is 260 chars. Cannot start or end with a slash.
Cannot have restricted characters: '@','?','#','*'public String getPath()
public long getMaxSizeInMB()
public void setMaxSizeInMB(long maxSize)
maxSize
- - Sets the maximum size of the topic in megabytes, which is the size of memory allocated for the topic.public boolean isRequiresDuplicateDetection()
IMessage.getMessageId()
and sent to queue
within duration of getDuplicationDetectionHistoryTimeWindow()
will be discarded.public void setRequiresDuplicateDetection(boolean requiresDuplicateDetection)
requiresDuplicateDetection
- - Set to true if duplicate detection needs to be enabled.
See also - isRequiresDuplicateDetection()
public Duration getDefaultMessageTimeToLive()
IMessage.getTimeToLive()
is not set on a message itself.
Messages older than their TimeToLive value will expire and no longer be retained in the message store.
Subscribers will be unable to receive expired messages.ManagementClientConstants.MAX_DURATION
public void setDefaultMessageTimeToLive(Duration defaultMessageTimeToLive)
defaultMessageTimeToLive
- - Sets the default message time to live value.
Value cannot be lower than 1 second.
See getDefaultMessageTimeToLive()
public Duration getAutoDeleteOnIdle()
ManagementClientConstants.MAX_DURATION
public void setAutoDeleteOnIdle(Duration autoDeleteOnIdle)
autoDeleteOnIdle
- - The idle interval after which the topic is automatically deleted.
The minimum duration is 5 minutes.public Duration getDuplicationDetectionHistoryTimeWindow()
public void setDuplicationDetectionHistoryTimeWindow(Duration duplicationDetectionHistoryTimeWindow)
duplicationDetectionHistoryTimeWindow
- - The duration of duplicate detection history that is maintained by the service.
Max value is 1 day and minimum is 20 seconds.public boolean isEnableBatchedOperations()
public void setEnableBatchedOperations(boolean enableBatchedOperations)
enableBatchedOperations
- - Indicates whether server-side batched operations are enabled.public List<AuthorizationRule> getAuthorizationRules()
AuthorizationRule
on the topic to control user access at entity level.public void setAuthorizationRules(List<AuthorizationRule> authorizationRules)
authorizationRules
- - The AuthorizationRule
on the topic to control user access at entity level.public EntityStatus getEntityStatus()
public void setEntityStatus(EntityStatus status)
status
- - the status of the topic (Enabled / Disabled).
When an entity is disabled, that entity cannot send or receive messages.public boolean isEnablePartitioning()
public void setEnablePartitioning(boolean enablePartitioning)
enablePartitioning
- - true if topic is to be partitioned across multiple message brokers.public boolean isSupportOrdering()
public void setSupportOrdering(boolean supportOrdering)
supportOrdering
- - Defines whether ordering needs to be maintained. If true, messages sent to topic will be
forwarded to the subscription in order.public String getUserMetadata()
public void setUserMetadata(String userMetadata)
userMetadata
- - Custom metdata that user can associate with the description.
Cannot be null. Max length is 1024 charsCopyright © 2019 Microsoft Corporation. All rights reserved.