com.atlassian.sal.confluence.lifecycle
Class FireAndForgetExecutionStrategy<S>
java.lang.Object
com.atlassian.sal.confluence.lifecycle.ExecutionStrategyTemplate<S>
com.atlassian.sal.confluence.lifecycle.FireAndForgetExecutionStrategy<S>
- All Implemented Interfaces:
- ServiceExecutionStrategy<S>
public class FireAndForgetExecutionStrategy<S>
- extends ExecutionStrategyTemplate<S>
Triggers executions but does not block for them to return.
- Since:
- 5.6
Field Summary |
protected java.util.concurrent.ExecutorService |
executorService
|
Constructor Summary |
FireAndForgetExecutionStrategy(com.google.common.base.Function<org.osgi.framework.ServiceReference,com.atlassian.fugue.Option<com.atlassian.plugin.ModuleCompleteKey>> moduleReferenceParser,
java.util.concurrent.ExecutorService executorService)
|
Method Summary |
protected java.util.concurrent.Callable |
createServiceExecution(org.osgi.framework.ServiceReference serviceReference,
com.atlassian.tenancy.api.Tenant tenant,
com.google.common.base.Function<S,?> serviceCallback)
|
protected java.lang.String |
getDescription()
|
void |
trigger()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
executorService
protected final java.util.concurrent.ExecutorService executorService
FireAndForgetExecutionStrategy
public FireAndForgetExecutionStrategy(com.google.common.base.Function<org.osgi.framework.ServiceReference,com.atlassian.fugue.Option<com.atlassian.plugin.ModuleCompleteKey>> moduleReferenceParser,
java.util.concurrent.ExecutorService executorService)
trigger
public void trigger()
createServiceExecution
protected java.util.concurrent.Callable createServiceExecution(org.osgi.framework.ServiceReference serviceReference,
com.atlassian.tenancy.api.Tenant tenant,
com.google.common.base.Function<S,?> serviceCallback)
- Overrides:
createServiceExecution
in class ExecutionStrategyTemplate<S>
getDescription
protected java.lang.String getDescription()
- Overrides:
getDescription
in class ExecutionStrategyTemplate<S>
Copyright © 2003-2014 Atlassian. All Rights Reserved.