🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #18301

Detecting InfoBus members

#18301
From: William Yu
Date: Fri, 17 Jul 1998 00:00
15 lines
1290 bytes
From what I've been able to work through, if you announce the
availability of data on an InfoBus before a DataConsumer joins the
InfoBus, that announcement is lost. But since I'm working on a
multi-frame applet project, I cannot guarantee that all consumers will
join the InfoBus before the producer. (Since all applets will have both
a consumer and a producer, you can never do so.)

I can think of one detection hack -- if the corresponding
dataItemRequested() in the producer does not execute, that means target
consumer never answered. With this, I could set up a flag, launch a
thread to wait 5 seconds and so on.

But obviously, I'd like to implement a more elegant method. Is there
something in the API I'm missing? Has anyone else had to deal with this
issue?
Technical Details
Message-ID: <35AFD257.8711D8E3@Bigfoot.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,72299139e551aa87,start
X-Google-Attributes: gidf74b3,public
From: William Yu <William_Yu@Bigfoot.com>
Subject: Detecting InfoBus members
Date: 1998/07/17
Message-ID: <35AFD257.8711D8E3@Bigfoot.com>
X-Deja-AN: 372492590
Content-Transfer-Encoding: 7bit
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
Organization: American All-Risk Group (AARG)
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.language