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