Class StreamsContext
java.lang.Object
com.bakdata.kafka.streams.kstream.StreamsContext
Provides context for the configured Kafka Streams application environment, i.e., topic configuration and
StreamsConfig
-
Constructor Summary
ConstructorsConstructorDescriptionStreamsContext
(@NonNull StreamsTopicConfig topics, @NonNull com.bakdata.kafka.Configurator configurator) -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
toString()
<KR,
VR> BranchedKStreamX<KR, VR> wrap
(org.apache.kafka.streams.kstream.BranchedKStream<KR, VR> stream) Wrap aBranchedKStream
and add methods to simplify Serde configuration, error handling, and topic access<KR,
VR> CogroupedKStreamX<KR, VR> wrap
(org.apache.kafka.streams.kstream.CogroupedKStream<KR, VR> stream) Wrap aCogroupedKStream
and add methods to simplify Serde configuration, error handling, and topic access<KR,
VR> KGroupedStreamX<KR, VR> wrap
(org.apache.kafka.streams.kstream.KGroupedStream<KR, VR> stream) Wrap aKGroupedStream
and add methods to simplify Serde configuration, error handling, and topic access<KR,
VR> KGroupedTableX<KR, VR> wrap
(org.apache.kafka.streams.kstream.KGroupedTable<KR, VR> table) Wrap aKGroupedTable
and add methods to simplify Serde configuration, error handling, and topic access<KR,
VR> KStreamX<KR, VR> wrap
(org.apache.kafka.streams.kstream.KStream<KR, VR> stream) Wrap aKStream
and add methods to simplify Serde configuration, error handling, and topic access<KR,
VR> KTableX<KR, VR> wrap
(org.apache.kafka.streams.kstream.KTable<KR, VR> table) Wrap aKTable
and add methods to simplify Serde configuration, error handling, and topic access<KR,
VR> SessionWindowedCogroupedKStreamX<KR, VR> wrap
(org.apache.kafka.streams.kstream.SessionWindowedCogroupedKStream<KR, VR> stream) Wrap aSessionWindowedCogroupedKStream
and add methods to simplify Serde configuration, error handling, and topic access<KR,
VR> SessionWindowedKStreamX<KR, VR> wrap
(org.apache.kafka.streams.kstream.SessionWindowedKStream<KR, VR> stream) Wrap aSessionWindowedKStream
and add methods to simplify Serde configuration, error handling, and topic access<KR,
VR> TimeWindowedCogroupedKStreamX<KR, VR> wrap
(org.apache.kafka.streams.kstream.TimeWindowedCogroupedKStream<KR, VR> stream) Wrap aTimeWindowedCogroupedKStream
and add methods to simplify Serde configuration, error handling, and topic access<KR,
VR> TimeWindowedKStreamX<KR, VR> wrap
(org.apache.kafka.streams.kstream.TimeWindowedKStream<KR, VR> stream) Wrap aTimeWindowedKStream
and add methods to simplify Serde configuration, error handling, and topic access
-
Constructor Details
-
StreamsContext
public StreamsContext(@NonNull @NonNull StreamsTopicConfig topics, @NonNull @NonNull com.bakdata.kafka.Configurator configurator)
-
-
Method Details
-
wrap
Wrap aKStream
and add methods to simplify Serde configuration, error handling, and topic access- Type Parameters:
KR
- type of keys in the streamVR
- type of values in the stream- Parameters:
stream
- stream to be wrapped- Returns:
KStreamX
-
wrap
public <KR,VR> KGroupedStreamX<KR,VR> wrap(org.apache.kafka.streams.kstream.KGroupedStream<KR, VR> stream) Wrap aKGroupedStream
and add methods to simplify Serde configuration, error handling, and topic access- Type Parameters:
KR
- type of keys in the streamVR
- type of values in the stream- Parameters:
stream
- stream to be wrapped- Returns:
KGroupedStreamX
-
wrap
public <KR,VR> TimeWindowedKStreamX<KR,VR> wrap(org.apache.kafka.streams.kstream.TimeWindowedKStream<KR, VR> stream) Wrap aTimeWindowedKStream
and add methods to simplify Serde configuration, error handling, and topic access- Type Parameters:
KR
- type of keys in the streamVR
- type of values in the stream- Parameters:
stream
- stream to be wrapped- Returns:
TimeWindowedKStreamX
-
wrap
public <KR,VR> SessionWindowedKStreamX<KR,VR> wrap(org.apache.kafka.streams.kstream.SessionWindowedKStream<KR, VR> stream) Wrap aSessionWindowedKStream
and add methods to simplify Serde configuration, error handling, and topic access- Type Parameters:
KR
- type of keys in the streamVR
- type of values in the stream- Parameters:
stream
- stream to be wrapped- Returns:
SessionWindowedKStreamX
-
wrap
public <KR,VR> TimeWindowedCogroupedKStreamX<KR,VR> wrap(org.apache.kafka.streams.kstream.TimeWindowedCogroupedKStream<KR, VR> stream) Wrap aTimeWindowedCogroupedKStream
and add methods to simplify Serde configuration, error handling, and topic access- Type Parameters:
KR
- type of keys in the streamVR
- type of values in the stream- Parameters:
stream
- stream to be wrapped- Returns:
TimeWindowedCogroupedKStreamX
-
wrap
public <KR,VR> SessionWindowedCogroupedKStreamX<KR,VR> wrap(org.apache.kafka.streams.kstream.SessionWindowedCogroupedKStream<KR, VR> stream) Wrap aSessionWindowedCogroupedKStream
and add methods to simplify Serde configuration, error handling, and topic access- Type Parameters:
KR
- type of keys in the streamVR
- type of values in the stream- Parameters:
stream
- stream to be wrapped- Returns:
SessionWindowedCogroupedKStreamX
-
wrap
public <KR,VR> CogroupedKStreamX<KR,VR> wrap(org.apache.kafka.streams.kstream.CogroupedKStream<KR, VR> stream) Wrap aCogroupedKStream
and add methods to simplify Serde configuration, error handling, and topic access- Type Parameters:
KR
- type of keys in the streamVR
- type of values in the stream- Parameters:
stream
- stream to be wrapped- Returns:
CogroupedKStreamX
-
wrap
public <KR,VR> BranchedKStreamX<KR,VR> wrap(org.apache.kafka.streams.kstream.BranchedKStream<KR, VR> stream) Wrap aBranchedKStream
and add methods to simplify Serde configuration, error handling, and topic access- Type Parameters:
KR
- type of keys in the streamVR
- type of values in the stream- Parameters:
stream
- stream to be wrapped- Returns:
BranchedKStreamX
-
wrap
Wrap aKTable
and add methods to simplify Serde configuration, error handling, and topic access- Type Parameters:
KR
- type of keys in the tableVR
- type of values in the table- Parameters:
table
- table to be wrapped- Returns:
KTableX
-
wrap
public <KR,VR> KGroupedTableX<KR,VR> wrap(org.apache.kafka.streams.kstream.KGroupedTable<KR, VR> table) Wrap aKGroupedTable
and add methods to simplify Serde configuration, error handling, and topic access- Type Parameters:
KR
- type of keys in the tableVR
- type of values in the table- Parameters:
table
- table to be wrapped- Returns:
KGroupedTableX
-
equals
-
hashCode
public int hashCode() -
toString
-