Annotation 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 ElementsModifier and TypeOptional ElementDescriptionClass<? extends ClusterInvokeAcceptor>
Returns aClusterInvokeAcceptor
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> acceptorReturns aClusterInvokeAcceptor
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 onMasterWhether the affected methods should only be invoked on the master node. Values returned from such methods are deserialized.- Default:
- false
-