org.apache.muse.ws.notification
Interface NotificationMessageListener
- All Known Subinterfaces:
- TopicListener
- All Known Implementing Classes:
- SimplePullPoint
public interface NotificationMessageListener
NotificationMessageListener is an event listener that allows a consumer
resource to filter incoming messages by topic. If a resource uses the
NotificationConsumer
capability, it can register listeners that will execute code whenever a new
message is received that matches the criteria of the listener.
- Author:
- Dan Jemiolo (danj)
- See Also:
NotificationConsumer.addMessageListener(NotificationMessageListener)
accepts
boolean accepts(NotificationMessage message)
- Parameters:
message
-
- Returns:
- True if the listener's process() method should be called in
response to this message.
process
void process(NotificationMessage message)
throws SoapFault
- This method is invoked ('fired') by the WS-N implementation whenever
a message is received that matches the criteria (accepts()) of the
listener.
- Parameters:
message
-
- Throws:
SoapFault
Copyright © 2005-2011 Apache Web Services - Muse. All Rights Reserved.