Asynchronous Operations (Was: [ZOOM]

Matthew J. Dovey matthew.dovey at
Fri Feb 6 19:35:34 CET 2004


Attached is a rough attempt to map asynchronous ZOOM onto Java
interfaces/abstract classes (on org.z3950.azoom package

Essentionally a Connection class is a listener for the
searchRequestEvent which has a property query (the actual method
search(SearchRequestEvent) is abstract to be implemented by the err
implementation). A SearchRequestResponseListener (i.e. something the
A3PI toolkit user would write) can be registered to the Connection
class. Connection class fires a SearchRequestResponseEvent when there
are some results (a SearchRequestResponseEvent has a property of type

Similarly for doing scans (Connection being a listener for
scanRequestEvents and a firer of scanResponseEvents).

Also RecordSet listens for getRecordRequestEvents and fires
getRecordResponseEvents (for asynchronous presents).

A C# implementation would look very similar.


P.S. could someone confirm that this is reaching the list!

> -----Original Message-----
> From: zoom-bounces at 
> [mailto:zoom-bounces at] On Behalf Of Mike Taylor
> Sent: Friday, February 06, 2004 4:37 PM
> To: zoom at
> Subject: Re: Asynchronous Operations (Was: [ZOOM]
> > Date: Fri, 6 Feb 2004 16:13:03 +0000 (GMT)
> > From: Robert Sanderson <azaroth at>
> >
> > > I would prefer that the Asynchronous AAPI (AAAPI?) not depend on
> > > threads, in part because they are not universally available.
> > 
> > In the model of W3C and C3PO, how about:    A3PI?
> Brilliant!  Utterly brilliant!  I am currently going through a
> six-year-old-son-induced _Star Wars_ obsession revival anyway (I've
> just bought lego kits for an X-wing and TIE fighter) so this really
> hits the spot.  I am prepared to back down on Get/Set Option methods
> in the Java binding, but on this issue, I will not be gainsaid: A3PI
> it is!
> > Err, anyway...
> You were saying?  :-)
>  _/|_	 _______________________________________________________________
> /o ) \/  Mike Taylor  <mike at>  
> )_v__/\  "The fighting must begin before another someone dies" --
> 	 Ritchie Blackmore's Rainbow, _16th Century Greensleeves_.  Eh?
> --
> Listen to my wife's new CD of kids' music, _Child's Play_, at
> _______________________________________________
> ZOOM mailing list
> ZOOM at
-------------- next part --------------
A non-text attachment was scrubbed...
Name: zoom.jar
Type: application/octet-stream
Size: 18774 bytes
Desc: zoom.jar
Url :
-------------- next part --------------
A non-text attachment was scrubbed...
Name: zoom-doc.jar
Type: application/octet-stream
Size: 846073 bytes
Desc: zoom-doc.jar
Url :

More information about the ZOOM mailing list