Struct MigrationExecution
This class is used to control the execution mechanism for migrations.
Inherited Members
Namespace: LaunchDarkly.Sdk.Server.Migrations
Assembly: LaunchDarkly.ServerSdk.dll
Syntax
public readonly struct MigrationExecution
Remarks
Read operations may be executed in parallel, sequentially in a fixed order, or sequentially in a randomized order.
This class facilitates correct combinations of parallel/serial with random/fixed.
Properties
| Edit this page View SourceMode
The execution mode to use for a migration.
Declaration
public MigrationExecutionMode Mode { get; }
Property Value
Type | Description |
---|---|
MigrationExecutionMode |
Order
If the execution mode is serial, then this indicates if it should be in a random or fixed order.
Declaration
public MigrationSerialOrder Order { get; }
Property Value
Type | Description |
---|---|
MigrationSerialOrder |
Methods
| Edit this page View SourceParallel()
Construct a parallel execution.
Declaration
public static MigrationExecution Parallel()
Returns
Type | Description |
---|---|
MigrationExecution | a migration execution instance |
Serial(MigrationSerialOrder)
Construct a serial execution with the specified ordering.
Declaration
public static MigrationExecution Serial(MigrationSerialOrder order)
Parameters
Type | Name | Description |
---|---|---|
MigrationSerialOrder | order | the serial execution order fixed/random |
Returns
Type | Description |
---|---|
MigrationExecution | a migration execution instance |
ToString()
Produce a string representation. This is intended for informational purposes only and subject to change.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | a string representation |