Skip to content

KdbConnection

Jas edited this page Mar 14, 2017 · 1 revision

KdbConnection

This class wraps the standard kdb c connection class and adds disconnection and reconnection functionality.

A connection can be instantiated with one of 2 constructors:

  • KdbConnection(KdbProcess): Configures a connection to target the specified process and uses the default reconnection interval if the connection is lost
  • KdbConnection(KdbProcess, Integer): Configures a connection to target the specified process and uses the specified reconnection intervals as milliseconds

Once the object has been constructed, use the connect method to attempt to connect to the process. Any error during the connection process will be thrown as a KdbTargetProcessUnavailableException.

The reconnect function will attempt to reconnect and will block until the connection is successful again.

Clone this wiki locally