Class TaskConsumerContext<TRANSACTION,EXCEPTION extends Exception,SUPPLEMENT extends TaskSupplement>
java.lang.Object
no.skatteetaten.fastsetting.formueinntekt.felles.task.processor.TaskConsumerContext<TRANSACTION,EXCEPTION,SUPPLEMENT>
- All Implemented Interfaces:
TaskConsumer,TaskContext<TRANSACTION,EXCEPTION, SUPPLEMENT>
public class TaskConsumerContext<TRANSACTION,EXCEPTION extends Exception,SUPPLEMENT extends TaskSupplement>
extends Object
implements TaskConsumer, TaskContext<TRANSACTION,EXCEPTION,SUPPLEMENT>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static class(package private) static class(package private) static class(package private) static class(package private) static class(package private) static interface -
Constructor Summary
ConstructorsConstructorDescriptionTaskConsumerContext(Set<Task> tasks, TaskSink<TRANSACTION, EXCEPTION> taskSink, TaskJuncture<TRANSACTION, EXCEPTION> taskJuncture, Function<String, Optional<TaskProcessor>> processors) TaskConsumerContext(Set<Task> tasks, TaskSink<TRANSACTION, EXCEPTION> taskSink, TaskJuncture<TRANSACTION, EXCEPTION> taskJuncture, Function<String, Optional<TaskProcessor>> processors, BiFunction<Task, TaskCreation, Stream<TaskCreation>> postprocessor) -
Method Summary
Modifier and TypeMethodDescriptionapply(Map<Task, TaskDecision> decisions, Executor executor, SUPPLEMENT supplement) voidjunctionByTask(Map<Task, Set<String>> tasksToIdentifiers, String topic, TaskJuncture.Junction junction) voidonAfterTransaction(Executor executor, SUPPLEMENT 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, waitMethods inherited from interface no.skatteetaten.fastsetting.formueinntekt.felles.task.api.TaskConsumer
junctionByTask, pushByTask, pushByTask, pushByTask, pushByTaskMethods inherited from interface no.skatteetaten.fastsetting.formueinntekt.felles.task.processor.TaskContext
toFactory
-
Constructor Details
-
TaskConsumerContext
public TaskConsumerContext(Set<Task> tasks, TaskSink<TRANSACTION, EXCEPTION> taskSink, TaskJuncture<TRANSACTION, EXCEPTION> taskJuncture, Function<String, Optional<TaskProcessor>> processors) -
TaskConsumerContext
public TaskConsumerContext(Set<Task> tasks, TaskSink<TRANSACTION, EXCEPTION> taskSink, TaskJuncture<TRANSACTION, EXCEPTION> taskJuncture, Function<String, Optional<TaskProcessor>> processors, BiFunction<Task, TaskCreation, Stream<TaskCreation>> postprocessor)
-
-
Method Details
-
pushByTask
public void pushByTask(Set<Task> tasks, String topic, TaskSink.Insertion insertion, Function<Task, Collection<TaskCreation>> resolver) - Specified by:
pushByTaskin interfaceTaskConsumer
-
junctionByTask
public void junctionByTask(Map<Task, Set<String>> tasksToIdentifiers, String topic, TaskJuncture.Junction junction) - Specified by:
junctionByTaskin interfaceTaskConsumer
-
apply
public CompletionStage<TaskCompletion<TRANSACTION,EXCEPTION>> apply(Map<Task, TaskDecision> decisions, Executor executor, SUPPLEMENT supplement) - Specified by:
applyin interfaceTaskContext<TRANSACTION,EXCEPTION extends Exception, SUPPLEMENT extends TaskSupplement>
-
onAfterTransaction
- Specified by:
onAfterTransactionin interfaceTaskContext<TRANSACTION,EXCEPTION extends Exception, SUPPLEMENT extends TaskSupplement>
-