Created
July 23, 2011 18:06
-
-
Save johndemic/1101697 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void fireNotification(ServerNotification notification) | |
{ | |
if (!disposed.get()) | |
{ | |
notification.setMuleContext(muleContext); | |
if (notification instanceof BlockingServerEvent) | |
{ | |
notifyListeners(notification); | |
} | |
else | |
{ | |
try | |
{ | |
eventQueue.put(notification); | |
} | |
catch (InterruptedException e) | |
{ | |
if (!disposed.get()) | |
{ | |
logger.error("Failed to queue notification: " + notification, e); | |
} | |
} | |
} | |
} | |
else | |
{ | |
logger.warn("Notification not enqueued after ServerNotificationManager disposal: " + notification); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment