@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)
TaskExecutionCreationService
TaskExecution
using the specified taskNamecreateTaskExecution
in interface TaskExecutionCreationService
taskName
- the name to be associated with the TaskExecution
TaskExecution
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.