com.apama.services.event
Interface IResponseListener


public interface IResponseListener

IResponseListener specifies the interface that classes must implement to receive the response part of an asynchronous request-response call.

IResponseListener is an interface that forms part of the service style high-level public interface to the Correlator with a focus on only dealing with Events and consumer channels.


Method Summary
 void handleException(java.lang.Exception exception)
          Callback method that is called when an exception is thrown within an asynchronous request-response call made on an EventServiceChannel.
 void handleResponse(Event requestEvent, Event responseEvent)
          Callback method that is called when a matching response Event is received for an asynchronous request-response call made on an EventServiceChannel.
 

Method Detail

handleResponse

void handleResponse(Event requestEvent,
                    Event responseEvent)
Callback method that is called when a matching response Event is received for an asynchronous request-response call made on an EventServiceChannel.

Parameters:
requestEvent - the original request Event.
responseEvent - the corresponding response Event.

handleException

void handleException(java.lang.Exception exception)
Callback method that is called when an exception is thrown within an asynchronous request-response call made on an EventServiceChannel.

Parameters:
exception - The exception that was thrown in the asynchronous call.


Submit a bug or feature
Copyright (c) 2013 Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or Terracotta Inc., San Francisco, CA, USA, and/or Software AG (Canada) Inc., Cambridge, Ontario, Canada, and/or, Software AG (UK) Ltd., Derby, United Kingdom, and/or Software A.G. (Israel) Ltd., Or-Yehuda, Israel and/or their licensors. Use, reproduction, transfer, publication or disclosure is prohibited except as specifically provided for in your License Agreement with Software AG