public static enum SourceTask.TransactionBoundary extends Enum<SourceTask.TransactionBoundary>
SourceTask.TRANSACTION_BOUNDARY_CONFIG
property.Enum Constant and Description |
---|
CONNECTOR
Transactions will be defined by the connector itself, via a
TransactionContext . |
INTERVAL
Transactions will be started and committed on a user-defined time interval.
|
POLL
A new transaction will be started and committed for every batch of records returned by
SourceTask.poll() . |
Modifier and Type | Field and Description |
---|---|
static SourceTask.TransactionBoundary |
DEFAULT
The default transaction boundary style that will be used for source connectors when no style is explicitly
configured.
|
Modifier and Type | Method and Description |
---|---|
static SourceTask.TransactionBoundary |
fromProperty(String property)
Parse a
SourceTask.TransactionBoundary from the given string. |
String |
toString() |
static SourceTask.TransactionBoundary |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SourceTask.TransactionBoundary[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SourceTask.TransactionBoundary POLL
SourceTask.poll()
.public static final SourceTask.TransactionBoundary INTERVAL
public static final SourceTask.TransactionBoundary CONNECTOR
TransactionContext
.public static final SourceTask.TransactionBoundary DEFAULT
public static SourceTask.TransactionBoundary[] values()
for (SourceTask.TransactionBoundary c : SourceTask.TransactionBoundary.values()) System.out.println(c);
public static SourceTask.TransactionBoundary valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static SourceTask.TransactionBoundary fromProperty(String property)
SourceTask.TransactionBoundary
from the given string.property
- the string to parse; should not be nullSourceTask.TransactionBoundary
whose name matches the given stringIllegalArgumentException
- if there is no transaction boundary type with the given namepublic String toString()
toString
in class Enum<SourceTask.TransactionBoundary>