Universal Messaging provides the ability for the server to maintain state for the last event that was consumed by a consumer on a channel. By providing a unique name, you can create a named object on a channel and even when your application is stopped, the next time you start your application, you will only consume available events from the last event id that the server stored as successfully consumed by that named object.
Named objects can be persistent, i.e. the last eid is written to disk, so that if the Universal Messaging Realm Server is restarted, the last eid consumed is retrievable for each named object on a channel.
An example of how to create a named object that begins from event id 0, and is persistent is shown below:
nNamedObject nobj = myChannel.createNamedObject("unique1", 0, true);