@ThreadSafe public class CuttingOffExecutorImpl extends Object implements CuttingOffExecutor
CuttingOffExecutor.Callback, CuttingOffExecutor.Invoke<T>| Constructor and Description |
|---|
CuttingOffExecutorImpl(java.time.Clock clock,
Node node,
com.atlassian.event.api.EventPublisher eventPublisher,
ClusterManager clusterManager) |
| Modifier and Type | Method and Description |
|---|---|
<T> Optional<T> |
invokeOrCutOff(CuttingOffExecutor.Invoke<T> invoke)
Code provided as invoke will be invoked and returned object of type T will be wrapped and returned
as
Optional or supplied invoke will not be executed and Optional.empty() will be returned |
public CuttingOffExecutorImpl(java.time.Clock clock,
Node node,
com.atlassian.event.api.EventPublisher eventPublisher,
ClusterManager clusterManager)
@Nonnull public <T> Optional<T> invokeOrCutOff(@Nonnull CuttingOffExecutor.Invoke<T> invoke)
CuttingOffExecutorOptional or supplied invoke will not be executed and Optional.empty() will be returnedinvokeOrCutOff in interface CuttingOffExecutorinvoke - implementation of CuttingOffExecutor.Invoke functional interface that describe operation that should be invoked
or cut off and skipped.Optional.empty() if invoke was not calledCopyright © 2002-2021 Atlassian. All Rights Reserved.