Class ExecutionStrategyTemplate<S>
- java.lang.Object
-
- com.atlassian.sal.confluence.lifecycle.ExecutionStrategyTemplate<S>
-
- All Implemented Interfaces:
ServiceExecutionStrategy<S>
- Direct Known Subclasses:
ForkAndJoinExecutionStrategy
,SequentialExecutionStrategy
public abstract class ExecutionStrategyTemplate<S> extends Object implements ServiceExecutionStrategy<S>
Template for service executions- Since:
- 5.6
-
-
Field Summary
Fields Modifier and Type Field Description protected com.google.common.base.Function<org.osgi.framework.ServiceReference,com.atlassian.fugue.Option<com.atlassian.plugin.ModuleCompleteKey>>
moduleReferenceParser
protected Queue<Callable>
serviceExecutions
-
Constructor Summary
Constructors Modifier Constructor Description protected
ExecutionStrategyTemplate(com.google.common.base.Function<org.osgi.framework.ServiceReference,com.atlassian.fugue.Option<com.atlassian.plugin.ModuleCompleteKey>> moduleReferenceParser)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
add(org.osgi.framework.ServiceReference serviceReference, com.google.common.base.Function<S,?> serviceCallback)
protected Callable
createServiceExecution(org.osgi.framework.ServiceReference serviceReference, com.google.common.base.Function<S,?> serviceCallback)
protected String
getDescription()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.atlassian.sal.confluence.lifecycle.ServiceExecutionStrategy
trigger
-
-
-
-
Method Detail
-
add
public boolean add(org.osgi.framework.ServiceReference serviceReference, com.google.common.base.Function<S,?> serviceCallback)
- Specified by:
add
in interfaceServiceExecutionStrategy<S>
-
createServiceExecution
protected Callable createServiceExecution(org.osgi.framework.ServiceReference serviceReference, com.google.common.base.Function<S,?> serviceCallback)
-
getDescription
protected String getDescription()
-
-