Oracle Fusion Middleware User Messaging Service 11.1.1.7.0 Java API Reference
E14011-05

oracle.sdp.messaging
Interface Listener


public interface Listener

Since:
11.1.1.3.0

Method Summary
 void onMessage(Message message, Serializable correlator)
          Callback method to process an incoming message.
 void onStatus(Status status, Serializable correlator)
          Callback method to process an incoming status.
 

Method Detail

onMessage

void onMessage(Message message,
               Serializable correlator)
               throws ListenerException
Callback method to process an incoming message. This method will be invoked when a message is matched with a previously registered AccessPoint and a Listener was supplied.

Parameters:
message - The incoming message object.
correlator - The serializable object that was provided during the registerAccessPoint callback registration. This parameter may be null if no object was provided when the access point was registered.
Throws:
ListenerException - If processing of the message fails in any way, the Listener may throw a ListenerException, in which case the message will be placed back on the queue for redelivery.

onStatus

void onStatus(Status status,
              Serializable correlator)
              throws ListenerException
Callback method to process an incoming status. This method will be invoked when a status is processed for a previously sent message and a Listener was supplied.

Parameters:
status - The status object.
correlator - The serializable object that was provided during the send callback registration. This parameter may be null if no object was provided when the message was sent.
Throws:
ListenerException - If processing of the status fails in any way, the Listener may throw a ListenerException, in which case the status object will be placed back on the queue for redelivery.

Oracle Fusion Middleware User Messaging Service 11.1.1.7.0 Java API Reference
E14011-05

Copyright © 2009, 2013 Oracle and/or its affiliates. All rights reserved.