@Transactional public class DefaultTaskExecutionRepositoryService extends Object implements TaskExecutionCreationService
TaskExecution
with a transaction propagation setting of Propagation.REQUIRES_NEW| Constructor and Description |
|---|
DefaultTaskExecutionRepositoryService(org.springframework.cloud.task.repository.TaskRepository taskRepository) |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.cloud.task.repository.TaskExecution |
createTaskExecution(String taskName)
Creates a
TaskExecution using the specified taskName |
public DefaultTaskExecutionRepositoryService(org.springframework.cloud.task.repository.TaskRepository taskRepository)
@Transactional(propagation=REQUIRES_NEW) public org.springframework.cloud.task.repository.TaskExecution createTaskExecution(String taskName)
TaskExecutionCreationServiceTaskExecution using the specified taskNamecreateTaskExecution in interface TaskExecutionCreationServicetaskName - the name to be associated with the TaskExecutionTaskExecutionCopyright © 2021 Pivotal Software, Inc.. All rights reserved.