Class UidsearchTask
java.lang.Object
ch.tocco.nice2.persist.core.api.exec.AbstractPartitionedPersistTask<UidsearchTask.UidsearchInput,Entity,Entity>
ch.tocco.nice2.optional.address.impl.action.uidsearch.UidsearchTask
- All Implemented Interfaces:
PersistTask<Iterable<UidsearchTask.UidsearchInput>,Iterable<Entity>>
public class UidsearchTask
extends AbstractPartitionedPersistTask<UidsearchTask.UidsearchInput,Entity,Entity>
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionUidsearchTask(PersistenceService persistenceService, UidsearchService uidsearchService, Consumer<UidsearchTask.UidsearchInput> progressConsumer, org.slf4j.Logger log) -
Method Summary
Modifier and TypeMethodDescriptionCreate a function that creates an instance of Z.run(Optional<Iterable<UidsearchTask.UidsearchInput>> uidsearchInputs, CommandContext commandContext) Methods inherited from class ch.tocco.nice2.persist.core.api.exec.AbstractPartitionedPersistTask
getTaskData, partition, partition, partitionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ch.tocco.nice2.persist.core.api.exec.PersistTask
andThenDo, compose, compose2, composeWhen, discardResult, expand, expand, getDescription, ifElse, orWhen, orWhenNot, passWhen, passWhenNot, skipErrors, unwrap
-
Constructor Details
-
UidsearchTask
public UidsearchTask(PersistenceService persistenceService, UidsearchService uidsearchService, Consumer<UidsearchTask.UidsearchInput> progressConsumer, org.slf4j.Logger log)
-
-
Method Details
-
createTaskData
Description copied from class:AbstractPartitionedPersistTaskCreate a function that creates an instance of Z. This function is called once for each context and should be used to load entities (or otherContextrelated objects) which are used in every iteration.- Specified by:
createTaskDatain classAbstractPartitionedPersistTask<UidsearchTask.UidsearchInput,Entity, Entity>
-
run
@Nullable public @Nullable Iterable<Entity> run(Optional<Iterable<UidsearchTask.UidsearchInput>> uidsearchInputs, CommandContext commandContext) throws Exception - Throws:
Exception
-