001
014
015 package com.liferay.portal.cluster;
016
017 import com.liferay.portal.kernel.cluster.ClusterInvokeAcceptor;
018 import com.liferay.portal.kernel.cluster.Clusterable;
019
020 import java.lang.annotation.Annotation;
021
022
025 @SuppressWarnings("all")
026 public class NullClusterable implements Clusterable {
027
028 public static final Clusterable NULL_CLUSTERABLE = new NullClusterable();
029
030 @Override
031 public Class<? extends ClusterInvokeAcceptor> acceptor() {
032 return null;
033 }
034
035 @Override
036 public Class<? extends Annotation> annotationType() {
037 return Clusterable.class;
038 }
039
040 @Override
041 public boolean onMaster() {
042 return false;
043 }
044
045 private NullClusterable() {
046 }
047
048 }