com.liferay.portal.kernel.cluster
Class ClusterMasterExecutorUtil
java.lang.Object
com.liferay.portal.kernel.cluster.ClusterMasterExecutorUtil
@ProviderType
public class ClusterMasterExecutorUtil
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClusterMasterExecutorUtil
public ClusterMasterExecutorUtil()
addClusterMasterTokenTransitionListener
public static void addClusterMasterTokenTransitionListener(ClusterMasterTokenTransitionListener clusterMasterTokenTransitionListener)
executeOnMaster
public static <T> Future<T> executeOnMaster(MethodHandler methodHandler)
getClusterMasterExecutor
public static ClusterMasterExecutor getClusterMasterExecutor()
isEnabled
public static boolean isEnabled()
isMaster
public static boolean isMaster()
removeClusterMasterTokenTransitionListener
public static void removeClusterMasterTokenTransitionListener(ClusterMasterTokenTransitionListener clusterMasterTokenTransitionListener)