public interface MessageBus
Modifier and Type | Method and Description |
---|---|
void |
addDestination(Destination destination) |
boolean |
addMessageBusEventListener(MessageBusEventListener messageBusEventListener) |
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) |
Destination |
removeDestination(String destinationName,
boolean closeOnRemove) |
boolean |
removeMessageBusEventListener(MessageBusEventListener messageBusEventListener) |
void |
replace(Destination destination) |
void |
replace(Destination destination,
boolean closeOnReplace) |
void |
sendMessage(String destinationName,
Message message) |
void |
shutdown() |
void |
shutdown(boolean force) |
boolean |
unregisterMessageListener(String destinationName,
MessageListener messageListener) |
void addDestination(Destination destination)
boolean addMessageBusEventListener(MessageBusEventListener messageBusEventListener)
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)
Destination removeDestination(String destinationName, boolean closeOnRemove)
boolean removeMessageBusEventListener(MessageBusEventListener messageBusEventListener)
void replace(Destination destination)
void replace(Destination destination, boolean closeOnReplace)
void sendMessage(String destinationName, Message message)
void shutdown()
void shutdown(boolean force)
boolean unregisterMessageListener(String destinationName, MessageListener messageListener)