com.pcbsys.nirvana.client.nDurableManager Class Reference

Class responsible for managing durable subscriptions on a channel. More...

Public Member Functions

nDurable add (nDurableAttributes durableAttributes)
 Creates a durable object on the channel assosiated with the durable manager instance with the given durable attributes. More...
 
void delete (nDurable durable)
 Deletes the durable object from the channel assosiated with this durable manager instance. More...
 
nDurable get (string name)
 Returns durable object instance for the requested name. More...
 
nDurable[] getAll ()
 Returns all durable objects existing on the channel assosiated with this durable manager instance. More...
 
void unbind (nDurable durable)
 Unbinds the durable object from the current connection. More...
 

Detailed Description

Class responsible for managing durable subscriptions on a channel.

Durable objects can be added, deleted and retrieved using the durable manager.

Member Function Documentation

nDurable com.pcbsys.nirvana.client.nDurableManager.add ( nDurableAttributes  durableAttributes)

Creates a durable object on the channel assosiated with the durable manager instance with the given durable attributes.

Creating durables with backing queue is no longer supported from this version.

Parameters
durableAttributesAttributes describing the durable object to be created.
Returns
The durable instace which was created with the given attributes.
Exceptions
nIllegalStateExceptionThrown if the client attempts to create shared durable object with queue support.
nIllegalArgumentExceptionThrown when illegal argumets are given - null attributes or unsupported channel types.
void com.pcbsys.nirvana.client.nDurableManager.delete ( nDurable  durable)

Deletes the durable object from the channel assosiated with this durable manager instance.

Operation is not supported for shared durables with backed queue.

Parameters
durableDurable object to be deleted.
Exceptions
nIllegalStateExceptionThrown if the client requests to delete not supported durable type.
nIllegalArgumentExceptionThrown when illegal argumets are given.
nDurable com.pcbsys.nirvana.client.nDurableManager.get ( string  name)

Returns durable object instance for the requested name.

Retrieving shared durable objects with hidden queue is no longer supported from this version on.

Parameters
nameName of the durable object to be retrieved
Returns
The durable instace retrieved for the given name
Exceptions
nIllegalStateExceptionThrown if the client requests to get not supported durable type.
nIllegalArgumentExceptionThrown when illegal argumets are given.
nDurable [] com.pcbsys.nirvana.client.nDurableManager.getAll ( )

Returns all durable objects existing on the channel assosiated with this durable manager instance.

Returns
Arrays of durable objects from supported tpes only
void com.pcbsys.nirvana.client.nDurableManager.unbind ( nDurable  durable)

Unbinds the durable object from the current connection.

Parameters
durableDurable object requested to be unbound
Exceptions
nIllegalStateExceptionThrown if the client requests unbinding for not supported durable type.
nIllegalArgumentExceptionThrown when illegal argumets are given.