cgl.narada.samples.nbNative
Class ExactlyOnceSubscriber
java.lang.Object
cgl.narada.samples.nbNative.ExactlyOnceSubscriber
- All Implemented Interfaces:
- NBEventListener, NBRecoveryListener
public class ExactlyOnceSubscriber
- extends Object
- implements NBEventListener, NBRecoveryListener
A simple native client of NaradaBrokering that supports exactly-once
delivery of messages.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExactlyOnceSubscriber
public ExactlyOnceSubscriber(int entityId)
initializeBrokerCommunications
public void initializeBrokerCommunications(Properties props,
String commType)
throws ServiceException
- Throws:
ServiceException
initializeProducerAndConsumer
public void initializeProducerAndConsumer(int templateId)
throws ServiceException
- Throws:
ServiceException
onEvent
public void onEvent(NBEvent nbEvent)
- Description copied from interface:
NBEventListener
- Upon the receipt of an event which has satisfied all the constraints, if
any were provided, that needed to be satisfied prior to delivery
- Specified by:
onEvent in interface NBEventListener
onRecovery
public void onRecovery(NBRecoveryNotification recoveryNotification)
- Upon completion of the attempt to recover, this method is invoked on
the listener that was registered with the
- Specified by:
onRecovery in interface NBRecoveryListener
main
public static void main(String[] args)
For comments and suggestions please send
e-mail to
The NaradaBrokering Project