Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.mule.context.notification
Class OptimisedNotificationHandler

    java.lang.Object
      org.mule.context.notification.OptimisedNotificationHandler

All Implemented Interfaces:
  ServerNotificationHandler

    public class OptimisedNotificationHandler

extends Object
implements ServerNotificationHandler

Optimized to make a quick decision on a particular class of messages.

Constructor Summary
`OptimisedNotificationHandler(ServerNotificationHandler delegate, Class type)`

Method Summary
`void` | `fireNotification(ServerNotification notification)`
`boolean` | `isListenerRegistered(ServerNotificationListener listener)`
`boolean` | `isNotificationDynamic()`
`boolean` | `isNotificationEnabled(Class notfnClass)` This returns a very "conservative" value - it is true if the notification or any subclass would be accepted.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### OptimisedNotificationHandler

    public OptimisedNotificationHandler(ServerNotificationHandler delegate,
                                        Class type)

Method Detail

### isNotificationDynamic

    public boolean isNotificationDynamic()

  Specified by:
    `isNotificationDynamic` in interface `ServerNotificationHandler`

### isListenerRegistered

    public boolean isListenerRegistered(ServerNotificationListener listener)

  Specified by:
    `isListenerRegistered` in interface `ServerNotificationHandler`
  Returns:

### isNotificationEnabled

    public boolean isNotificationEnabled(Class notfnClass)

  This returns a very "conservative" value - it is true if the notification or any subclass would be accepted. So if it returns false then you can be sure that there is no need to send the notification. On the other hand, if it returns true there is no guarantee that the notification "really" will be dispatched to any listener.

  Specified by:
    `isNotificationEnabled` in interface `ServerNotificationHandler`
  Parameters:
    `notfnClass` - Either the notification class being generated or some superclass
  Returns:
    false if there is no need to dispatch the notification

### fireNotification

    public void fireNotification(ServerNotification notification)

  Specified by:
    `fireNotification` in interface `ServerNotificationHandler`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2003-2010 MuleSoft, Inc.. All Rights Reserved.