Adapter Development Kit 9.12 | webMethods Adapter Development Kit Documentation | webMethods Adapter Development Kit Installation and User’s Documentation | Listener Notifications | Asynchronous Listener Notification Classes
 
Asynchronous Listener Notification Classes
The following figure shows the classes provided by the ADK to support asynchronous listener notifications.
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
*Call one of the WmAsynchronousNotification.doNotify methods for each notification it wants to generate, based on the NotificationEvent data content.
*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 .