Liferay 7.0-ce-b4

com.liferay.portal.kernel.cluster
Class ClusterMasterExecutorUtil

java.lang.Object
  extended by com.liferay.portal.kernel.cluster.ClusterMasterExecutorUtil

@ProviderType
public class ClusterMasterExecutorUtil
extends Object


Constructor Summary
ClusterMasterExecutorUtil()
           
 
Method Summary
static void addClusterMasterTokenTransitionListener(ClusterMasterTokenTransitionListener clusterMasterTokenTransitionListener)
           
static
<T> Future<T>
executeOnMaster(MethodHandler methodHandler)
           
static ClusterMasterExecutor getClusterMasterExecutor()
           
static boolean isEnabled()
           
static boolean isMaster()
           
static void removeClusterMasterTokenTransitionListener(ClusterMasterTokenTransitionListener clusterMasterTokenTransitionListener)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClusterMasterExecutorUtil

public ClusterMasterExecutorUtil()
Method Detail

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)

Liferay 7.0-ce-b4