com.atlassian.bamboo.plan
Interface NonBlockingPlanExecutionService

All Known Implementing Classes:
NonBlockingPlanExecutionServiceImpl

public interface NonBlockingPlanExecutionService

An alternative to PlanExecutionManager that will run the change detection in the background.

Since:
v4.0

Method Summary
 ExecutorStats getExecutorStats()
          Stats for the underlying ThreadPoolExecutor
 java.util.concurrent.Future<ExecutionRequestResult> tryToStart(ImmutableChain chain, BuildDetectionAction buildDetectionAction, AcquisitionPolicy acquisitionPolicy)
          Submits a background task to run PlanExecutionManager.start(com.atlassian.bamboo.plan.cache.ImmutableChain, com.atlassian.bamboo.build.BuildDetectionAction, com.atlassian.bamboo.util.AcquisitionPolicy).
 

Method Detail

tryToStart

@Nullable
java.util.concurrent.Future<ExecutionRequestResult> tryToStart(@NotNull
                                                                        ImmutableChain chain,
                                                                        @NotNull
                                                                        BuildDetectionAction buildDetectionAction,
                                                                        @NotNull
                                                                        AcquisitionPolicy acquisitionPolicy)
Submits a background task to run PlanExecutionManager.start(com.atlassian.bamboo.plan.cache.ImmutableChain, com.atlassian.bamboo.build.BuildDetectionAction, com.atlassian.bamboo.util.AcquisitionPolicy). Only one AcquisitionPolicy.IMMEDIATE will be queued at any point in time.

Parameters:
chain -
buildDetectionAction -
acquisitionPolicy -
Returns:

getExecutorStats

@NotNull
ExecutorStats getExecutorStats()
Stats for the underlying ThreadPoolExecutor

Returns:


Copyright © 2012 Atlassian. All Rights Reserved.