Class None<K extends Comparable<K>>
java.lang.Object
io.aiven.commons.kafka.connector.source.lookback.None<K>
- Type Parameters:
K- the key type.
- All Implemented Interfaces:
Lookback<K>
Lookback that does not track any keys.
-
Constructor Details
-
None
public None()Constructor.
-
-
Method Details
-
add
Description copied from interface:LookbackAdds a key to the lookback tracking.- Specified by:
addin interfaceLookback<K extends Comparable<K>>- Parameters:
key- the key to add.
-
get
Description copied from interface:LookbackGets the key to query for.- Specified by:
getin interfaceLookback<K extends Comparable<K>>- Returns:
- the key to query for.
-
size
public int size()Description copied from interface:LookbackGets the number of keys this Lookback can store.- Specified by:
sizein interfaceLookback<K extends Comparable<K>>- Returns:
- the number of keys this Lookback can store.
-
contains
Description copied from interface:LookbackDetermines if the key is in the lookback.- Specified by:
containsin interfaceLookback<K extends Comparable<K>>- Parameters:
key- the key to search for.- Returns:
- true if this lookback holds the key.
-