com.pcbsys.nirvana.client.nEventPublisher Interface Reference

The nEventPublisher is an interface that is used by the compression writer and the fragment writer. More...

Inheritance diagram for com.pcbsys.nirvana.client.nEventPublisher:
com.pcbsys.nirvana.client.nConsumeEventCompressWriter com.pcbsys.nirvana.client.nConsumeEventFragmentWriter

Public Member Functions

void publish (nConsumeEvent evt) throws nTransactionException, nSessionPausedException, nSessionNotConnectedException, nSecurityException, nRequestTimedOutException, nUnexpectedResponseException, nChannelNotFoundException, nIllegalArgumentException, nMaxBufferSizeExceededException
 The publish method should be implemented to define the specific behavior for writing to a channel or queue. More...
 

Detailed Description

The nEventPublisher is an interface that is used by the compression writer and the fragment writer.

Normal publishing applications do not need to use this interface.

The interface enables the compression and fragment writer classes to define specific behavior for publishing the nConsumeEvent objects

Member Function Documentation

The publish method should be implemented to define the specific behavior for writing to a channel or queue.

Parameters
evtThe event to publish
Exceptions
nTransactionExceptionthrown if any transactional errors occur
nSessionPausedExceptionThe session is currently paused
nSessionNotConnectedExceptionThe session has become disconnected from the server
nSecurityExceptionInsufficient privileges for the operation
nRequestTimedOutExceptionThe server failed to respond within the specified timeout
nUnexpectedResponseExceptionThe response from the server was not expected
nChannelNotFoundExceptionThe channel / queue was not founf on the server
nIllegalArgumentExceptionThe method arguments was invalid, incorrect or possibly null
nMaxBufferSizeExceededExceptionis thrown when elements of the event being sent exceed the connection's max buffer size

Implemented in com.pcbsys.nirvana.client.nConsumeEventFragmentWriter, and com.pcbsys.nirvana.client.nConsumeEventCompressWriter.