com.pcbsys.nirvana.client.nEventPublisher Interface Reference

This interface defines the functionality that should be offered by a generic Nirvana event publisher. More...

Public Member Functions

void publish (nConsumeEvent evt)
 The publish method should be implemented to define the specific behavior for writing to a channel or queue. More...
 

Detailed Description

This interface defines the functionality that should be offered by a generic Nirvana event publisher.

Classes implementing this interface can be designated as publishing implementations. (e.g. by the nConsumeEventFragmentWriter)

Member Function Documentation

void com.pcbsys.nirvana.client.nEventPublisher.publish ( nConsumeEvent  evt)

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