Class BufferingTaskHandlerFactory<TRANSACTION,EXCEPTION extends Exception>
- java.lang.Object
-
- no.skatteetaten.fastsetting.formueinntekt.felles.task.processor.BufferingTaskHandlerFactory<TRANSACTION,EXCEPTION>
-
- All Implemented Interfaces:
Function<String,TaskHandler<TRANSACTION,EXCEPTION>>
public class BufferingTaskHandlerFactory<TRANSACTION,EXCEPTION extends Exception> extends Object implements Function<String,TaskHandler<TRANSACTION,EXCEPTION>>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classBufferingTaskHandlerFactory.Unit<TRANSACTION,EXCEPTION extends Exception>
-
Constructor Summary
Constructors Constructor Description BufferingTaskHandlerFactory(Executor executor, boolean failPendingOnClose, int buffer, int workers, long poll, TimeUnit timeUnit, Function<String,? extends TaskHandler<TRANSACTION,EXCEPTION>> delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TaskHandler<TRANSACTION,EXCEPTION>apply(String topic)
-
-
-
Constructor Detail
-
BufferingTaskHandlerFactory
public BufferingTaskHandlerFactory(Executor executor, boolean failPendingOnClose, int buffer, int workers, long poll, TimeUnit timeUnit, Function<String,? extends TaskHandler<TRANSACTION,EXCEPTION>> delegate)
-
-
Method Detail
-
apply
public TaskHandler<TRANSACTION,EXCEPTION> apply(String topic)
- Specified by:
applyin interfaceFunction<TRANSACTION,EXCEPTION extends Exception>
-
-