Liferay 6.1.2-ce-ga3

com.liferay.portal.kernel.messaging
Class DefaultMessageBus

java.lang.Object
  extended by com.liferay.portal.kernel.messaging.DefaultMessageBus
All Implemented Interfaces:
MessageBus

public class DefaultMessageBus
extends Object
implements MessageBus


Constructor Summary
DefaultMessageBus()
           
 
Method Summary
 void addDestination(Destination destination)
           
 void addDestinationEventListener(DestinationEventListener destinationEventListener)
           
 void addDestinationEventListener(String destinationName, DestinationEventListener destinationEventListener)
           
 void destroy()
           
protected  void fireDestinationAddedEvent(Destination destination)
           
protected  void fireDestinationRemovedEvent(Destination destination)
           
protected  void fireMessageListenerRegisteredEvent(Destination destination, MessageListener messageListener)
           
protected  void fireMessageListenerUnregisteredEvent(Destination destination, MessageListener messageListener)
           
 Destination getDestination(String destinationName)
           
 int getDestinationCount()
           
 Collection<String> getDestinationNames()
           
 Collection<Destination> getDestinations()
           
 boolean hasDestination(String destinationName)
           
 boolean hasMessageListener(String destinationName)
           
 boolean registerMessageListener(String destinationName, MessageListener messageListener)
           
 Destination removeDestination(String destinationName)
           
 void removeDestinationEventListener(DestinationEventListener destinationEventListener)
           
 void removeDestinationEventListener(String destinationName, DestinationEventListener destinationEventListener)
           
 void replace(Destination destination)
           
 void sendMessage(String destinationName, Message message)
           
 void shutdown()
           
 void shutdown(boolean force)
           
 boolean unregisterMessageListener(String destinationName, MessageListener messageListener)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultMessageBus

public DefaultMessageBus()
Method Detail

addDestination

public void addDestination(Destination destination)
Specified by:
addDestination in interface MessageBus

addDestinationEventListener

public void addDestinationEventListener(DestinationEventListener destinationEventListener)
Specified by:
addDestinationEventListener in interface MessageBus

addDestinationEventListener

public void addDestinationEventListener(String destinationName,
                                        DestinationEventListener destinationEventListener)
Specified by:
addDestinationEventListener in interface MessageBus

destroy

public void destroy()

getDestination

public Destination getDestination(String destinationName)
Specified by:
getDestination in interface MessageBus

getDestinationCount

public int getDestinationCount()
Specified by:
getDestinationCount in interface MessageBus

getDestinationNames

public Collection<String> getDestinationNames()
Specified by:
getDestinationNames in interface MessageBus

getDestinations

public Collection<Destination> getDestinations()
Specified by:
getDestinations in interface MessageBus

hasDestination

public boolean hasDestination(String destinationName)
Specified by:
hasDestination in interface MessageBus

hasMessageListener

public boolean hasMessageListener(String destinationName)
Specified by:
hasMessageListener in interface MessageBus

registerMessageListener

public boolean registerMessageListener(String destinationName,
                                       MessageListener messageListener)
Specified by:
registerMessageListener in interface MessageBus

removeDestination

public Destination removeDestination(String destinationName)
Specified by:
removeDestination in interface MessageBus

removeDestinationEventListener

public void removeDestinationEventListener(DestinationEventListener destinationEventListener)
Specified by:
removeDestinationEventListener in interface MessageBus

removeDestinationEventListener

public void removeDestinationEventListener(String destinationName,
                                           DestinationEventListener destinationEventListener)
Specified by:
removeDestinationEventListener in interface MessageBus

replace

public void replace(Destination destination)
Specified by:
replace in interface MessageBus

sendMessage

public void sendMessage(String destinationName,
                        Message message)
Specified by:
sendMessage in interface MessageBus

shutdown

public void shutdown()
Specified by:
shutdown in interface MessageBus

shutdown

public void shutdown(boolean force)
Specified by:
shutdown in interface MessageBus

unregisterMessageListener

public boolean unregisterMessageListener(String destinationName,
                                         MessageListener messageListener)
Specified by:
unregisterMessageListener in interface MessageBus

fireDestinationAddedEvent

protected void fireDestinationAddedEvent(Destination destination)

fireDestinationRemovedEvent

protected void fireDestinationRemovedEvent(Destination destination)

fireMessageListenerRegisteredEvent

protected void fireMessageListenerRegisteredEvent(Destination destination,
                                                  MessageListener messageListener)

fireMessageListenerUnregisteredEvent

protected void fireMessageListenerUnregisteredEvent(Destination destination,
                                                    MessageListener messageListener)

Liferay 6.1.2-ce-ga3