Class: NamespaceReplicationConfig
replication.v1.NamespaceReplicationConfig
Represents a NamespaceReplicationConfig.
Implements
Constructors
constructor
• new NamespaceReplicationConfig(properties?
): NamespaceReplicationConfig
Constructs a new NamespaceReplicationConfig.
Parameters
Name | Type | Description |
---|---|---|
properties? | INamespaceReplicationConfig | Properties to set |
Returns
Properties
activeClusterName
• activeClusterName: string
NamespaceReplicationConfig activeClusterName.
Implementation of
INamespaceReplicationConfig.activeClusterName
clusters
• clusters: IClusterReplicationConfig
[]
NamespaceReplicationConfig clusters.
Implementation of
INamespaceReplicationConfig.clusters
state
• state: ReplicationState
NamespaceReplicationConfig state.
Implementation of
INamespaceReplicationConfig.state
Methods
toJSON
▸ toJSON(): Object
Converts this NamespaceReplicationConfig to JSON.
Returns
Object
JSON object
create
▸ create(properties?
): NamespaceReplicationConfig
Creates a new NamespaceReplicationConfig instance using the specified properties.
Parameters
Name | Type | Description |
---|---|---|
properties? | INamespaceReplicationConfig | Properties to set |
Returns
NamespaceReplicationConfig instance
decode
▸ decode(reader
, length?
): NamespaceReplicationConfig
Decodes a NamespaceReplicationConfig message from the specified reader or buffer.
Parameters
Name | Type | Description |
---|---|---|
reader | Uint8Array | Reader | Reader or buffer to decode from |
length? | number | Message length if known beforehand |
Returns
NamespaceReplicationConfig
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing