Package io.streamthoughts.azkarra.api
Class Executed
- java.lang.Object
-
- io.streamthoughts.azkarra.api.Executed
-
public class Executed extends Object
Executed class is used to describe aTopologyinstance to be executed.
-
-
Field Summary
Fields Modifier and Type Field Description protected Confconfigprotected Stringdescriptionprotected Supplier<KafkaStreamsFactory>factoryprotected List<Supplier<StreamsLifecycleInterceptor>>interceptorsprotected Stringname
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Executedas(String name)Static helper that can be used to creates a newExecutedinstance with the specified streams name.static Executedas(String name, String description)Static helper that can be used to creates a newExecutedinstance with the specified streams name and description.static Executedwith(Conf conf)Static helper that can be used to creates a newExecutedinstance with the specified streams name and configuration.ExecutedwithConfig(Conf config)Returns a newExecutedwith the specified config.ExecutedwithDescription(String description)Returns a newExecutedwith the specified description.ExecutedwithInterceptor(Supplier<StreamsLifecycleInterceptor> interceptor)Returns a newExecutedwith the specified interceptor.ExecutedwithInterceptors(List<Supplier<StreamsLifecycleInterceptor>> interceptors)Returns a newExecutedwith the specified interceptors.ExecutedwithKafkaStreamsFactory(Supplier<KafkaStreamsFactory> factory)Returns a newExecutedwith the specifiedKafkaStreamsfactory.ExecutedwithName(String name)Returns a newExecutedwith the specified name.
-
-
-
Field Detail
-
name
protected final String name
-
description
protected final String description
-
config
protected final Conf config
-
factory
protected final Supplier<KafkaStreamsFactory> factory
-
interceptors
protected final List<Supplier<StreamsLifecycleInterceptor>> interceptors
-
-
Method Detail
-
as
public static Executed as(String name)
Static helper that can be used to creates a newExecutedinstance with the specified streams name.- Parameters:
name- the name of the streams application.- Returns:
- a new
StreamsExecutionEnvironmentinstance.
-
as
public static Executed as(String name, String description)
Static helper that can be used to creates a newExecutedinstance with the specified streams name and description.- Parameters:
name- the name of the streams application.description- the description of the streams application.- Returns:
- a new
StreamsExecutionEnvironmentinstance.
-
with
public static Executed with(Conf conf)
Static helper that can be used to creates a newExecutedinstance with the specified streams name and configuration.- Parameters:
conf- the configuration.- Returns:
- a new
StreamsExecutionEnvironmentinstance.
-
withName
public Executed withName(String name)
Returns a newExecutedwith the specified name.- Parameters:
name- the name of the streams topology.- Returns:
- a new
Executed.
-
withDescription
public Executed withDescription(String description)
Returns a newExecutedwith the specified description.- Parameters:
description- the description of the streams topology.- Returns:
- a new
Executed.
-
withConfig
public Executed withConfig(Conf config)
Returns a newExecutedwith the specified config.- Parameters:
config- the config of the streams topology.- Returns:
- a new
Executed.
-
withInterceptor
public Executed withInterceptor(Supplier<StreamsLifecycleInterceptor> interceptor)
Returns a newExecutedwith the specified interceptor.- Parameters:
interceptor- the interceptor to add to the streams topology.- Returns:
- a new
Executed.
-
withInterceptors
public Executed withInterceptors(List<Supplier<StreamsLifecycleInterceptor>> interceptors)
Returns a newExecutedwith the specified interceptors.- Parameters:
interceptors- the interceptors to add to the streams topology.- Returns:
- a new
Executed.
-
withKafkaStreamsFactory
public Executed withKafkaStreamsFactory(Supplier<KafkaStreamsFactory> factory)
Returns a newExecutedwith the specifiedKafkaStreamsfactory.- Parameters:
factory- theKafkaStreamsfactory to be used.- Returns:
- a new
Executed.
-
-