001
014
015 package com.liferay.portal.kernel.cluster;
016
017 import com.liferay.portal.kernel.messaging.Message;
018
019 import java.util.List;
020
021
024 public interface ClusterLink {
025
026 public static final String CLUSTER_FORWARD_MESSAGE =
027 "CLUSTER_FORWARD_MESSAGE";
028
029 public static final int MAX_CHANNEL_COUNT = Priority.values().length;
030
031 public List<Address> getLocalTransportAddresses();
032
033 public List<Address> getTransportAddresses(Priority priority);
034
035 public boolean isEnabled();
036
037 public void sendMulticastMessage(Message message, Priority priority);
038
039 public void sendUnicastMessage(
040 Address address, Message message, Priority priority);
041
042 }