Glossary:
com.pcbsys.nirvana.client.nConsumeEventCompressWriter Class Reference
This is a helper class and enables clients to compress events simply prior to them being published to the actual store. More...

Public Member Functions | |
| nConsumeEventCompressWriter (nEventPublisher publisher) throws nIllegalArgumentException | |
| Constructs a new nConsumeEventCompressWriter using the nEventPublisher supplied. | |
| nConsumeEventCompressWriter (nAbstractChannel store) throws nIllegalArgumentException | |
| Constructs a new nConsumeEventCompressWriter using the nAbstractChannel supplied. | |
| void | publish (nConsumeEvent evt) throws nTransactionException, nSessionPausedException,nSessionNotConnectedException,nSecurityException,nRequestTimedOutException, nUnexpectedResponseException,nChannelNotFoundException,nIllegalArgumentException |
| Publishs the event evt but will compress the events data prior to publishing it to the server. | |
Detailed Description
This is a helper class and enables clients to compress events simply prior to them being published to the actual store.To uncompress the events use the nConsumeEventCompressReader.
- See also:
- nConsumeEventCompressReader
Constructor & Destructor Documentation
| com.pcbsys.nirvana.client.nConsumeEventCompressWriter.nConsumeEventCompressWriter | ( | nAbstractChannel | store | ) | throws nIllegalArgumentException |
Constructs a new nConsumeEventCompressWriter using the nAbstractChannel supplied.
Will compress any event sent via the publish call to the nAbstractChannel, this could be a queue or a channel.
- Parameters:
-
store the channel / queue on which the writer will be used
- Exceptions:
-
nIllegalArgumentException if the channel / queue is null
| com.pcbsys.nirvana.client.nConsumeEventCompressWriter.nConsumeEventCompressWriter | ( | nEventPublisher | publisher | ) | throws nIllegalArgumentException |
Constructs a new nConsumeEventCompressWriter using the nEventPublisher supplied.
Will compress any event sent via the publish call to the nEventPublisher, this allows the nEventPublisher to be stacked, so that one nEventPublisher can call another before the event is sent to the nAbstractChannel
- Parameters:
-
publisher the event publisher used by this compress writer
- Exceptions:
-
nIllegalArgumentException if the publisher is null
Member Function Documentation
| void com.pcbsys.nirvana.client.nConsumeEventCompressWriter.publish | ( | nConsumeEvent | evt | ) | throws nTransactionException, nSessionPausedException,nSessionNotConnectedException,nSecurityException,nRequestTimedOutException, nUnexpectedResponseException,nChannelNotFoundException,nIllegalArgumentException |
Publishs the event evt but will compress the events data prior to publishing it to the server.
If the resultant compressed byte[] is larger then the original then no compression will be done.
- Parameters:
-
evt the event to compress and publish
- Exceptions:
Implements com.pcbsys.nirvana.client.nEventPublisher.
