Packagecom.pcbsys.nirvana.client
Interfacepublic interface nConnectionListener
Implementors nService

This interface should be implemented by any object that wishes to handle disconnects and reconnects with the Nirvana server/s



Public Methods
 MethodDefined By
  
This method is called by the nirvana client API when a disconnect happens so you can deal with the disconnect i.e.
nConnectionListener
  
This method is called by the nirvana client API when a reconnect happens so you can recommence your communications.
nConnectionListener
  
retry(failureCount:int, realmName:String):Boolean
This method is called each time a reconnection fails giving two parameters
nConnectionListener
Method Detail
disconnected()method
public function disconnected():void

This method is called by the nirvana client API when a disconnect happens so you can deal with the disconnect i.e. pause the program and await the reconnect call.

reconnected()method 
public function reconnected():void

This method is called by the nirvana client API when a reconnect happens so you can recommence your communications.

retry()method 
public function retry(failureCount:int, realmName:String):Boolean

This method is called each time a reconnection fails giving two parameters

Parameters
failureCount:int — A int specifying the failure number
 
realmName:String — The realm that failed to reconnect

Returns
Boolean — Boolean as to whether or not to continue to attempt reconnection