public class OptimisedNotificationHandler extends Object implements ServerNotificationHandler
Constructor and Description |
---|
OptimisedNotificationHandler(ServerNotificationHandler delegate,
Class<? extends ServerNotification> type) |
Modifier and Type | Method and Description |
---|---|
void |
fireNotification(ServerNotification notification) |
boolean |
isListenerRegistered(ServerNotificationListener listener) |
boolean |
isNotificationDynamic() |
boolean |
isNotificationEnabled(Class<? extends ServerNotification> notfnClass)
This returns a very "conservative" value - it is true if the notification or any subclass would be
accepted.
|
public OptimisedNotificationHandler(ServerNotificationHandler delegate, Class<? extends ServerNotification> type)
public boolean isNotificationDynamic()
isNotificationDynamic
in interface ServerNotificationHandler
public boolean isListenerRegistered(ServerNotificationListener listener)
isListenerRegistered
in interface ServerNotificationHandler
public boolean isNotificationEnabled(Class<? extends ServerNotification> notfnClass)
isNotificationEnabled
in interface ServerNotificationHandler
notfnClass
- Either the notification class being generated or some superclasspublic void fireNotification(ServerNotification notification)
fireNotification
in interface ServerNotificationHandler
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.