Liferay 6.2.0

com.liferay.portal.kernel.messaging
Interface MessageBus

All Known Implementing Classes:
DefaultMessageBus

public interface MessageBus


Method Summary
abstract  void addDestination(Destination destination)
           
abstract  void addDestinationEventListener(DestinationEventListener destinationEventListener)
           
abstract  void addDestinationEventListener(String destinationName, DestinationEventListener destinationEventListener)
           
abstract  Destination getDestination(String destinationName)
           
abstract  int getDestinationCount()
           
abstract  Collection<String> getDestinationNames()
           
abstract  Collection<Destination> getDestinations()
           
abstract  boolean hasDestination(String destinationName)
           
abstract  boolean hasMessageListener(String destinationName)
           
abstract  boolean registerMessageListener(String destinationName, MessageListener messageListener)
           
abstract  Destination removeDestination(String destinationName)
           
abstract  void removeDestinationEventListener(DestinationEventListener destinationEventListener)
           
abstract  void removeDestinationEventListener(String destinationName, DestinationEventListener destinationEventListener)
           
abstract  void replace(Destination destination)
           
abstract  void sendMessage(String destinationName, Message message)
           
abstract  void shutdown()
           
abstract  void shutdown(boolean force)
           
abstract  boolean unregisterMessageListener(String destinationName, MessageListener messageListener)
           
 

Method Detail

addDestination

void addDestination(Destination destination)

addDestinationEventListener

void addDestinationEventListener(DestinationEventListener destinationEventListener)

addDestinationEventListener

void addDestinationEventListener(String destinationName,
                                 DestinationEventListener destinationEventListener)

getDestination

Destination getDestination(String destinationName)

getDestinationCount

int getDestinationCount()

getDestinationNames

Collection<String> getDestinationNames()

getDestinations

Collection<Destination> getDestinations()

hasDestination

boolean hasDestination(String destinationName)

hasMessageListener

boolean hasMessageListener(String destinationName)

registerMessageListener

boolean registerMessageListener(String destinationName,
                                MessageListener messageListener)

removeDestination

Destination removeDestination(String destinationName)

removeDestinationEventListener

void removeDestinationEventListener(DestinationEventListener destinationEventListener)

removeDestinationEventListener

void removeDestinationEventListener(String destinationName,
                                    DestinationEventListener destinationEventListener)

replace

void replace(Destination destination)

sendMessage

void sendMessage(String destinationName,
                 Message message)

shutdown

void shutdown()

shutdown

void shutdown(boolean force)

unregisterMessageListener

boolean unregisterMessageListener(String destinationName,
                                  MessageListener messageListener)

Liferay 6.2.0