com.liferay.portal.kernel.messaging
Interface MessageBus

All Known Implementing Classes:
DefaultMessageBus

public interface MessageBus

View Source

Author:
Michael C. Han

Method Summary
 void addDestination(Destination destination)
           
 void addDestinationEventListener(DestinationEventListener listener)
           
 int getDestinationCount()
           
 java.util.Collection<java.lang.String> getDestinationNames()
           
 java.util.Collection<Destination> getDestinations()
           
 boolean hasDestination(java.lang.String destinationName)
           
 boolean hasMessageListener(java.lang.String destination)
           
 void registerMessageListener(java.lang.String destination, MessageListener listener)
           
 void removeDestination(java.lang.String destination)
           
 void removeDestinationEventListener(DestinationEventListener listener)
           
 void sendMessage(java.lang.String destination, Message message)
           
 void shutdown()
           
 void shutdown(boolean force)
           
 boolean unregisterMessageListener(java.lang.String destination, MessageListener listener)
           
 

Method Detail

addDestination

void addDestination(Destination destination)

addDestinationEventListener

void addDestinationEventListener(DestinationEventListener listener)

getDestinationCount

int getDestinationCount()

getDestinationNames

java.util.Collection<java.lang.String> getDestinationNames()

getDestinations

java.util.Collection<Destination> getDestinations()

hasDestination

boolean hasDestination(java.lang.String destinationName)

hasMessageListener

boolean hasMessageListener(java.lang.String destination)

registerMessageListener

void registerMessageListener(java.lang.String destination,
                             MessageListener listener)

removeDestination

void removeDestination(java.lang.String destination)

removeDestinationEventListener

void removeDestinationEventListener(DestinationEventListener listener)

sendMessage

void sendMessage(java.lang.String destination,
                 Message message)

shutdown

void shutdown()

shutdown

void shutdown(boolean force)

unregisterMessageListener

boolean unregisterMessageListener(java.lang.String destination,
                                  MessageListener listener)