com.liferay.portal.kernel.messaging
Interface MessageBus
public interface MessageBus
addDestination
void addDestination(Destination destination)
addMessageBusEventListener
boolean addMessageBusEventListener(MessageBusEventListener messageBusEventListener)
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)
removeDestination
Destination removeDestination(String destinationName,
boolean closeOnRemove)
removeMessageBusEventListener
boolean removeMessageBusEventListener(MessageBusEventListener messageBusEventListener)
replace
void replace(Destination destination)
replace
void replace(Destination destination,
boolean closeOnReplace)
sendMessage
void sendMessage(String destinationName,
Message message)
shutdown
void shutdown()
shutdown
void shutdown(boolean force)
unregisterMessageListener
boolean unregisterMessageListener(String destinationName,
MessageListener messageListener)