ArmIotOperationsModelFactory.BrokerPersistence Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
public static Azure.ResourceManager.IotOperations.Models.BrokerPersistence BrokerPersistence(string maxSize = default, Azure.ResourceManager.IotOperations.Models.VolumeClaimSpec persistentVolumeClaimSpec = default, Azure.ResourceManager.IotOperations.Models.BrokerRetainMessagesPolicy retain = default, Azure.ResourceManager.IotOperations.Models.BrokerStateStorePolicy stateStore = default, Azure.ResourceManager.IotOperations.Models.BrokerSubscriberQueuePolicy subscriberQueue = default, Azure.ResourceManager.IotOperations.Models.IotOperationsOperationalMode? encryptionMode = default);
static member BrokerPersistence : string * Azure.ResourceManager.IotOperations.Models.VolumeClaimSpec * Azure.ResourceManager.IotOperations.Models.BrokerRetainMessagesPolicy * Azure.ResourceManager.IotOperations.Models.BrokerStateStorePolicy * Azure.ResourceManager.IotOperations.Models.BrokerSubscriberQueuePolicy * Nullable<Azure.ResourceManager.IotOperations.Models.IotOperationsOperationalMode> -> Azure.ResourceManager.IotOperations.Models.BrokerPersistence
Public Shared Function BrokerPersistence (Optional maxSize As String = Nothing, Optional persistentVolumeClaimSpec As VolumeClaimSpec = Nothing, Optional retain As BrokerRetainMessagesPolicy = Nothing, Optional stateStore As BrokerStateStorePolicy = Nothing, Optional subscriberQueue As BrokerSubscriberQueuePolicy = Nothing, Optional encryptionMode As Nullable(Of IotOperationsOperationalMode) = Nothing) As BrokerPersistence
Parameters
- maxSize
- String
The max size of the message buffer on disk. If a PVC template is specified using persistentVolumeClaimSpec Then this size is used as the request and limit sizes of that template. If a PVC template isn't specified Then local-path provisioner is requested with this size limit. Required.
- persistentVolumeClaimSpec
- VolumeClaimSpec
Use the specified persistent volume claim template to mount a persistent volume. Same object as in diskBackedMessageBuffer, but with a limitation that access modes field must be set to ReadWriteOncePod.
If unset, a default PVC with default properties will be used. Among other things this PVC will use the cluster default storage class, which may or may not be using a local path provisioner. User is opting in to sub-optimal behavior if they leave this unset or set it without the storage class field, and their cluster default is not a local path class.
- retain
- BrokerRetainMessagesPolicy
Controls which topic's retained messages should be persisted to disk.
- stateStore
- BrokerStateStorePolicy
Controls which keys should be persisted to disk for the state store.
- subscriberQueue
- BrokerSubscriberQueuePolicy
Controls which subscriber message queues should be persisted to disk. Important: to facilitate reconnection, session state metadata are ALWAYS written to disk if any persistence setting is specified, even if this section isn't set.
- encryptionMode
- Nullable<IotOperationsOperationalMode>
Determines if encryption is enabled.
Returns
A new BrokerPersistence instance for mocking.