Class TaskConsumerContext<TRANSACTION,EXCEPTION extends Exception>
- java.lang.Object
-
- no.skatteetaten.fastsetting.formueinntekt.felles.task.processor.TaskConsumerContext<TRANSACTION,EXCEPTION>
-
- All Implemented Interfaces:
TaskConsumer,TaskContext<TRANSACTION,EXCEPTION>
public class TaskConsumerContext<TRANSACTION,EXCEPTION extends Exception> extends Object implements TaskConsumer, TaskContext<TRANSACTION,EXCEPTION>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classTaskConsumerContext.Definition(package private) static classTaskConsumerContext.Resolved
-
Constructor Summary
Constructors Constructor Description TaskConsumerContext(Set<Task> tasks, TaskDispatcher<TRANSACTION,EXCEPTION> dispatcher, TaskSink<TRANSACTION,EXCEPTION> taskSink, Function<String,Optional<TaskProcessor>> processors)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompletionStage<TaskContextCompletion<TRANSACTION,EXCEPTION>>apply(Map<Task,TaskDecision> decisions, Executor executor, TaskSupplement supplement)voidpushByTask(Set<Task> tasks, String topic, TaskSink.Insertion insertion, Function<Task,Collection<TaskCreation>> resolver)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface no.skatteetaten.fastsetting.formueinntekt.felles.task.api.TaskConsumer
pushByTask, pushByTask, pushByTask
-
Methods inherited from interface no.skatteetaten.fastsetting.formueinntekt.felles.task.processor.TaskContext
apply, apply, apply, toFactory
-
-
-
-
Constructor Detail
-
TaskConsumerContext
public TaskConsumerContext(Set<Task> tasks, TaskDispatcher<TRANSACTION,EXCEPTION> dispatcher, TaskSink<TRANSACTION,EXCEPTION> taskSink, Function<String,Optional<TaskProcessor>> processors)
-
-
Method Detail
-
pushByTask
public void pushByTask(Set<Task> tasks, String topic, TaskSink.Insertion insertion, Function<Task,Collection<TaskCreation>> resolver)
- Specified by:
pushByTaskin interfaceTaskConsumer
-
apply
public CompletionStage<TaskContextCompletion<TRANSACTION,EXCEPTION>> apply(Map<Task,TaskDecision> decisions, Executor executor, TaskSupplement supplement)
- Specified by:
applyin interfaceTaskContext<TRANSACTION,EXCEPTION extends Exception>
-
-