com.apama.services.event
Interface IResponseWrapper


public interface IResponseWrapper

IResponseWrapper is an interface that specifies the public API for objects returned by the various request-response methods of the Event Service.

IMPORTANT
Iff acknowledgement sequencing is being used in the EventService, then the client MUST ALWAYS ensure that releaseLock() is called on the IResponseWrapper object returned from a requestResponse() call.

All of this assumes that there is a single receiver thread and possibly multiple client threads.


Method Summary
 Event getEvent()
          Get the wrapped Event.
 void releaseLock()
          Release any threads that are blocked due to having called waitOnLock().
 

Method Detail

getEvent

Event getEvent()
Get the wrapped Event.

Returns:
the wrapped Event

releaseLock

void releaseLock()
Release any threads that are blocked due to having called waitOnLock().

This method must be called by the client thread after it has retrieved the wrapped response event.



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