Re: resource consumption for an open pipe

Christoph Mueller <[email protected]> Thu, 08 Sep 2005 01:36:41 +0200
Newsgroups gmane.comp.java.jxta.user
Message-ID <[email protected]>
Mohamed Abdelaziz wrote:

> An open input pipe does not cost anything other the entry for the pipe 
> in the local cache and it's rendezvous + replica if any.
> 
> An open pipe output pipe will cost an occasional pipe resolver query 
> message on the wire to ensure the pipe has not migrated from it's 
> original endpoint, the default ping frequency is set to 20 minutes.

Thanks, I guess I will reuse them then.

I hacked together a wrapper class for OutputPipe that stores them in a 
list and reuses them if a new OutputPipe for the same PipeAdvertisement 
is created, If it works for me I hope I'll find some time to clean it up 
and publish it eventually.