Package org.apache.kafka.streams.kstream
Class TimeWindowedSerializer<T>
java.lang.Object
org.apache.kafka.streams.kstream.TimeWindowedSerializer<T>
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Serializer<Windowed<T>>
,org.apache.kafka.streams.kstream.internals.WindowedSerializer<T>
public class TimeWindowedSerializer<T>
extends Object
implements org.apache.kafka.streams.kstream.internals.WindowedSerializer<T>
-
Constructor Details
-
TimeWindowedSerializer
public TimeWindowedSerializer() -
TimeWindowedSerializer
-
-
Method Details
-
configure
Description copied from interface:Serializer
Configure this class.- Specified by:
configure
in interfaceSerializer<T>
- Parameters:
configs
- configs in key/value pairsisKey
- whether is for key or value
-
serialize
Description copied from interface:Serializer
Convertdata
into a byte array.- Specified by:
serialize
in interfaceSerializer<T>
- Parameters:
topic
- topic associated with datadata
- typed data- Returns:
- serialized bytes
-
close
public void close()Description copied from interface:Serializer
Close this serializer.This method must be idempotent as it may be called multiple times.
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceSerializer<T>
-
serializeBaseKey
- Specified by:
serializeBaseKey
in interfaceorg.apache.kafka.streams.kstream.internals.WindowedSerializer<T>
-