com.liferay.portal.kernel.messaging
Interface MessageBus
- All Known Implementing Classes:
- DefaultMessageBus
public interface MessageBus
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)