Package com._1c.g5.v8.dt.bsl.bm.common
Class BslBmThreadPoolServiceProvider
java.lang.Object
com._1c.g5.v8.dt.bsl.common.BslThreadPoolServiceProvider
com._1c.g5.v8.dt.bsl.bm.common.BslBmThreadPoolServiceProvider
- All Implemented Interfaces:
IResourcePlan
,IThreadPoolServiceProvider
public class BslBmThreadPoolServiceProvider
extends BslThreadPoolServiceProvider
implements IResourcePlan
Extension implementation of
BslThreadPoolServiceProvider
. This class implements IResourcePlan
for
all activities in bsl module and provides ActivityDemandsDefaultAdapter
for it-
Field Summary
Fields inherited from class com._1c.g5.v8.dt.bsl.common.BslThreadPoolServiceProvider
ITEMS_FOR_ONE_THREAD
Fields inherited from interface com._1c.g5.v8.dt.bsl.common.IThreadPoolServiceProvider
BSL_LAZY_REFERENCE_INSTALLING_ACTIVITY, BSL_LAZY_REFERENCE_RESOLVING_ACTIVITY, BSL_REFERENCE_DESCRIPTION_ACTIVITY, BSL_TYPE_SYSTEM_ACTIVITY, BSL_VALIDATION_ACTIVITY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionProclaim demands of resources for a given set of activities.startActivity
(String activityName) GetsForkJoinPool
for activity with nameactivityName
.void
stopActivity
(String activityName) Calling of this method tells that activity was stopped
-
Constructor Details
-
BslBmThreadPoolServiceProvider
public BslBmThreadPoolServiceProvider()
-
-
Method Details
-
startActivity
Description copied from interface:IThreadPoolServiceProvider
GetsForkJoinPool
for activity with nameactivityName
. Calling of this method tells that activity was started- Specified by:
startActivity
in interfaceIThreadPoolServiceProvider
- Overrides:
startActivity
in classBslThreadPoolServiceProvider
- Parameters:
activityName
- name of the bsl module activity, can't benull
- Returns:
ForkJoinPool
for activity with nameactivityName
, nevernull
-
stopActivity
Description copied from interface:IThreadPoolServiceProvider
Calling of this method tells that activity was stopped- Specified by:
stopActivity
in interfaceIThreadPoolServiceProvider
- Overrides:
stopActivity
in classBslThreadPoolServiceProvider
- Parameters:
activityName
- name of the stopped activity, can't benull
-
gatherActivities
Description copied from interface:IResourcePlan
Proclaim demands of resources for a given set of activities.- Specified by:
gatherActivities
in interfaceIResourcePlan
- Returns:
- Returns
IActivityDemandsDefinition
mapped to respective name of the activity.
-