Class CdcReplicationDefinition
java.lang.Object
org.gridgain.internal.cdc.api.replication.CdcReplicationDefinition
The definition of a CDC replication. See
CdcReplicationInstance for more details.-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forCdcReplicationDefinition.builderFrom(CdcReplicationDefinition definition) Creates a builder forCdcReplicationDefinitioninitialized with values from the given definition.The list of nodes where the replication will be executed.mode()The mode of the replication.name()The name of the replication.sinkName()The name of the sink where the data will be replicated.The name of the source from which the data will be replicated.Converts this definition to a builder.
-
Constructor Details
-
CdcReplicationDefinition
public CdcReplicationDefinition()Constructor needed for deserialization.
-
-
Method Details
-
name
The name of the replication. The name is unique.- Returns:
- The name of the replication.
-
sinkName
The name of the sink where the data will be replicated.- Returns:
- The name of the sink.
-
sourceName
The name of the source from which the data will be replicated.- Returns:
- The name of the source.
-
mode
The mode of the replication.- Returns:
- The mode of the replication.
-
executionNodes
The list of nodes where the replication will be executed.- Returns:
- The list of execution nodes.
-
builder
Creates a builder forCdcReplicationDefinition.- Returns:
- Builder for
CdcReplicationDefinition.
-
builderFrom
public static CdcReplicationDefinition.ReplicationDefinitionBuilder builderFrom(CdcReplicationDefinition definition) Creates a builder forCdcReplicationDefinitioninitialized with values from the given definition.- Parameters:
definition- The definition to copy values from.- Returns:
- Builder for
CdcReplicationDefinitioninitialized with the given definition's values.
-
toBuilder
Converts this definition to a builder.- Returns:
- A builder initialized with the current values of this definition.
-