com.pcbsys.nirvana.client.nConsumeEventCompressReader Class Reference

This is a helper class and enables clients to uncompress events being received from a server. More...

Inheritance diagram for com.pcbsys.nirvana.client.nConsumeEventCompressReader:
com.pcbsys.nirvana.client.nEventListener

Public Member Functions

void go (nConsumeEvent evt)
 This method is called by the client for each event that the server sends. More...
 
 nConsumeEventCompressReader (nEventListener listener) throws nIllegalArgumentException
 Adds a nEventListener to be called after the event has been uncompressed. More...
 
- Public Member Functions inherited from com.pcbsys.nirvana.client.nEventListener
void go (com.pcbsys.nirvana.client.nConsumeEvent evt)
 This method is asynchronously called by the nirvana client API to deliver an event to a registered subscriber. More...
 

Detailed Description

This is a helper class and enables clients to uncompress events being received from a server.

The events would have needed to be compressed using the nConsumeEventCompressWriter.

See Also
nConsumeEventCompressWriter

Constructor & Destructor Documentation

com.pcbsys.nirvana.client.nConsumeEventCompressReader.nConsumeEventCompressReader ( nEventListener  listener) throws nIllegalArgumentException

Adds a nEventListener to be called after the event has been uncompressed.

Parameters
listenerthe listener that will receive the callback with the uncompressed event
Exceptions
nIllegalArgumentExceptionif the listener is null

Member Function Documentation

void com.pcbsys.nirvana.client.nConsumeEventCompressReader.go ( nConsumeEvent  evt)

This method is called by the client for each event that the server sends.

It then uncompresses, if required. If it receives an event which has not been compressed then the event is passed directly on to the nEventListener that was supplied by the constructor.

Parameters
evtthe commpressed nConsumeEvent