public interface IResponseWrapper
extends java.lang.AutoCloseable
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.
Modifier and Type | Method and Description |
---|---|
void |
close()
Release any threads that are blocked due to having called waitOnLock().
|
Event |
getEvent()
Get the wrapped Event.
|
void |
releaseLock()
Release any threads that are blocked due to having called waitOnLock().
|
Event getEvent()
void releaseLock()
This method must be called by the client thread after it has retrieved the wrapped response event.
void close()
The implementation of this method should perform the same task as releaseLock()
,
thus making it unnecessary to call both close()
and releaseLock()
.
close
in interface java.lang.AutoCloseable
AutoCloseable.close()
Submit a bug or feature
Copyright (c) 2013-2021 Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors. Use, reproduction, transfer, publication or disclosure is prohibited except as specifically provided for in your License Agreement with Software AG.