Package io.debezium.embedded.spi
Interface OffsetCommitPolicy
-
- All Superinterfaces:
io.debezium.engine.spi.OffsetCommitPolicy
- All Known Implementing Classes:
OffsetCommitPolicy.AlwaysCommitOffsetPolicy,OffsetCommitPolicy.PeriodicCommitOffsetPolicy
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@Deprecated @FunctionalInterface public interface OffsetCommitPolicy extends io.debezium.engine.spi.OffsetCommitPolicy
Deprecated.The policy that defines when the offsets should be committed tooffset storage.- Author:
- Randall Hauch
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classOffsetCommitPolicy.AlwaysCommitOffsetPolicyDeprecated.AnOffsetCommitPolicythat will commit offsets as frequently as possible.static classOffsetCommitPolicy.PeriodicCommitOffsetPolicyDeprecated.AnOffsetCommitPolicythat will commit offsets no more than the specified time period.
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Deprecated Methods Modifier and Type Method Description static OffsetCommitPolicyalways()Deprecated.default OffsetCommitPolicyand(OffsetCommitPolicy other)Deprecated.Obtain a newOffsetCommitPolicythat will commit offsets if both this policy AND the other requests it.default OffsetCommitPolicyor(OffsetCommitPolicy other)Deprecated.Obtain a newOffsetCommitPolicythat will commit offsets if this policy OR the other requests it.static OffsetCommitPolicyperiodic(Configuration config)Deprecated.
-
-
-
Method Detail
-
always
static OffsetCommitPolicy always()
Deprecated.
-
periodic
static OffsetCommitPolicy periodic(Configuration config)
Deprecated.
-
or
default OffsetCommitPolicy or(OffsetCommitPolicy other)
Deprecated.Obtain a newOffsetCommitPolicythat will commit offsets if this policy OR the other requests it.- Parameters:
other- the other commit policy; if null, then this policy instance is returned as is- Returns:
- the resulting policy; never null
-
and
default OffsetCommitPolicy and(OffsetCommitPolicy other)
Deprecated.Obtain a newOffsetCommitPolicythat will commit offsets if both this policy AND the other requests it.- Parameters:
other- the other commit policy; if null, then this policy instance is returned as is- Returns:
- the resulting policy; never null
-
-