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
 The publish method should be implemented to define the specific behavior for writing to a channel or queue.

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:
evt The event to publish
Exceptions:
nTransactionException thrown if any transactional errors occur
nSessionPausedException The session is currently paused
nSessionNotConnectedException The session has become disconnected from the server
nSecurityException Insufficient privileges for the operation
nRequestTimedOutException The server failed to respond within the specified timeout
nUnexpectedResponseException The response from the server was not expected
nChannelNotFoundException The channel / queue was not founf on the server
nIllegalArgumentException The method arguments was invalid, incorrect or possibly null

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