Package org.apache.kafka.streams
Enum Topology.AutoOffsetReset
- java.lang.Object
-
- java.lang.Enum<Topology.AutoOffsetReset>
-
- org.apache.kafka.streams.Topology.AutoOffsetReset
-
- All Implemented Interfaces:
Serializable
,Comparable<Topology.AutoOffsetReset>
- Enclosing class:
- Topology
public static enum Topology.AutoOffsetReset extends Enum<Topology.AutoOffsetReset>
Sets theauto.offset.reset
configuration whenadding a source processor
or when creatingKStream
orKTable
viaStreamsBuilder
.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Topology.AutoOffsetReset
valueOf(String name)
Returns the enum constant of this type with the specified name.static Topology.AutoOffsetReset[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EARLIEST
public static final Topology.AutoOffsetReset EARLIEST
-
LATEST
public static final Topology.AutoOffsetReset LATEST
-
-
Method Detail
-
values
public static Topology.AutoOffsetReset[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Topology.AutoOffsetReset c : Topology.AutoOffsetReset.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Topology.AutoOffsetReset valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-