Class ClusterMasterExecutorUtil
Object
com.liferay.portal.kernel.cluster.ClusterMasterExecutorUtil
- Author:
- Michael C. Han
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
addClusterMasterTokenTransitionListener
(ClusterMasterTokenTransitionListener clusterMasterTokenTransitionListener) static <T> Future<T>
executeOnMaster
(MethodHandler methodHandler) static boolean
static boolean
isMaster()
static void
removeClusterMasterTokenTransitionListener
(ClusterMasterTokenTransitionListener clusterMasterTokenTransitionListener)
-
Constructor Details
-
ClusterMasterExecutorUtil
public ClusterMasterExecutorUtil()
-
-
Method Details
-
addClusterMasterTokenTransitionListener
public static void addClusterMasterTokenTransitionListener(ClusterMasterTokenTransitionListener clusterMasterTokenTransitionListener) -
executeOnMaster
-
isEnabled
public static boolean isEnabled() -
isMaster
public static boolean isMaster() -
removeClusterMasterTokenTransitionListener
public static void removeClusterMasterTokenTransitionListener(ClusterMasterTokenTransitionListener clusterMasterTokenTransitionListener)
-