Java (JSON) Gateway Interface
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenSRF |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Client API for communicating with the OpenSRF Gateway interface. (Not the translator).
From the main commit:
Supports sync and async requests. Async requests support onResponse,
onComplete, and onError handlers.
Supports a max-threads value to limit the number of actively
communicating threads over any connection. When max-threads is reached,
requests are queued and delivered as soon as there is room.
Note that since this is talking to the OpenSRF gateway and not the
translater, responses are simply collected and passed one at a time to
onResponse. They are not streamed. The goal of supporting onResponse
is to provide the same client API for both the gateway and translator.
=====
Simple test class is included.
Changed in opensrf: | |
status: | Fix Committed → Fix Released |
Committed to master, with an additional commit to make deps.sh include the local directory in the CLASSPATH statement that it prints out.
I'd love to see maven or some more conventional Java dependency management here; wishes != horses :)