Package com.apama.services.event
Interface IResponseWrapper
- 
- All Superinterfaces:
- java.lang.AutoCloseable
 
 public interface IResponseWrapper extends java.lang.AutoCloseableIResponseWrapper 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 SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()Release any threads that are blocked due to having called waitOnLock().EventgetEvent()Get the wrapped Event.voidreleaseLock()Release any threads that are blocked due to having called waitOnLock().
 
- 
- 
- 
Method Detail- 
getEventEvent getEvent() Get the wrapped Event.- Returns:
- the wrapped Event
 
 - 
releaseLockvoid 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. 
 - 
closevoid close() Release any threads that are blocked due to having called waitOnLock(). This method is invoked automatically on objects managed by the try-with-resources statement.The implementation of this method should perform the same task as releaseLock(), thus making it unnecessary to call bothclose()andreleaseLock().- Specified by:
- closein interface- java.lang.AutoCloseable
- See Also:
- AutoCloseable.close()
 
 
- 
 
-