Uses of Class
cn.boboweike.carrot.tasks.Task
-
-
Uses of Task in cn.boboweike.carrot.dashboard.sse
Methods in cn.boboweike.carrot.dashboard.sse with parameters of type Task Modifier and Type Method Description voidTaskSseExchange. onChange(Task task) -
Uses of Task in cn.boboweike.carrot.scheduling.partition
Methods in cn.boboweike.carrot.scheduling.partition with parameters of type Task Modifier and Type Method Description IntegerPartitioner. partition(Task task)IntegerRandomPartitioner. partition(Task task) -
Uses of Task in cn.boboweike.carrot.server
Methods in cn.boboweike.carrot.server with parameters of type Task Modifier and Type Method Description ThreadTaskZooKeeper. getThreadProcessingTask(Task task)protected voidBackgroundTaskPerformer. saveAndRunStateRelatedTaskFilters(Task task)voidTaskZooKeeper. startProcessing(Task task, Thread thread)voidTaskZooKeeper. stopProcessing(Task task)Constructors in cn.boboweike.carrot.server with parameters of type Task Constructor Description BackgroundTaskPerformer(BackgroundTaskServer backgroundTaskServer, Task task) -
Uses of Task in cn.boboweike.carrot.server.concurrent
Methods in cn.boboweike.carrot.server.concurrent that return Task Modifier and Type Method Description TaskConcurrentTaskModificationResolveResult. getLocalTask()TaskConcurrentTaskModificationResolveResult. getTaskFromStorage()Methods in cn.boboweike.carrot.server.concurrent with parameters of type Task Modifier and Type Method Description static ConcurrentTaskModificationResolveResultConcurrentTaskModificationResolveResult. failed(Task localTask, Task taskFromStorage)ConcurrentTaskModificationResolveResultDefaultConcurrentTaskModificationResolver. resolve(Task localTask)ConcurrentTaskModificationResolveResultUseStorageProviderTaskConcurrentTaskModificationResolver. resolve(Task localTask, ConcurrentTaskModificationException e)static ConcurrentTaskModificationResolveResultConcurrentTaskModificationResolveResult. succeeded(Task task) -
Uses of Task in cn.boboweike.carrot.server.concurrent.statechanges
Methods in cn.boboweike.carrot.server.concurrent.statechanges with parameters of type Task Modifier and Type Method Description default booleanAllowedConcurrentStateChange. matches(Task localTask, Task storageProviderTask)booleanPermanentlyDeletedWhileProcessingConcurrentStateChange. matches(Task localTask, Task storageProviderTask)ConcurrentTaskModificationResolveResultAbstractAllowedConcurrentStateChange. resolve(Task localTask, Task storageProviderTask)ConcurrentTaskModificationResolveResultAllowedConcurrentStateChange. resolve(Task localTask, Task storageProviderTask)ConcurrentTaskModificationResolveResultDeletedWhileProcessingConcurrentStateChange. resolve(Task localTask, Task storageProviderTask)ConcurrentTaskModificationResolveResultPermanentlyDeletedWhileProcessingConcurrentStateChange. resolve(Task localTask, Task storageProviderTask) -
Uses of Task in cn.boboweike.carrot.server.runner
Fields in cn.boboweike.carrot.server.runner declared as Task Modifier and Type Field Description protected TaskAbstractBackgroundTaskRunner.BackgroundTaskWorker. taskMethods in cn.boboweike.carrot.server.runner with parameters of type Task Modifier and Type Method Description protected abstract AbstractBackgroundTaskRunner.BackgroundTaskWorkerAbstractBackgroundTaskRunner. getBackgroundTaskWorker(Task task)protected AbstractBackgroundTaskRunner.BackgroundTaskWorkerBackgroundStaticFieldTaskWithoutIocRunner. getBackgroundTaskWorker(Task task)protected AbstractBackgroundTaskRunner.BackgroundTaskWorkerBackgroundStaticTaskWithoutIocRunner. getBackgroundTaskWorker(Task task)protected AbstractBackgroundTaskRunner.BackgroundTaskWorkerBackgroundTaskWithIocRunner. getBackgroundTaskWorker(Task task)protected AbstractBackgroundTaskRunner.BackgroundTaskWorkerBackgroundTaskWithoutIocRunner. getBackgroundTaskWorker(Task task)voidAbstractBackgroundTaskRunner. run(Task task)voidBackgroundTaskRunner. run(Task task)booleanBackgroundStaticFieldTaskWithoutIocRunner. supports(Task task)booleanBackgroundStaticTaskWithoutIocRunner. supports(Task task)booleanBackgroundTaskRunner. supports(Task task)booleanBackgroundTaskWithIocRunner. supports(Task task)booleanBackgroundTaskWithoutIocRunner. supports(Task task)Constructors in cn.boboweike.carrot.server.runner with parameters of type Task Constructor Description BackgroundForIoCTaskLambdaWorker(TaskActivator taskActivator, Task task)BackgroundForTaskLambdaWorker(Task task)BackgroundTaskWorker(Task task)RunnerTaskContext(Task task)StaticBackgroundTaskWorker(Task task)StaticFieldBackgroundTaskWorker(Task task) -
Uses of Task in cn.boboweike.carrot.storage
Methods in cn.boboweike.carrot.storage that return Task Modifier and Type Method Description TaskInMemoryPartitionedStorageProvider. getTaskById(UUID id)default TaskPartitionedStorageProvider. getTaskById(TaskId taskId)TaskPartitionedStorageProvider. getTaskById(UUID id)TaskThreadSafePartitionedStorageProvider. getTaskById(UUID id)TaskInMemoryPartitionedStorageProvider. save(Task task)TaskPartitionedStorageProvider. save(Task task)TaskThreadSafePartitionedStorageProvider. save(Task task)TaskInMemoryPartitionedStorageProvider. saveByPartition(Task task, Integer partition)TaskPartitionedStorageProvider. saveByPartition(Task task, Integer partition)TaskThreadSafePartitionedStorageProvider. saveByPartition(Task task, Integer partition)Methods in cn.boboweike.carrot.storage that return types with arguments of type Task Modifier and Type Method Description List<Task>ConcurrentTaskModificationException. getConcurrentUpdatedTasks()List<Task>InMemoryPartitionedStorageProvider. getScheduledTasksByPartition(Instant scheduledBefore, PageRequest pageRequest, Integer partition)List<Task>PartitionedStorageProvider. getScheduledTasksByPartition(Instant scheduledBefore, PageRequest pageRequest, Integer partition)List<Task>ThreadSafePartitionedStorageProvider. getScheduledTasksByPartition(Instant scheduledBefore, PageRequest pageRequest, Integer partition)Page<Task>InMemoryPartitionedStorageProvider. getTaskPageByPartition(StateName state, PageRequest pageRequest, Integer partition)Page<Task>PartitionedStorageProvider. getTaskPageByPartition(StateName state, PageRequest pageRequest, Integer partition)Page<Task>ThreadSafePartitionedStorageProvider. getTaskPageByPartition(StateName state, PageRequest pageRequest, Integer partition)List<Task>InMemoryPartitionedStorageProvider. getTasksByPartition(StateName state, PageRequest pageRequest, Integer partition)List<Task>InMemoryPartitionedStorageProvider. getTasksByPartition(StateName state, Instant updatedBefore, PageRequest pageRequest, Integer partition)List<Task>PartitionedStorageProvider. getTasksByPartition(StateName state, PageRequest pageRequest, Integer partition)List<Task>PartitionedStorageProvider. getTasksByPartition(StateName state, Instant updatedBefore, PageRequest pageRequest, Integer partition)List<Task>ThreadSafePartitionedStorageProvider. getTasksByPartition(StateName state, PageRequest pageRequest, Integer partition)List<Task>ThreadSafePartitionedStorageProvider. getTasksByPartition(StateName state, Instant updatedBefore, PageRequest pageRequest, Integer partition)static List<Task>StorageProviderUtils. returnConcurrentModifiedTasks(List<Task> tasks, Consumer<Task> consumer)List<Task>InMemoryPartitionedStorageProvider. save(List<Task> tasks)List<Task>PartitionedStorageProvider. save(List<Task> tasks)List<Task>ThreadSafePartitionedStorageProvider. save(List<Task> tasks)List<Task>InMemoryPartitionedStorageProvider. saveByPartition(List<Task> tasks, Integer partition)List<Task>PartitionedStorageProvider. saveByPartition(List<Task> tasks, Integer partition)List<Task>ThreadSafePartitionedStorageProvider. saveByPartition(List<Task> tasks, Integer partition)static Function<Task,Exception>StorageProviderUtils. toConcurrentTaskModificationExceptionIfFailed(Consumer<Task> test)Methods in cn.boboweike.carrot.storage with parameters of type Task Modifier and Type Method Description TaskInMemoryPartitionedStorageProvider. save(Task task)TaskPartitionedStorageProvider. save(Task task)TaskThreadSafePartitionedStorageProvider. save(Task task)TaskInMemoryPartitionedStorageProvider. saveByPartition(Task task, Integer partition)TaskPartitionedStorageProvider. saveByPartition(Task task, Integer partition)TaskThreadSafePartitionedStorageProvider. saveByPartition(Task task, Integer partition)Method parameters in cn.boboweike.carrot.storage with type arguments of type Task Modifier and Type Method Description static List<Task>StorageProviderUtils. returnConcurrentModifiedTasks(List<Task> tasks, Consumer<Task> consumer)static List<Task>StorageProviderUtils. returnConcurrentModifiedTasks(List<Task> tasks, Consumer<Task> consumer)List<Task>InMemoryPartitionedStorageProvider. save(List<Task> tasks)List<Task>PartitionedStorageProvider. save(List<Task> tasks)List<Task>ThreadSafePartitionedStorageProvider. save(List<Task> tasks)List<Task>InMemoryPartitionedStorageProvider. saveByPartition(List<Task> tasks, Integer partition)List<Task>PartitionedStorageProvider. saveByPartition(List<Task> tasks, Integer partition)List<Task>ThreadSafePartitionedStorageProvider. saveByPartition(List<Task> tasks, Integer partition)static Function<Task,Exception>StorageProviderUtils. toConcurrentTaskModificationExceptionIfFailed(Consumer<Task> test)Constructors in cn.boboweike.carrot.storage with parameters of type Task Constructor Description ConcurrentTaskModificationException(Task concurrentUpdatedTask)Constructor parameters in cn.boboweike.carrot.storage with type arguments of type Task Constructor Description ConcurrentTaskModificationException(List<Task> concurrentUpdatedTasks) -
Uses of Task in cn.boboweike.carrot.storage.listeners
Methods in cn.boboweike.carrot.storage.listeners with parameters of type Task Modifier and Type Method Description voidTaskChangeListener. onChange(Task task) -
Uses of Task in cn.boboweike.carrot.storage.nosql.mongo
Methods in cn.boboweike.carrot.storage.nosql.mongo that return Task Modifier and Type Method Description TaskMongoDBPartitionedStorageProvider. getTaskById(UUID id)TaskMongoDBPartitionedStorageProvider. save(Task task)TaskMongoDBPartitionedStorageProvider. saveByPartition(Task task, Integer partition)Methods in cn.boboweike.carrot.storage.nosql.mongo that return types with arguments of type Task Modifier and Type Method Description List<Task>MongoDBPartitionedStorageProvider. getScheduledTasksByPartition(Instant scheduledBefore, PageRequest pageRequest, Integer partition)Page<Task>MongoDBPartitionedStorageProvider. getTaskPageByPartition(StateName state, PageRequest pageRequest, Integer partition)List<Task>MongoDBPartitionedStorageProvider. getTasksByPartition(StateName state, PageRequest pageRequest, Integer partition)List<Task>MongoDBPartitionedStorageProvider. getTasksByPartition(StateName state, Instant updatedBefore, PageRequest pageRequest, Integer partition)List<Task>MongoDBPartitionedStorageProvider. save(List<Task> tasks)List<Task>MongoDBPartitionedStorageProvider. saveByPartition(List<Task> tasks, Integer partition)Methods in cn.boboweike.carrot.storage.nosql.mongo with parameters of type Task Modifier and Type Method Description TaskMongoDBPartitionedStorageProvider. save(Task task)TaskMongoDBPartitionedStorageProvider. saveByPartition(Task task, Integer partition)Method parameters in cn.boboweike.carrot.storage.nosql.mongo with type arguments of type Task Modifier and Type Method Description List<Task>MongoDBPartitionedStorageProvider. save(List<Task> tasks)List<Task>MongoDBPartitionedStorageProvider. saveByPartition(List<Task> tasks, Integer partition) -
Uses of Task in cn.boboweike.carrot.storage.nosql.mongo.mapper
Methods in cn.boboweike.carrot.storage.nosql.mongo.mapper that return Task Modifier and Type Method Description TaskTaskDocumentMapper. toTask(org.bson.Document document)Methods in cn.boboweike.carrot.storage.nosql.mongo.mapper with parameters of type Task Modifier and Type Method Description org.bson.DocumentTaskDocumentMapper. toInsertDocument(Task task)org.bson.DocumentTaskDocumentMapper. toUpdateDocument(Task task)com.mongodb.client.model.UpdateOneModel<org.bson.Document>TaskDocumentMapper. toUpdateOneModel(Task task) -
Uses of Task in cn.boboweike.carrot.tasks
Methods in cn.boboweike.carrot.tasks that return Task Modifier and Type Method Description TaskRecurringTask. toEnqueuedTask()TaskRecurringTask. toScheduledTask()Method parameters in cn.boboweike.carrot.tasks with type arguments of type Task Modifier and Type Method Description voidTaskListVersioner. rollbackVersions(List<Task> tasksThatFailed)Constructors in cn.boboweike.carrot.tasks with parameters of type Task Constructor Description TaskVersioner(Task task)Constructor parameters in cn.boboweike.carrot.tasks with type arguments of type Task Constructor Description TaskListVersioner(List<Task> tasks) -
Uses of Task in cn.boboweike.carrot.tasks.context
Methods in cn.boboweike.carrot.tasks.context with parameters of type Task Modifier and Type Method Description static voidCarrotDashboardLogger. setTask(Task task)Constructors in cn.boboweike.carrot.tasks.context with parameters of type Task Constructor Description TaskContext(Task task)Keep constructor package protected to remove confusion on how to instantiate the TaskContext.TaskDashboardLogger(Task task)TaskDashboardProgressBar(Task task, Long totalAmount) -
Uses of Task in cn.boboweike.carrot.tasks.filters
Methods in cn.boboweike.carrot.tasks.filters with parameters of type Task Modifier and Type Method Description protected longRetryFilter. getExponentialBackoffPolicy(Task task, int seed)protected longRetryFilter. getSecondsToAdd(Task task)default voidTaskServerFilter. onProcessed(Task task)default voidTaskServerFilter. onProcessing(Task task)voidApplyStateFilter. onStateApplied(Task task, TaskState oldState, TaskState newState)voidElectStateFilter. onStateElection(Task task, TaskState newState)voidRetryFilter. onStateElection(Task task, TaskState newState)voidTaskFilterUtils. runOnStateAppliedFilters(Task task)voidTaskFilterUtils. runOnStateElectionFilter(Task task)Method parameters in cn.boboweike.carrot.tasks.filters with type arguments of type Task Modifier and Type Method Description voidTaskFilterUtils. runOnCreatedFilter(List<Task> tasks)voidTaskFilterUtils. runOnCreatingFilter(List<Task> tasks)voidTaskFilterUtils. runOnStateAppliedFilters(List<Task> tasks)voidTaskFilterUtils. runOnStateElectionFilter(List<Task> tasks)Constructors in cn.boboweike.carrot.tasks.filters with parameters of type Task Constructor Description TaskPerformingFilters(Task task, TaskDefaultFilters taskFilters) -
Uses of Task in cn.boboweike.carrot.tasks.mappers
Methods in cn.boboweike.carrot.tasks.mappers that return Task Modifier and Type Method Description TaskTaskMapper. deserializeTask(String serializedTaskAsString)Methods in cn.boboweike.carrot.tasks.mappers with parameters of type Task Modifier and Type Method Description static voidMDCMapper. loadMDCContextFromTask(Task task)static voidMDCMapper. saveMDCContextToTask(Task task)StringTaskMapper. serializeTask(Task task) -
Uses of Task in cn.boboweike.carrot.utils
Methods in cn.boboweike.carrot.utils with parameters of type Task Modifier and Type Method Description static StringTaskUtils. getTaskSignature(Task task)
-