Java client for Reach RPC -- Possibly based on the C-Sharp client #1562
JamesLampert
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm looking over the C-Sharp client, with an eye towards possibly using it as the basis for a Java version.
Some things are trivial: C# "using" appears to be equivalent to Java "import," and "Environment.GetEnvironmentVariable" is more-or-less equivalent to Java "System.getEnv."
Some things are a bit odd: it took me a while to learn that "int?" just means a nullable int. Maybe use an instance of Integer, instead of a primitive int.
And there's the matter of multiple classes defined in a single source file, without any of them being inner classes. Again, no big deal.
But then, when I was doing a nesting analysis on the C# source, I saw it, in the Callbacks class: an "async Task." I haven't a clue what's going on there, except that I vaguely recall using the Java Thread class. Can anybody shed some light on this?
Or alternatively, is there a practical way for a Tomcat webapp context (which is the real use-case here) to just use a JavaScript front-end, or the JavaScript RPC client?
Beta Was this translation helpful? Give feedback.
All reactions