com.pcbsys.nirvana.base.clientimpl.multiconnection.nSynchronousConsumerEventCallbackWrapper Class Reference

This class serves as a wrapper for nPopQueue and nChannelIterate events. More...

Inherits nSynchronousCallbackWrapper.

Public Member Functions

synchronized void response (nEvent request, nEvent response)
 Here we receive the response for the request by the reader thread We briefly check if this is a valid a response(i.e. More...
 

Detailed Description

This class serves as a wrapper for nPopQueue and nChannelIterate events.

Member Function Documentation

synchronized void com.pcbsys.nirvana.base.clientimpl.multiconnection.nSynchronousConsumerEventCallbackWrapper.response ( nEvent  request,
nEvent  response 
)

Here we receive the response for the request by the reader thread We briefly check if this is a valid a response(i.e.

has events), if it clear the countDownLatch If it's not (exception event or no events present) only decrement the countDownLatch. This way we ensure we do not wait more than needed on client side(the write thread)

Parameters
request
response