Skip to content

Commit

Permalink
Add JNI GET example
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanl-bq committed Oct 17, 2023
1 parent 009f6f7 commit ceca27e
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -270,11 +270,14 @@ public static void main(String[] args) throws InterruptedException {
.setCallbackIdx(0)
.setSingleCommand(
Command.newBuilder()
.setRequestType(RequestType.Ping)
.setArgsArray(ArgsArray.newBuilder()))
.setRequestType(RequestType.GetString)
.setArgsArray(ArgsArray.newBuilder().addArgs("Foo")))
.setRoute(Routes.newBuilder().setSimpleRoutes(SimpleRoutes.AllNodes))
.build();

sendMessage(channel, getExistingRequest.toByteArray());
printResponse(channel);

} catch (IOException e) {
e.printStackTrace();
}
Expand Down

0 comments on commit ceca27e

Please sign in to comment.