Asynchronous Listener Notification Classes
The following figure shows the classes provided by the ADK to support asynchronous listener notifications.
![](../adk-webhelp/images/LIST-CD_asynchronous_classes.png)
Create an asynchronous listener notification class by extending the base class com.wm.adk.notification.WmAsyncListenerNotification, as shown by the SessionLogListenerNotification class in the figure. As previously mentioned, the implementation of an asynchronous listener notification is similar to a polling notification. The key differences occur in the following methods:
Method | Description |
supports | Determines whether the notification can process the object returned by the listener's waitForData method. boolean supports(Object) |
runNotification | If the supports method returns true, the Integration Server calls the following runNotification method to process the data. NotificationResults runNotification(NotificationEvent) The implementation of this method must ![*](chapterTOC_bullet.png) Call one of the WmAsynchronousNotification.doNotify methods for each notification it wants to generate, based on the NotificationEvent data content. ![*](chapterTOC_bullet.png) Never return null. Note: The NotificationEvent simply wraps the data object returned from the listener's waitForData method. |
For more information about alternative method of managing resource domains, see .