Package 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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.
-
-