Annotation Interface Clusterable


@Documented @Retention(RUNTIME) @Target(METHOD) public @interface Clusterable
Provides an annotation for methods that, when invoked by an com.liferay.portal.spring.aop.AopInvocationHandler, are invoked across the cluster. By default the methods are invoked on all active nodes in the cluster. All Liferay aspect annotations are aware of their scope. Interface aspect annotations can be overwritten by their implementations. Class level aspect annotations can be overwritten by method annotations.
Author:
Shuyang Zhou
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Returns a ClusterInvokeAcceptor that can filter out invocation on members of the node in case they are not ready or capable of handling the invocation.
    boolean
    Whether the affected methods should only be invoked on the master node.
  • Element Details

    • acceptor

      Class<? extends ClusterInvokeAcceptor> acceptor
      Returns a ClusterInvokeAcceptor that can filter out invocation on members of the node in case they are not ready or capable of handling the invocation.
      Default:
      com.liferay.portal.kernel.cluster.ClusterInvokeAcceptor.class
    • onMaster

      boolean onMaster
      Whether the affected methods should only be invoked on the master node. Values returned from such methods are deserialized.
      Default:
      false