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()
executeOnMaster
public static <T> Future<T> executeOnMaster(MethodHandler methodHandler)
getClusterMasterExecutor
public static ClusterMasterExecutor getClusterMasterExecutor()
initialize
public static void initialize()
isEnabled
public static boolean isEnabled()
isMaster
public static boolean isMaster()
registerClusterMasterTokenTransitionListener
public static void registerClusterMasterTokenTransitionListener(ClusterMasterTokenTransitionListener clusterMasterTokenTransitionListener)
unregisterClusterMasterTokenTransitionListener
public static void unregisterClusterMasterTokenTransitionListener(ClusterMasterTokenTransitionListener clusterMasterTokenTransitionListener)
setClusterMasterExecutor
public void setClusterMasterExecutor(ClusterMasterExecutor clusterMasterExecutor)