Skip to content
javakdb
Branch: master
Clone or download
Pull request Compare This branch is 12 commits ahead of CharlieSkelton-Kx:master.
CharlieSkelton-Kx for more complex use cases, where a sync request is issued to a remot…
…e, and the remote is also sending async messages to this client,

 the incoming message queue must process these incoming messages in order to get to the response message. This is not the default behaviour,
 but can now be processed by setting a MsgHandler as follows, taking the QueryResponse example:
  c=new c("localhost",5010,System.getProperty("user.name")+":mypassword");
  c.setMsgHandler(new MsgHandler(){}); // use default implmentation to discard incoming async, and return error to remote on incoming sync msg
  Object result=c.k("2+3");
  System.out.println("result is "+result);

See the default implementation of MsgHandler in c.java for further details.

As this change exposes the message type (async,sync,[response]) in the return value of c.readMsg(), the Server example has been updated to be able to process async and sync messages.
Latest commit 98c4b40 Feb 15, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src/kx for more complex use cases, where a sync request is issued to a remot… Feb 15, 2019
LICENSE Create LICENSE Aug 3, 2017
Makefile
README.md

README.md

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.