- com
- pcbsys
- nirvana
- client
- nConsumeEventCompressReader
This is a helper class and enables clients to uncompress events being received from a server. More...
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... | |
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.
com.pcbsys.nirvana.client.nConsumeEventCompressReader.nConsumeEventCompressReader | ( | nEventListener | listener | ) | throws nIllegalArgumentException |
Adds a nEventListener to be called after the event has been uncompressed.
listener | the listener that will receive the callback with the uncompressed event |
nIllegalArgumentException | if the listener is null |
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.
evt | the commpressed nConsumeEvent |