LOG.assertTrue(!myDisposed, "Already disposed");
}
private void postMessage(Message message) {
checkNotDisposed();
final Topic topic = message.getTopic();
final List<MessageBusConnectionImpl> topicSubscribers = mySubscribers.get(topic);
if (topicSubscribers != null) {
for (MessageBusConnectionImpl subscriber : topicSubscribers) {
myMessageQueue.get().offer(new DeliveryJob(subscriber, message));
subscriber.scheduleMessageDelivery(message);
}
}
Topic.BroadcastDirection direction = topic.getBroadcastDirection();
if (direction == Topic.BroadcastDirection.TO_CHILDREN) {
for (MessageBusImpl childBus : myChildBuses) {
childBus.postMessage(message);
}