Interface ClusterMasterExecutor
@ProviderType
public interface ClusterMasterExecutor
- Author:
- Michael C. Han
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddClusterMasterTokenTransitionListener(ClusterMasterTokenTransitionListener clusterMasterTokenAcquisitionListener) <T> NoticeableFuture<T>executeOnMaster(MethodHandler methodHandler) booleanbooleanisMaster()voidremoveClusterMasterTokenTransitionListener(ClusterMasterTokenTransitionListener clusterMasterTokenAcquisitionListener)
-
Method Details
-
addClusterMasterTokenTransitionListener
void addClusterMasterTokenTransitionListener(ClusterMasterTokenTransitionListener clusterMasterTokenAcquisitionListener) -
executeOnMaster
-
isEnabled
boolean isEnabled() -
isMaster
boolean isMaster() -
removeClusterMasterTokenTransitionListener
void removeClusterMasterTokenTransitionListener(ClusterMasterTokenTransitionListener clusterMasterTokenAcquisitionListener)
-