com.pcbsys.nirvana.client.nResult Class Reference

This class is the base class that represents the results of a batched find, create or delete call for channels or queues. More...

Inheritance diagram for com.pcbsys.nirvana.client.nResult:
com.pcbsys.nirvana.client.nCreateResult com.pcbsys.nirvana.client.nDeleteResult com.pcbsys.nirvana.client.nFindResult

Public Member Functions

nChannelAttributes getAttributes ()
 Get the nChannelAttributes that was used in the operation. More...
 
nChannel getChannel ()
 If isChannel(), or !isQueue() this method will return the nChannel object found. More...
 
nBaseClientException getException ()
 If !wasSuccessful(), this will return an Exception. More...
 
nQueue getQueue ()
 If isQueue(), or !isChannel() this method will return the nQueue object. More...
 
boolean isChannel ()
 Was the result of the operation successfully performed on an nChannel. More...
 
boolean isQueue ()
 Was the result of the operation successfully performed on an nQueue. More...
 
boolean wasSuccessful ()
 Determine whether the operation was successful for the specific object. More...
 

Detailed Description

This class is the base class that represents the results of a batched find, create or delete call for channels or queues.

Since
7.0

Member Function Documentation

nChannelAttributes com.pcbsys.nirvana.client.nResult.getAttributes ( )

Get the nChannelAttributes that was used in the operation.

Returns
the nChannelAttributes object
nChannel com.pcbsys.nirvana.client.nResult.getChannel ( )

If isChannel(), or !isQueue() this method will return the nChannel object found.

Returns
the nChannel object
nBaseClientException com.pcbsys.nirvana.client.nResult.getException ( )

If !wasSuccessful(), this will return an Exception.

Returns
exception if the operation was not successful
nQueue com.pcbsys.nirvana.client.nResult.getQueue ( )

If isQueue(), or !isChannel() this method will return the nQueue object.

Returns
the nQueue or null depending on isQueue value
boolean com.pcbsys.nirvana.client.nResult.isChannel ( )

Was the result of the operation successfully performed on an nChannel.

Returns
true if the operation was performed on an nQueue
boolean com.pcbsys.nirvana.client.nResult.isQueue ( )

Was the result of the operation successfully performed on an nQueue.

Returns
true if the operation was performed on an nQueue
boolean com.pcbsys.nirvana.client.nResult.wasSuccessful ( )

Determine whether the operation was successful for the specific object.

Returns
true if successful