-
Notifications
You must be signed in to change notification settings - Fork 4
KdbConnection
Jas edited this page Mar 14, 2017
·
1 revision
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.
Copyright (C) Sport Trades Ltd 2017 - 2020, John Keys and Jaskirat Rajasansir 2020 - 2021