Package com.atlassian.confluence.cluster
Class ClusterNodeExecution<T>
- java.lang.Object
-
- com.atlassian.confluence.cluster.ClusterNodeExecution<T>
-
- Type Parameters:
T
-
public class ClusterNodeExecution<T> extends Object
Represents the cluster execution in each node (e.g. fromClusterManager#submitToAllNodes(Callable)
.- Since:
- 7.14.0
-
-
Constructor Summary
Constructors Constructor Description ClusterNodeExecution(@Nullable ClusterNodeInformation clusterNode, @NonNull CompletionStage<T> completionStage)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable ClusterNodeInformation
getClusterNode()
CompletionStage<T>
getCompletionStage()
-
-
-
Constructor Detail
-
ClusterNodeExecution
public ClusterNodeExecution(@Nullable ClusterNodeInformation clusterNode, @NonNull CompletionStage<T> completionStage)
-
-
Method Detail
-
getClusterNode
public @Nullable ClusterNodeInformation getClusterNode()
- Returns:
- the cluster node that this execution runs on, or null on a non-clustered instance
-
getCompletionStage
public CompletionStage<T> getCompletionStage()
- Returns:
- the asynchronous outcome of the execution
-
-