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 class
OffsetCommitPolicy.AlwaysCommitOffsetPolicy
Deprecated.AnOffsetCommitPolicy
that will commit offsets as frequently as possible.static class
OffsetCommitPolicy.PeriodicCommitOffsetPolicy
Deprecated.AnOffsetCommitPolicy
that 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 OffsetCommitPolicy
always()
Deprecated.default OffsetCommitPolicy
and(OffsetCommitPolicy other)
Deprecated.Obtain a newOffsetCommitPolicy
that will commit offsets if both this policy AND the other requests it.default OffsetCommitPolicy
or(OffsetCommitPolicy other)
Deprecated.Obtain a newOffsetCommitPolicy
that will commit offsets if this policy OR the other requests it.static OffsetCommitPolicy
periodic(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 newOffsetCommitPolicy
that 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 newOffsetCommitPolicy
that 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
-
-