- com
- pcbsys
- nirvana
- client
- nEventPublisher
The nEventPublisher is an interface that is used by the compression writer and the fragment writer. More...
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... | |
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
void com.pcbsys.nirvana.client.nEventPublisher.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.
evt | The event to publish |
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 |
nMaxBufferSizeExceededException | is 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.