Class CloseKafkaStreamsOnThreadException
- java.lang.Object
-
- io.streamthoughts.azkarra.runtime.streams.errors.CloseKafkaStreamsOnThreadException
-
- All Implemented Interfaces:
StreamThreadExceptionHandler
,StreamsExecutionEnvironmentAware
public class CloseKafkaStreamsOnThreadException extends Object implements StreamThreadExceptionHandler, StreamsExecutionEnvironmentAware
Closes immediately theKafkaStreams
instance when a StreamThread abruptly terminates due to an uncaught exception.
-
-
Constructor Summary
Constructors Constructor Description CloseKafkaStreamsOnThreadException()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
handle(KafkaStreamsContainer container, Thread streamThread, Throwable e)
Method invoked when a StreamThread abruptly terminates due to an uncaught exception.void
setExecutionEnvironment(StreamsExecutionEnvironment environment)
Set theStreamsExecutionEnvironment
.
-
-
-
Method Detail
-
handle
public void handle(KafkaStreamsContainer container, Thread streamThread, Throwable e)
Method invoked when a StreamThread abruptly terminates due to an uncaught exception.- Specified by:
handle
in interfaceStreamThreadExceptionHandler
- Parameters:
container
- the streams container.streamThread
- the thread.e
- the exception.
-
setExecutionEnvironment
public void setExecutionEnvironment(StreamsExecutionEnvironment environment)
Set theStreamsExecutionEnvironment
.- Specified by:
setExecutionEnvironment
in interfaceStreamsExecutionEnvironmentAware
- Parameters:
environment
- theStreamsExecutionEnvironment
instance
-
-